PX4 Firmware
PX4 Autopilot Software http://px4.io
|
Public Member Functions | |
DfLtc2946Wrapper () | |
~DfLtc2946Wrapper () | |
int | start () |
int | stop () |
Private Member Functions | |
int | _publish (const struct ltc2946_sensor_data &data) |
Private Attributes | |
orb_advert_t | _battery_pub {nullptr} |
battery_status_s | _battery_status {} |
Battery | _battery {} |
int | _actuator_ctrl_0_sub {-1} |
int | _vcontrol_mode_sub {-1} |
Definition at line 61 of file df_ltc2946_wrapper.cpp.
DfLtc2946Wrapper::DfLtc2946Wrapper | ( | ) |
Definition at line 82 of file df_ltc2946_wrapper.cpp.
References _actuator_ctrl_0_sub, _battery, _battery_status, _vcontrol_mode_sub, ORB_ID, orb_subscribe(), and Battery::reset().
Referenced by df_ltc2946_wrapper::start().
DfLtc2946Wrapper::~DfLtc2946Wrapper | ( | ) |
Definition at line 92 of file df_ltc2946_wrapper.cpp.
References _actuator_ctrl_0_sub, _vcontrol_mode_sub, and orb_unsubscribe().
|
private |
Definition at line 134 of file df_ltc2946_wrapper.cpp.
References _actuator_ctrl_0_sub, _battery, _battery_pub, _battery_status, _vcontrol_mode_sub, actuator_controls_s::control, vehicle_control_mode_s::flag_armed, hrt_absolute_time(), hrt_abstime, ll40ls::instance, orb_copy(), ORB_ID, ORB_PRIO_DEFAULT, orb_publish_auto(), and Battery::updateBatteryStatus().
int DfLtc2946Wrapper::start | ( | ) |
Definition at line 98 of file df_ltc2946_wrapper.cpp.
References ToneAlarmInterface::init(), and start().
Referenced by df_ltc2946_wrapper::start().
int DfLtc2946Wrapper::stop | ( | ) |
Definition at line 121 of file df_ltc2946_wrapper.cpp.
References stop().
Referenced by df_ltc2946_wrapper::stop().
|
private |
Definition at line 77 of file df_ltc2946_wrapper.cpp.
Referenced by _publish(), DfLtc2946Wrapper(), and ~DfLtc2946Wrapper().
|
private |
Definition at line 75 of file df_ltc2946_wrapper.cpp.
Referenced by _publish(), and DfLtc2946Wrapper().
|
private |
Definition at line 73 of file df_ltc2946_wrapper.cpp.
Referenced by _publish().
|
private |
Definition at line 74 of file df_ltc2946_wrapper.cpp.
Referenced by _publish(), and DfLtc2946Wrapper().
|
private |
Definition at line 78 of file df_ltc2946_wrapper.cpp.
Referenced by _publish(), DfLtc2946Wrapper(), and ~DfLtc2946Wrapper().