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 15, 2023
1 parent a02e999 commit 5ead0b7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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
2 changes: 1 addition & 1 deletion ArduSub/surface_tracking.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ void Sub::SurfaceTracking::enable(bool _enabled)

// let pilot know that we're waiting for a rangefinder reading
if (enabled && !sub.rangefinder_alt_ok()) {
sub.gcs().send_text(MAV_SEVERITY_WARNING, "holding depth, waiting for a rangefinder reading");
sub.gcs().send_text(MAV_SEVERITY_INFO, "holding depth, waiting for a rangefinder reading");
}
}

Expand Down

0 comments on commit 5ead0b7

Please sign in to comment.