79 cc_accs.push_front(Ogre::Math::Clamp(acc, -1.0f, +1.0f));
86 for (
unsigned int i = 0; i <
cc_accs.size(); i++)
float ar_wheel_speed
Physics state; wheel speed in m/s.
std::deque< float > cc_accs
Cruise Control.
bool sl_enabled
Speed limiter;.
float cc_target_speed_lower_limit
Cruise Control.
float ar_avg_wheel_speed
Physics state; avg wheel speed in m/s.
Ogre::Real ar_brake
Physics state; braking intensity.
float cc_target_rpm
Cruise Control.
bool cc_mode
Cruise Control.
float getTotalMass(bool withLocked=true)
void UpdateCruiseControl(float dt)
Defined in 'gameplay/CruiseControl.cpp'.
float cc_target_speed
Cruise Control.
float sl_speed_limit
Speed limiter;.
bool cc_can_brake
Cruise Control.
void cruisecontrolToggle()
Defined in 'gameplay/CruiseControl.cpp'.
float getEngineInertia() const
('engoption' attr #1)
float getAccToHoldRPM()
estimate required throttle input to hold the current rpm
float getShiftDownRPM() const
Shift down RPM ('engine' attr #1)
float getShiftUpRPM() const
Shift up RPM ('engine' attr #2)
void autoSetAcc(float val)
bool hasContact()
Ignition.
InputEngine * GetInputEngine()