PX4 Firmware
PX4 Autopilot Software http://px4.io
battery_status Namespace Reference

Classes

struct  ParameterHandles
 
struct  Parameters
 

Functions

void initialize_parameter_handles (ParameterHandles &parameter_handles)
 initialize ParameterHandles struct More...
 
int update_parameters (const ParameterHandles &parameter_handles, Parameters &parameters)
 Read out the parameters using the handles into the parameters struct. More...
 

Function Documentation

◆ initialize_parameter_handles()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ update_parameters()

int battery_status::update_parameters ( const ParameterHandles parameter_handles,
Parameters parameters 
)