mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-04 15:08:28 -04:00
152edf7189
Using a global .dir-locals.el file is a better alternative than reincluding the same emacs header in every file of the project.
12 lines
243 B
C++
12 lines
243 B
C++
#include "Tracker.h"
|
|
|
|
// Functions to read the RC radio input
|
|
|
|
void Tracker::read_radio()
|
|
{
|
|
if (hal.rcin->new_input()) {
|
|
channel_yaw.set_pwm(hal.rcin->read(CH_YAW));
|
|
channel_pitch.set_pwm(hal.rcin->read(CH_PITCH));
|
|
}
|
|
}
|