ardupilot/AntennaTracker/radio.cpp

12 lines
243 B
C++
Raw Normal View History

#include "Tracker.h"
2014-10-06 05:01:54 -03:00
// Functions to read the RC radio input
void Tracker::read_radio()
2014-10-06 05:01:54 -03:00
{
if (hal.rcin->new_input()) {
channel_yaw.set_pwm(hal.rcin->read(CH_YAW));
channel_pitch.set_pwm(hal.rcin->read(CH_PITCH));
}
}