mirror of https://github.com/ArduPilot/ardupilot
Copter: payload place fixups
This commit is contained in:
parent
000a2b17c3
commit
b8c58bd900
|
@ -382,7 +382,6 @@ void ModeAuto::payload_place_start()
|
||||||
|
|
||||||
// call location specific place start function
|
// call location specific place start function
|
||||||
payload_place_start(stopping_point);
|
payload_place_start(stopping_point);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// returns true if pilot's yaw input should be used to adjust vehicle's heading
|
// returns true if pilot's yaw input should be used to adjust vehicle's heading
|
||||||
|
@ -1024,9 +1023,10 @@ void ModeAuto::payload_place_run()
|
||||||
case PayloadPlaceStateType_Releasing:
|
case PayloadPlaceStateType_Releasing:
|
||||||
case PayloadPlaceStateType_Released:
|
case PayloadPlaceStateType_Released:
|
||||||
case PayloadPlaceStateType_Ascending_Start:
|
case PayloadPlaceStateType_Ascending_Start:
|
||||||
|
return payload_place_run_loiter();
|
||||||
case PayloadPlaceStateType_Ascending:
|
case PayloadPlaceStateType_Ascending:
|
||||||
case PayloadPlaceStateType_Done:
|
case PayloadPlaceStateType_Done:
|
||||||
return payload_place_run_loiter();
|
return wp_run();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1057,13 +1057,6 @@ void ModeAuto::payload_place_run_loiter()
|
||||||
// loiter...
|
// loiter...
|
||||||
land_run_horizontal_control();
|
land_run_horizontal_control();
|
||||||
|
|
||||||
// run loiter controller
|
|
||||||
loiter_nav->update();
|
|
||||||
|
|
||||||
// call attitude controller
|
|
||||||
const float target_yaw_rate = 0;
|
|
||||||
attitude_control->input_euler_angle_roll_pitch_euler_rate_yaw(wp_nav->get_roll(), wp_nav->get_pitch(), target_yaw_rate);
|
|
||||||
|
|
||||||
// call position controller
|
// call position controller
|
||||||
pos_control->update_z_controller();
|
pos_control->update_z_controller();
|
||||||
}
|
}
|
||||||
|
@ -1603,7 +1596,7 @@ bool ModeAuto::verify_payload_place()
|
||||||
case PayloadPlaceStateType_Calibrating_Hover:
|
case PayloadPlaceStateType_Calibrating_Hover:
|
||||||
case PayloadPlaceStateType_Descending_Start:
|
case PayloadPlaceStateType_Descending_Start:
|
||||||
case PayloadPlaceStateType_Descending:
|
case PayloadPlaceStateType_Descending:
|
||||||
gcs().send_text(MAV_SEVERITY_INFO, "NAV_PLACE: landed");
|
gcs().send_text(MAV_SEVERITY_INFO, "PayloadPlace: landed");
|
||||||
nav_payload_place.state = PayloadPlaceStateType_Releasing_Start;
|
nav_payload_place.state = PayloadPlaceStateType_Releasing_Start;
|
||||||
break;
|
break;
|
||||||
case PayloadPlaceStateType_Releasing_Start:
|
case PayloadPlaceStateType_Releasing_Start:
|
||||||
|
|
Loading…
Reference in New Issue