mirror of https://github.com/ArduPilot/ardupilot
Copter: minor format fixes
This commit is contained in:
parent
fcb3d40ffd
commit
48825c9cc6
|
@ -114,9 +114,9 @@ void Mode::AutoYaw::set_fixed_yaw(float angle_deg, float turn_rate_ds, int8_t di
|
||||||
} else {
|
} else {
|
||||||
// absolute angle
|
// absolute angle
|
||||||
_fixed_yaw_offset_cd = wrap_180_cd(angle_deg * 100.0 - _yaw_angle_cd);
|
_fixed_yaw_offset_cd = wrap_180_cd(angle_deg * 100.0 - _yaw_angle_cd);
|
||||||
if ( direction < 0 && is_positive(_fixed_yaw_offset_cd) ) {
|
if (direction < 0 && is_positive(_fixed_yaw_offset_cd)) {
|
||||||
_fixed_yaw_offset_cd -= 36000.0;
|
_fixed_yaw_offset_cd -= 36000.0;
|
||||||
} else if ( direction > 0 && is_negative(_fixed_yaw_offset_cd) ) {
|
} else if (direction > 0 && is_negative(_fixed_yaw_offset_cd)) {
|
||||||
_fixed_yaw_offset_cd += 36000.0;
|
_fixed_yaw_offset_cd += 36000.0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1850,8 +1850,6 @@ void ModeAuto::do_yaw(const AP_Mission::Mission_Command& cmd)
|
||||||
// Do (Now) commands
|
// Do (Now) commands
|
||||||
/********************************************************************************/
|
/********************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void ModeAuto::do_change_speed(const AP_Mission::Mission_Command& cmd)
|
void ModeAuto::do_change_speed(const AP_Mission::Mission_Command& cmd)
|
||||||
{
|
{
|
||||||
if (cmd.content.speed.target_ms > 0) {
|
if (cmd.content.speed.target_ms > 0) {
|
||||||
|
|
Loading…
Reference in New Issue