[ODE] "Ladies and gentlemen, start your engines"

Michael Sebastian Sbrissa Bortolin michael_bortolin at dell.pucrs.br
Tue Apr 23 11:42:01 2002


I don't remember if this question was already made, but, have someone used real values in a car simulation with ode? I can't get a good simulation with the values i'm using.

I'm calculating the ammount of torque delivered by the motor to the wheels:
	float m_fTorqueOnDriveWheels =  m_fAccel * LookupTorque(m_iRPM)		
					* m_fGearRatio[m_iGear]
					* m_fDifferentialRatio * m_fFrontWheelRadius;

m_fAccel: the throttle position (from 0.0 to 1.0).
LookupTorque(): returns the torque at the rpm specified, this is in a table.
m_fGearRatio[m_iGear]: ratio at the specified gear
m_fDifferentialRatio: self-explanatory
m_fFrontWheelRadius: self-explanatory

Where i must use the returned value (m_fTorqueOnDriveWheels) ?


Michael Bortolin
Development Team
E-Business Research Center - DELL/PUCRS
Phone: +55 (51) 3320-3639 - Ext. 230
michael_bortolin@dell.pucrs.br