From a035950a227992488cc355014d6bd9e1367c3ca1 Mon Sep 17 00:00:00 2001 From: khancyr Date: Wed, 16 Aug 2017 09:58:14 +0200 Subject: [PATCH] Rover: minor format fix --- APMrover2/AP_MotorsUGV.cpp | 2 +- APMrover2/commands_logic.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/APMrover2/AP_MotorsUGV.cpp b/APMrover2/AP_MotorsUGV.cpp index b8c449a6ed..5f6e2f2c8c 100644 --- a/APMrover2/AP_MotorsUGV.cpp +++ b/APMrover2/AP_MotorsUGV.cpp @@ -145,7 +145,7 @@ void AP_MotorsUGV::set_throttle(float throttle) { // sanity check throttle min and max _throttle_min = constrain_int16(_throttle_min, 0, 20); - _throttle_max = constrain_int16(_throttle_max,30,100); + _throttle_max = constrain_int16(_throttle_max, 30, 100); // check throttle is between -_throttle_max ~ +_throttle_max but outside -throttle_min ~ +throttle_min _throttle = constrain_float(throttle, -_throttle_max, _throttle_max); diff --git a/APMrover2/commands_logic.cpp b/APMrover2/commands_logic.cpp index 106dfd517b..e169a269b2 100644 --- a/APMrover2/commands_logic.cpp +++ b/APMrover2/commands_logic.cpp @@ -229,7 +229,7 @@ void Rover::do_nav_wp(const AP_Mission::Mission_Command& cmd, bool stay_active_a // in case of non-zero loiter duration, we provide heading-unknown to signal we should stop at the point float next_leg_bearing_cd = MODE_NEXT_HEADING_UNKNOWN; if (loiter_duration == 0) { - next_leg_bearing_cd = mission.get_next_ground_course_cd(MODE_NEXT_HEADING_UNKNOWN); + next_leg_bearing_cd = mission.get_next_ground_course_cd(MODE_NEXT_HEADING_UNKNOWN); } // retrieve and sanitize target location