handbrake? - thelusiv - 07-11-2005
I know there's no handbrake code in Vamos but it would be pretty simple - more or less, lock the rear brakes when a handbrake button is pressed and release them when its released. Could we get one?
handbrake? - joevenzon - 07-11-2005
Added to the list.
handbrake? - [The_Real_Neo] - 07-20-2005
I coded one an can post the modification to do if someone is interested :wink:
handbrake? - joevenzon - 07-21-2005
You should post it or e-mail it to me.
handbrake? - [The_Real_Neo] - 07-21-2005
ok.. so today the handbrake ! So first, to apply the handbrake to rear wheels, we got to know the position of each wheel. So open Wheel.h and in the private section, declare the "rear" variable like this :<pre>bool m_is_rear;</pre>if this variable is true, the wheel is a rear wheel. We got to set it when the car is loaded. To do this, we got to change the Constructor like this :<pre>Wheel (double mass, Vamos_Geometry::Three_Vector position, double tire_offset, double roll_height, double restitution, Suspension* suspension, const Tire& tire, const Brake& brake, bool steered, bool driven, Vamos_Geometry::Side side, bool is_rear);</pre> always in Wheel.hTo know if the wheel is a rear wheel, we add this little public function in Wheel.h :<pre>bool is_rear () const { return m_is_rear; }</pre>Now we change the constructor in Wheel.cc :<pre>Vamos_Body::Wheel::Wheel (double mass, Three_Vector position, double tire_offset, double roll_height, double restitution, Suspension* suspension, const Tire& tire, const Brake& brake, bool steered, bool driven, Side side, bool is_rear) :</pre>and in the constructor <pre> ... m_rotation (0.0), m_is_rear(is_rear){}</pre>We can now specifiy to the wheel its position so let's doing it !in Car.cc, in CarReader:
- thelusiv - 08-04-2006
I'm not sure why we never did anything with that patch, but Joe has just set up a handbrake control and I added a menu option to set it. Check it out in VDrift SVN r1179.
- thelusiv - 08-04-2006
I'm not sure why we never did anything with that patch, but Joe has just set up a handbrake control and I added a menu option to set it. Check it out in VDrift SVN r1179.
- joevenzon - 08-04-2006
One note: it currently just applies the rear brakes. I'd like to add a separate line in the car definition files so the actual maximum braking force of the handbrake could be entered. Does that sound reasonable?
- joevenzon - 08-04-2006
One note: it currently just applies the rear brakes. I'd like to add a separate line in the car definition files so the actual maximum braking force of the handbrake could be entered. Does that sound reasonable?
- thelusiv - 08-04-2006
joevenzon Wrote:One note: it currently just applies the rear brakes. I'd like to add a separate line in the car definition files so the actual maximum braking force of the handbrake could be entered. Does that sound reasonable? Yes it does! I think you read my mind, that is exactly what I wanted
- thelusiv - 08-04-2006
joevenzon Wrote:One note: it currently just applies the rear brakes. I'd like to add a separate line in the car definition files so the actual maximum braking force of the handbrake could be entered. Does that sound reasonable? Yes it does! I think you read my mind, that is exactly what I wanted
|