File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -362,11 +362,17 @@ void beginTilt()
362
362
result &= tiltSensor->sendCommand (" MEMS_OUTPUT=UART1,OFF" );
363
363
364
364
// Unknown new command for v2
365
- result &= tiltSensor->sendCommand (" CORRECT_HOLDER=ENABLE" ); // From tock firmware
365
+ result &= tiltSensor->sendCommand (" CORRECT_HOLDER=ENABLE" ); // From stock firmware
366
366
367
367
// Trigger IMU on PPS from UM980
368
368
result &= tiltSensor->sendCommand (" SET_PPS_EDGE=RISING" );
369
369
370
+ // Enable magnetic field mode
371
+ // 'it is recommended to use the magnetic field initialization mode to speed up the initialization process'
372
+ result &= tiltSensor->sendCommand (" AHRS=ENABLE" );
373
+
374
+ result &= tiltSensor->sendCommand (" MAG_AUTO_SAVE=ENABLE" );
375
+
370
376
if (result == true )
371
377
{
372
378
if (tiltSensor->saveConfiguration () == true )
You can’t perform that action at this time.
0 commit comments