Skip to content

Commit

Permalink
Merge pull request #9564 from RomanLut/submit-fix-sitl-with-hitl-acce…
Browse files Browse the repository at this point in the history
…lerometer

SITL: accelerometer/mag data is not processed when using SITL with inav-HITL-plugin
  • Loading branch information
DzikuVx authored May 31, 2024
2 parents c1a533f + 86afe13 commit cb15792
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/fc/fc_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -900,7 +900,7 @@ void taskMainPidLoop(timeUs_t currentTimeUs)
}

#if defined(SITL_BUILD)
if (lockMainPID()) {
if (ARMING_FLAG(SIMULATOR_MODE_HITL) || lockMainPID()) {
#endif

gyroFilter();
Expand Down

0 comments on commit cb15792

Please sign in to comment.