Skip to content

Commit

Permalink
ArduPlane: Privatize AP_IntertialSensor Logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hendjoshsr71 authored and peterbarker committed Apr 29, 2021
1 parent a5b9846 commit 5c8c961
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ArduPlane/ArduPlane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void Plane::ahrs_update()
ahrs.update();

if (should_log(MASK_LOG_IMU)) {
logger.Write_IMU();
AP::ins().Write_IMU();
}

// calculate a scaled roll limit based on current pitch
Expand Down Expand Up @@ -207,7 +207,7 @@ void Plane::update_logging1(void)
}

if (should_log(MASK_LOG_ATTITUDE_MED) && !should_log(MASK_LOG_IMU))
logger.Write_IMU();
AP::ins().Write_IMU();

if (should_log(MASK_LOG_ATTITUDE_MED))
ahrs.Write_AOA_SSA();
Expand Down Expand Up @@ -236,7 +236,7 @@ void Plane::update_logging2(void)
Log_Write_RC();

if (should_log(MASK_LOG_IMU))
logger.Write_Vibration();
AP::ins().Write_Vibration();
}


Expand Down

0 comments on commit 5c8c961

Please sign in to comment.