Skip to content

Commit

Permalink
Send rangefinder target to GCS
Browse files Browse the repository at this point in the history
  • Loading branch information
clydemcqueen committed Jul 18, 2023
1 parent 3f53395 commit 3f497e9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ArduSub/GCS_Mavlink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,9 @@ bool GCS_MAVLINK_Sub::send_info()
CHECK_PAYLOAD_SIZE(NAMED_VALUE_FLOAT);
send_named_float("RollPitch", sub.roll_pitch_flag);

CHECK_PAYLOAD_SIZE(NAMED_VALUE_FLOAT);
send_named_float("RFTarget", sub.surface_tracking.get_target_rangefinder_cm() / 100.0f);

return true;
}

Expand Down

0 comments on commit 3f497e9

Please sign in to comment.