Skip to content
Snippets Groups Projects
Commit 5e91d497 authored by Randy Mackay's avatar Randy Mackay
Browse files

Tracker: constrain manual pass through

parent 4f5f2536
No related branches found
No related tags found
No related merge requests found
...@@ -10,8 +10,11 @@ ...@@ -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();
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment