Skip to content

Commit

Permalink
GCS_MAVLink: use set_alt_m
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbarker committed Nov 6, 2024
1 parent 0077066 commit 96bc2f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/GCS_MAVLink/GCS_Common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5058,7 +5058,7 @@ bool GCS_MAVLINK::location_from_command_t(const mavlink_command_int_t &in, Locat
out.lat = in.x;
out.lng = in.y;

out.set_alt_cm(int32_t(in.z * 100), frame);
out.set_alt_m(in.z, frame);

return true;
}
Expand Down

0 comments on commit 96bc2f5

Please sign in to comment.