mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 07:03:33 +08:00
Refactored to work with new battery_status module
This commit is contained in:
committed by
Julian Oes
parent
d7bb5d46bb
commit
993fa5bd37
@@ -420,7 +420,7 @@ Syslink::handle_message(syslink_message_t *msg)
|
||||
}
|
||||
|
||||
/* With the usb plugged in and battery disconnected, it appears to be charged. The voltage check ensures that a battery is connected */
|
||||
else if (powered && !charging && _battery_status.voltage_filtered_v > 3.7f) {
|
||||
else if (powered && !charging && vbat > 3.7f) {
|
||||
_bstate = BAT_CHARGED;
|
||||
|
||||
} else {
|
||||
|
||||
@@ -137,7 +137,7 @@ private:
|
||||
|
||||
uORB::PublicationMulti<input_rc_s> _rc_pub{ORB_ID(input_rc)};
|
||||
|
||||
Battery1 _battery;
|
||||
Battery _battery;
|
||||
|
||||
int32_t _rssi;
|
||||
battery_state _bstate;
|
||||
|
||||
@@ -32,7 +32,7 @@ px4_add_board(
|
||||
#uavcan
|
||||
MODULES
|
||||
#airspeed_selector
|
||||
attitude_estimator_q
|
||||
#attitude_estimator_q
|
||||
battery_status
|
||||
#camera_feedback
|
||||
commander
|
||||
@@ -44,7 +44,7 @@ px4_add_board(
|
||||
land_detector
|
||||
landing_target_estimator
|
||||
load_mon
|
||||
local_position_estimator
|
||||
#local_position_estimator
|
||||
logger
|
||||
mavlink
|
||||
mc_att_control
|
||||
|
||||
Reference in New Issue
Block a user