69 if (selchan ==
nullptr) {
73 if (selector_in >= 1700) {
79 if (hold_time > 5000 &&
changed) {
88 }
else if (selector_in <= 1300) {
92 if (hold_time < 2000) {
96 }
else if (hold_time < 5000) {
177 if (chan ==
nullptr) {
198 const float dead_zone = 0.02;
212 if (chan_value > 0) {
242 uint8_t
set = (uint8_t)
parmset.get();
265 uint8_t
set = (uint8_t)
parmset.get();
289 uint8_t
set = (uint8_t)
parmset.get();
335 gcs().
send_text(MAV_SEVERITY_INFO,
"Tuning: error %.2f", (
double)err);
bool get_soft_armed() const
static uint8_t get_valid_channel_count(void)
uint32_t selector_start_ms
virtual float controller_error(uint8_t parm)=0
int16_t get_radio_in() const
static RC_Channel * rc_channel(uint8_t chan)
Interface definition for the various Ground Control System.
#define AP_GROUPINFO(name, idx, clazz, element, def)
void check_selector_switch(void)
void save_parameters(void)
const char * get_tuning_name(uint8_t parm)
void Log_Write_Parameter_Tuning(float value)
uint32_t last_controller_error_ms
virtual void save_value(uint8_t parm)=0
virtual AP_Float * get_param_pointer(uint8_t parm)=0
float linear_interpolate(float low_output, float high_output, float var_value, float var_low, float var_high)
uint8_t current_parm_index
void Log_Write(const char *name, const char *labels, const char *fmt,...)
void revert_parameters(void)
RC_Channel manager, with EEPROM-backed storage of constants.
Object managing one RC channel.
void check_controller_error(void)
static DataFlash_Class * instance(void)
virtual void reload_value(uint8_t parm)=0
void send_text(MAV_SEVERITY severity, const char *fmt,...)
virtual void set_value(uint8_t parm, float value)=0
const tuning_set * tuning_sets
void check_input(uint8_t flightmode)
AP_HAL::AnalogSource * chan
const AP_HAL::HAL & hal
-*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
static struct notify_events_type events
static const struct AP_Param::GroupInfo var_info[]
const tuning_name * tuning_names
void next_parameter(void)