If the hardware is ok,use the Pi console and pfop to activate and calibrate the IMU.
If you have trouble maybe you need to view the startup message,Unfortunatly it's not possible on the PI because the DUE start faster than Raspberry.
To Do, you need to deactivate the Pi into Pfod setting R/C etc...
Change in mower.h
Code:
#define Console Serial
#define CONSOLE_BAUDRATE 115200 // baudrate used for PC
//#define Console SerialUSB
//#define CONSOLE_BAUDRATE 250000 // baudrate used for Raspberry PI console
to have the Data on the serial and not serialUsb.
Now you can use the
arduino IDE console to check the startup and follow the calibration process.
To do only one time or after changing position of the IMU in the mower.
Accel/Gyro calibration
Into Pfop Setting / IMU / Accel Gyro Initial Calibration more than 30sec duration
Click and do not move the mower you need to see wait.. , wait.. etc ...... on the console .
When it's finish the Tilt and roll need to be near 0 and move when the mower is inclinate.
Compass calibration (THE IMU need to be as far as possible from magnet or metal parts)
Into Pfop Setting / IMU / Accel Gyro Initial Calibration more than 30sec duration
click and move the mower in all possible position until no new data are coming in the console.
click again to stop the calibration.
Finaly you need into IMU setting have a good result when roll the mower on GYRO yaw
Check this old post (maybe the soft is new but the concept on bylane and compass is the same).
https://www.ardumower.de/index.php/de/forum/software-control/1349-azurit-full-odometry-mouvement-control?start=20#13951