Tracker: constrain manual pass through

This commit is contained in:
Randy Mackay 2014-10-06 19:25:29 +09:00
parent 4f5f253656
commit 5e91d49736
1 changed files with 5 additions and 2 deletions

View File

@ -10,8 +10,11 @@
*/
static void update_manual(void)
{
channel_yaw.radio_out = channel_yaw.radio_in;
channel_pitch.radio_out = channel_pitch.radio_in;
// copy yaw and pitch input to output
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_pitch.output();
}