Brake/throttle
brake()
Set up a device that output variable voltages, typically a load cell, hall sensor or potentiometer, to controll the brake joystick axis. Should be wired like this. It is considered an analog switch, and will have to be assigned a switch number and you'll have to read out some values to calibrate it.
Is also available with a filter.
void brake(int analogChannel, int releasedValue, int fullyPressedValue)
For a potentiometer on analog channel 3 it could look like this:
brake(3, 0, 1023);
- None 
throttle()
Set up a device that output variable voltages, typically a hall sensor or potentiometer, to controll the throttle joystick axis. Should be wired like this. It is considered an analog switch, and will have to be assigned a switch number and you'll have to read out some values to calibrate it.
Is also available with a filter.
void throttle(int analogChannel, int releasedValue, int fullyPressedValue)
For a potentiometer on analog channel 3, it could look like this:
throttle(3, 0, 1023);
- None 
Last updated