Skip to content

Commit

Permalink
Merge pull request #1490 from mavlink/pr-fix-autopilot
Browse files Browse the repository at this point in the history
core: fix autopilot detection
  • Loading branch information
julianoes committed Jul 24, 2021
2 parents 752c5d5 + 4e624ad commit 0599f9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/system_impl.cpp
Expand Up @@ -191,9 +191,9 @@ void SystemImpl::process_heartbeat(const mavlink_message_t& message)
}

if (heartbeat.autopilot == MAV_AUTOPILOT_PX4) {
_autopilot = Autopilot::ArduPilot;
} else if (heartbeat.autopilot == MAV_AUTOPILOT_ARDUPILOTMEGA) {
_autopilot = Autopilot::Px4;
} else if (heartbeat.autopilot == MAV_AUTOPILOT_ARDUPILOTMEGA) {
_autopilot = Autopilot::ArduPilot;
}

set_connected();
Expand Down

0 comments on commit 0599f9b

Please sign in to comment.