2015-06-01 02:04:25 -03:00
|
|
|
#include "Tracker.h"
|
|
|
|
|
2015-04-17 21:45:26 -03:00
|
|
|
/*
|
2016-07-25 15:52:50 -03:00
|
|
|
* Manual control mode
|
2015-04-17 21:45:26 -03:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* update_manual - runs the manual controller
|
|
|
|
* called at 50hz while control_mode is 'MANUAL'
|
|
|
|
*/
|
2015-06-01 02:04:25 -03:00
|
|
|
void Tracker::update_manual(void)
|
2015-04-17 21:45:26 -03:00
|
|
|
{
|
|
|
|
// copy yaw and pitch input to output
|
2017-01-08 18:30:37 -04:00
|
|
|
SRV_Channels::set_output_pwm(SRV_Channel::k_tracker_yaw, RC_Channels::rc_channel(CH_YAW)->get_radio_in());
|
|
|
|
SRV_Channels::constrain_pwm(SRV_Channel::k_tracker_yaw);
|
2019-06-13 14:16:29 -03:00
|
|
|
|
2017-01-08 18:30:37 -04:00
|
|
|
SRV_Channels::set_output_pwm(SRV_Channel::k_tracker_pitch, RC_Channels::rc_channel(CH_PITCH)->get_radio_in());
|
|
|
|
SRV_Channels::constrain_pwm(SRV_Channel::k_tracker_pitch);
|
2015-04-17 21:45:26 -03:00
|
|
|
}
|