PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Classes | |
struct | ParameterHandles |
struct | Parameters |
Functions | |
void | initialize_parameter_handles (ParameterHandles ¶meter_handles) |
initialize ParameterHandles struct More... | |
int | update_parameters (const ParameterHandles ¶meter_handles, Parameters ¶meters) |
Read out the parameters using the handles into the parameters struct. More... | |
void battery_status::initialize_parameter_handles | ( | ParameterHandles & | parameter_handles | ) |
initialize ParameterHandles struct
Definition at line 49 of file parameters.cpp.
References battery_status::ParameterHandles::battery_a_per_v, battery_status::ParameterHandles::battery_adc_channel, battery_status::ParameterHandles::battery_current_offset, battery_status::ParameterHandles::battery_current_scaling, battery_status::ParameterHandles::battery_source, battery_status::ParameterHandles::battery_v_div, battery_status::ParameterHandles::battery_voltage_scaling, and param_find().
Referenced by BatteryStatus::BatteryStatus(), and Sensors::Sensors().
int battery_status::update_parameters | ( | const ParameterHandles & | parameter_handles, |
Parameters & | parameters | ||
) |
Read out the parameters using the handles into the parameters struct.
Definition at line 60 of file parameters.cpp.
References battery_status::Parameters::battery_a_per_v, battery_status::ParameterHandles::battery_a_per_v, battery_status::Parameters::battery_adc_channel, battery_status::ParameterHandles::battery_adc_channel, battery_status::Parameters::battery_current_offset, battery_status::ParameterHandles::battery_current_offset, battery_status::Parameters::battery_current_scaling, battery_status::ParameterHandles::battery_current_scaling, battery_status::Parameters::battery_source, battery_status::ParameterHandles::battery_source, battery_status::Parameters::battery_v_div, battery_status::ParameterHandles::battery_v_div, battery_status::Parameters::battery_voltage_scaling, battery_status::ParameterHandles::battery_voltage_scaling, OK, param_get(), param_set_no_notification(), and px4_arch_adc_dn_fullcount().
Referenced by Sensors::parameters_update(), and BatteryStatus::parameters_update().