![]()  | 
 
Used to produce smooth vehicle driving control values from analog and digital inputs. More...
#include <PxVehicleUtilControl.h>

Public Member Functions | |
| PxVehicleDrive4WRawInputData () | |
| virtual | ~PxVehicleDrive4WRawInputData () | 
| void | setDigitalAccel (const bool accelKeyPressed) | 
| Record if the accel button has been pressed on keyboard.  More... | |
| void | setDigitalBrake (const bool brakeKeyPressed) | 
| Record if the brake button has been pressed on keyboard.  More... | |
| void | setDigitalHandbrake (const bool handbrakeKeyPressed) | 
| Record if the handbrake button has been pressed on keyboard.  More... | |
| void | setDigitalSteerLeft (const bool steerLeftKeyPressed) | 
| Record if the left steer button has been pressed on keyboard.  More... | |
| void | setDigitalSteerRight (const bool steerRightKeyPressed) | 
| Record if the right steer button has been pressed on keyboard.  More... | |
| bool | getDigitalAccel () const | 
| Return if the accel button has been pressed on keyboard.  More... | |
| bool | getDigitalBrake () const | 
| Return if the brake button has been pressed on keyboard.  More... | |
| bool | getDigitalHandbrake () const | 
| Return if the handbrake button has been pressed on keyboard.  More... | |
| bool | getDigitalSteerLeft () const | 
| Return if the left steer button has been pressed on keyboard.  More... | |
| bool | getDigitalSteerRight () const | 
| Return if the right steer button has been pressed on keyboard.  More... | |
| void | setAnalogAccel (const PxReal accel) | 
| Set the analog accel value from the gamepad.  More... | |
| void | setAnalogBrake (const PxReal brake) | 
| Set the analog brake value from the gamepad.  More... | |
| void | setAnalogHandbrake (const PxReal handbrake) | 
| Set the analog handbrake value from the gamepad.  More... | |
| void | setAnalogSteer (const PxReal steer) | 
| Set the analog steer value from the gamepad.  More... | |
| PxReal | getAnalogAccel () const | 
| Return the analog accel value from the gamepad.  More... | |
| PxReal | getAnalogBrake () const | 
| Return the analog brake value from the gamepad.  More... | |
| PxReal | getAnalogHandbrake () const | 
| Return the analog handbrake value from the gamepad.  More... | |
| PxReal | getAnalogSteer () const | 
| Return the analog steer value from the gamepad.  More... | |
| void | setGearUp (const bool gearUpKeyPressed) | 
| Record if the gearup button has been pressed on keyboard or gamepad.  More... | |
| void | setGearDown (const bool gearDownKeyPressed) | 
| Record if the geardown button has been pressed on keyboard or gamepad.  More... | |
| bool | getGearUp () const | 
| Return if the gearup button has been pressed on keyboard or gamepad.  More... | |
| bool | getGearDown () const | 
| Record if the geardown button has been pressed on keyboard or gamepad.  More... | |
Private Attributes | |
| bool | mRawDigitalInputs [PxVehicleDrive4WControl::eMAX_NB_DRIVE4W_ANALOG_INPUTS] | 
| PxReal | mRawAnalogInputs [PxVehicleDrive4WControl::eMAX_NB_DRIVE4W_ANALOG_INPUTS] | 
| bool | mGearUp | 
| bool | mGearDown | 
Used to produce smooth vehicle driving control values from analog and digital inputs.
      
  | 
  inline | 
      
  | 
  inlinevirtual | 
      
  | 
  inline | 
Return the analog accel value from the gamepad.
References PxVehicleDrive4WControl::eANALOG_INPUT_ACCEL.
      
  | 
  inline | 
Return the analog brake value from the gamepad.
References PxVehicleDrive4WControl::eANALOG_INPUT_BRAKE.
      
  | 
  inline | 
Return the analog handbrake value from the gamepad.
References PxVehicleDrive4WControl::eANALOG_INPUT_HANDBRAKE.
      
  | 
  inline | 
Return the analog steer value from the gamepad.
References PxVehicleDrive4WControl::eANALOG_INPUT_STEER_RIGHT.
      
  | 
  inline | 
Return if the accel button has been pressed on keyboard.
References PxVehicleDrive4WControl::eANALOG_INPUT_ACCEL.
      
  | 
  inline | 
Return if the brake button has been pressed on keyboard.
References PxVehicleDrive4WControl::eANALOG_INPUT_BRAKE.
      
  | 
  inline | 
Return if the handbrake button has been pressed on keyboard.
References PxVehicleDrive4WControl::eANALOG_INPUT_HANDBRAKE.
      
  | 
  inline | 
Return if the left steer button has been pressed on keyboard.
References PxVehicleDrive4WControl::eANALOG_INPUT_STEER_LEFT.
      
  | 
  inline | 
Return if the right steer button has been pressed on keyboard.
References PxVehicleDrive4WControl::eANALOG_INPUT_STEER_RIGHT.
      
  | 
  inline | 
Record if the geardown button has been pressed on keyboard or gamepad.
      
  | 
  inline | 
Return if the gearup button has been pressed on keyboard or gamepad.
      
  | 
  inline | 
Set the analog accel value from the gamepad.
| [in] | accel | is the analog accelerator pedal value in range(0,1) where 1 represents the pedal fully pressed and 0 represents the pedal in its rest state. | 
References PxVehicleDrive4WControl::eANALOG_INPUT_ACCEL.
      
  | 
  inline | 
Set the analog brake value from the gamepad.
| [in] | brake | is the analog brake pedal value in range(0,1) where 1 represents the pedal fully pressed and 0 represents the pedal in its rest state. | 
References PxVehicleDrive4WControl::eANALOG_INPUT_BRAKE.
      
  | 
  inline | 
Set the analog handbrake value from the gamepad.
| [in] | handbrake | is the analog handbrake value in range(0,1) where 1 represents the handbrake fully engaged and 0 represents the handbrake in its rest state. | 
References PxVehicleDrive4WControl::eANALOG_INPUT_HANDBRAKE.
      
  | 
  inline | 
Set the analog steer value from the gamepad.
| [in] | steer | is the analog steer value in range(-1,1) where -1 represents the steering wheel at left lock and +1 represents the steering wheel at right lock. | 
References PxVehicleDrive4WControl::eANALOG_INPUT_STEER_RIGHT.
      
  | 
  inline | 
Record if the accel button has been pressed on keyboard.
| [in] | accelKeyPressed | is true if the accelerator key has been pressed and false otherwise. | 
References PxVehicleDrive4WControl::eANALOG_INPUT_ACCEL.
      
  | 
  inline | 
Record if the brake button has been pressed on keyboard.
| [in] | brakeKeyPressed | is true if the brake key has been pressed and false otherwise. | 
References PxVehicleDrive4WControl::eANALOG_INPUT_BRAKE.
      
  | 
  inline | 
Record if the handbrake button has been pressed on keyboard.
| [in] | handbrakeKeyPressed | is true if the handbrake key has been pressed and false otherwise. | 
References PxVehicleDrive4WControl::eANALOG_INPUT_HANDBRAKE.
      
  | 
  inline | 
Record if the left steer button has been pressed on keyboard.
| [in] | steerLeftKeyPressed | is true if the steer-left key has been pressed and false otherwise. | 
References PxVehicleDrive4WControl::eANALOG_INPUT_STEER_LEFT.
      
  | 
  inline | 
Record if the right steer button has been pressed on keyboard.
| [in] | steerRightKeyPressed | is true if the steer-right key has been pressed and false otherwise. | 
References PxVehicleDrive4WControl::eANALOG_INPUT_STEER_RIGHT.
      
  | 
  inline | 
Record if the geardown button has been pressed on keyboard or gamepad.
| [in] | gearDownKeyPressed | is true if the gear-down button has been pressed, false otherwise. | 
      
  | 
  inline | 
Record if the gearup button has been pressed on keyboard or gamepad.
| [in] | gearUpKeyPressed | is true if the gear-up button has been pressed, false otherwise. | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private |