Skip to content
Snippets Groups Projects
Commit 6f236f0c authored by rmackay9's avatar rmackay9
Browse files

ArduCopter: increase SPI bus speed to 2Mhz after IMU initialisation has...

ArduCopter: increase SPI bus speed to 2Mhz after IMU initialisation has completed (MPU6000 accepts maximum of 1Mhz for some registers but up to 20Mhz for main sensor and interrupt registers)
parent 67252c8a
No related branches found
No related tags found
No related merge requests found
......@@ -309,6 +309,9 @@ static void init_ardupilot()
startup_ground();
// now that initialisation of IMU has occurred increase SPI to 2MHz
SPI.setClockDivider(SPI_CLOCK_DIV8); // 2MHZ SPI rate
#if LOGGING_ENABLED == ENABLED
Log_Write_Startup();
Log_Write_Data(10, (float)g.pi_stabilize_roll.kP());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment