Hello everyone,
I’ve written a code to use the Keya encoder instead of the steering angle sensor. To synchronize the encoder with the actual wheel angle, I based it on Marek’s idea of automatically zeroing the WAS. My code performs an initial zero at startup and then continuously zeros the encoder based on the GPS and IMU bearings. The tolerances are adjustable via a web interface.
To simplify use, to use WAS mode with the Keya, you must activate Danfoss mode. Deactivating it reverts to normal WAS mode.
The code was initially based on code for Manu’s PCB ECU from the French group. I adapted it for the AIO. Note that some have GPS on serial number 7, others on serial number 2; you’ll need to change it manually.
Hi,
Will this code work with the u-blox F9P GPS board? Could someone send me a ready-made file (hex) to upload to the Teensy? I’m having trouble compiling; I’m getting the error: Compilation error: 'class HardwareSerial' has no member named 'addMemoryForRead'.
Yes you have to put teensyduino in version 1.57, if you can’t contact me on telegram it will be easier, and I will guide you on the settings of the 0 auto
Yes, it’s very easy. You enter my code, activate Danfoss mode, and then it performs an initial automatic zeroing each time you start the system, but you won’t even notice it. You just need to drive a little straight. After that, the automatic zeroing happens continuously without you realizing it. If you’re still not convinced, you can turn off Danfoss and switch back to classic WAS mode.
Had tried this a few months ago and at that point it was not adapted to aio… Has this been accomplished and will it work with dual F9P gps without BNO?