Skip to content

Commit

Permalink
Tools: implement EK3GPSDisable in replay
Browse files Browse the repository at this point in the history
  • Loading branch information
tridge committed Nov 27, 2024
1 parent f46d075 commit 346712f
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Tools/Replay/LR_MsgHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ void LR_MsgHandler_REV2::process_message(uint8_t *msgbytes)
break;
case AP_DAL::Event::setSourceSet0 ... AP_DAL::Event::setSourceSet2:
break;
case AP_DAL::Event::EK3GPSDisable:
case AP_DAL::Event::EK3GPSEnable:
break;
}
if (replay_force_ekf3) {
LR_MsgHandler_REV3 h{f, ekf2, ekf3};
Expand Down Expand Up @@ -133,6 +136,12 @@ void LR_MsgHandler_REV3::process_message(uint8_t *msgbytes)
case AP_DAL::Event::setSourceSet0 ... AP_DAL::Event::setSourceSet2:
ekf3.setPosVelYawSourceSet(uint8_t(msg.event)-uint8_t(AP_DAL::Event::setSourceSet0));
break;
case AP_DAL::Event::EK3GPSDisable:
ekf3.force_gps_disable(true);
break;
case AP_DAL::Event::EK3GPSEnable:
ekf3.force_gps_disable(false);
break;
}

if (replay_force_ekf2) {
Expand Down

0 comments on commit 346712f

Please sign in to comment.