Skip to content

Commit

Permalink
SITL: fixed the vehicle type of the simulated ship
Browse files Browse the repository at this point in the history
this was broken by #23763

we need to look for other places where we have assumed the MAVLink
field orderin in recent changes
  • Loading branch information
tridge committed Mar 7, 2024
1 parent dc76268 commit feff2f3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions libraries/SITL/SIM_Ship.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,11 @@ void ShipSim::send_report(void)

if (now - last_heartbeat_ms >= 1000) {
last_heartbeat_ms = now;

const mavlink_heartbeat_t heartbeat{
MAV_TYPE_SURFACE_BOAT,
MAV_AUTOPILOT_INVALID,
0,
0,
0};
type : MAV_TYPE_SURFACE_BOAT,
autopilot : MAV_AUTOPILOT_INVALID};

mavlink_message_t msg;
mavlink_msg_heartbeat_encode_status(
sys_id.get(),
Expand Down

0 comments on commit feff2f3

Please sign in to comment.