mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
Tracker: constrain manual pass through
This commit is contained in:
parent
4f5f253656
commit
5e91d49736
@ -10,8 +10,11 @@
|
|||||||
*/
|
*/
|
||||||
static void update_manual(void)
|
static void update_manual(void)
|
||||||
{
|
{
|
||||||
channel_yaw.radio_out = channel_yaw.radio_in;
|
// copy yaw and pitch input to output
|
||||||
channel_pitch.radio_out = channel_pitch.radio_in;
|
channel_yaw.radio_out = constrain_int16(channel_yaw.radio_in, channel_yaw.radio_min, channel_yaw.radio_max);
|
||||||
|
channel_pitch.radio_out = constrain_int16(channel_pitch.radio_in, channel_pitch.radio_min, channel_pitch.radio_max);
|
||||||
|
|
||||||
|
// send output to servos
|
||||||
channel_yaw.output();
|
channel_yaw.output();
|
||||||
channel_pitch.output();
|
channel_pitch.output();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user