Skip to content

Commit

Permalink
AP_Winch: pos control user output fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rmackay9 committed Oct 9, 2023
1 parent a3b7b74 commit 296de86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_Winch/AP_Winch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ void AP_Winch::release_length(float length)

// display verbose output to user
if (backend->option_enabled(Options::VerboseOutput)) {
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Winch: lowering %4.1fm to %4.1fm", (double)length, (double)config.length_desired);
GCS_SEND_TEXT(MAV_SEVERITY_INFO, "Winch: %s %4.1fm to %4.1fm", is_negative(length) ? "raising" : "lowering", (double)fabsf(length), (double)config.length_desired);
}
}

Expand Down

0 comments on commit 296de86

Please sign in to comment.