mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-10-06 19:00:27 +08:00
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>
20 lines
557 B
C++
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);
|
|
}
|