functionreturnfunction/G27_Pedals_and_Shifter

Change outputs from X/Y to Throttle/Brake

Closed this issue · 1 comments

The shifter works super! I was really glad when I found your code!
The pedals are giving me some problems though.. I would like to change the xAxis output to Throttle and yAxis to Brake, since I am having a hard time getting both Assetto Corsa and Project Cars to behave using XY. I tried comparing Heironimus's Joystick code to this one and replace what looked like needing replacing and I got it to compile, but the throttle and brake don't appear in windows.
Does anybody know what I could be missing?

I'll attach the ino, h and cpp

G27PedalsShifter_cpp.txt
G27PedalsShifter_h.txt
G27_Pedals_and_Shifter_mod_ino.txt

Had another go and found some other places. Couldn't get the "brake" command working, but Accelerator and rudder were fine. Instead I chose Rx, Ry and Rz to separate the signals and that works like a charm!

Attaching the files again..
G27_Pedals_and_Shifter_mod_ino.txt
G27PedalsShifter_h.txt
G27PedalsShifter_cpp.txt