Skip to content

Commit

Permalink
Changed freq to 100hz
Browse files Browse the repository at this point in the history
  • Loading branch information
Nate711 committed Oct 27, 2018
1 parent eeafb7c commit cc0f981
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/imu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ THD_FUNCTION(IMUThread, arg) {

//Initialize IMU
bno080_imu.beginSPI(SPI_CS_PIN, SPI_WAK_PIN, SPI_INTPIN, SPI_RSTPIN);
bno080_imu.enableRotationVector(10); //Send data update every 50ms
bno080_imu.enableRotationVector(100); //Send data update every 100ms

if (IMU_VERBOSE > 0) {
Serial.println("Initializing BNO080...");
Serial.println(F("Rotation vector enabled at 50Hz"));
Serial.println(F("Rotation vector enabled at 10Hz"));
}

while(true) {
Expand Down

0 comments on commit cc0f981

Please sign in to comment.