mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
Copter: integrate non-GPS avoidance into althold
This commit is contained in:
parent
1b582b2009
commit
5f0a4c2097
@ -134,6 +134,10 @@ void Copter::althold_run()
|
||||
|
||||
case AltHold_Flying:
|
||||
motors.set_desired_spool_state(AP_Motors::DESIRED_THROTTLE_UNLIMITED);
|
||||
|
||||
// apply avoidance
|
||||
avoid.adjust_roll_pitch(target_roll, target_pitch, aparm.angle_max);
|
||||
|
||||
// call attitude controller
|
||||
attitude_control.input_euler_angle_roll_pitch_euler_rate_yaw(target_roll, target_pitch, target_yaw_rate, get_smoothing_gain());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user