Files
ardupilot/AntennaTracker/mode_manual.cpp
T
Peter BarkerandClaude Haiku 4.5 6ea8cfcef8 AntennaTracker: fixes for static RC_Channel methods going away
going via the static methods threw away the const-correctness so we need a bunch of non-const equivalents of several const methods

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-05-07 09:33:15 +10:00

20 lines
557 B
C++

#include "Tracker.h"
/*
* Manual control mode
*/
/*
* update_manual - runs the manual controller
* called at 50hz while control mode is 'MANUAL'
*/
void ModeManual::update()
{
// copy yaw and pitch input to output
SRV_Channels::set_output_pwm(SRV_Channel::k_tracker_yaw, rc().channel(CH_YAW)->get_radio_in());
SRV_Channels::constrain_pwm(SRV_Channel::k_tracker_yaw);
SRV_Channels::set_output_pwm(SRV_Channel::k_tracker_pitch, rc().channel(CH_PITCH)->get_radio_in());
SRV_Channels::constrain_pwm(SRV_Channel::k_tracker_pitch);
}