Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
handbrake?
07-11-2005, 07:04 PM,
#1
handbrake?
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?
Reply
07-11-2005, 11:27 PM,
#2
handbrake?
Added to the list.
Reply
07-20-2005, 03:26 AM,
#3
handbrake?
I coded one an can post the modification to do if someone is interested :wink:
Reply
07-21-2005, 09:25 AM,
#4
handbrake?
You should post it or e-mail it to me.
Reply
07-21-2005, 12:00 PM,
#5
handbrake?
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&amp; tire, const Brake&amp; 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&amp; tire, const Brake&amp; 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:Smile
Reply
08-04-2006, 12:23 AM,
#6
 
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.
Reply
08-04-2006, 12:23 AM,
#7
 
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.
Reply
08-04-2006, 08:30 PM,
#8
 
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?
Reply
08-04-2006, 08:30 PM,
#9
 
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?
Reply
08-04-2006, 11:21 PM,
#10
 
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 Smile
Reply
08-04-2006, 11:21 PM,
#11
 
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 Smile
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)