mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Commander: Update call for new power management interface
This commit is contained in:
parent
ce921345cf
commit
bf448fce71
@ -81,6 +81,8 @@
|
||||
#include <float.h>
|
||||
#include <systemlib/hysteresis/hysteresis.h>
|
||||
|
||||
#include <board_config.h>
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
@ -2239,7 +2241,7 @@ int commander_thread_main(int argc, char *argv[])
|
||||
if (!armed.armed) {
|
||||
mavlink_log_critical(&mavlink_log_pub, "CRITICAL BATTERY, SHUT SYSTEM DOWN");
|
||||
usleep(200000);
|
||||
board_pwr(false);
|
||||
px4_board_pwr(false);
|
||||
|
||||
} else {
|
||||
if (low_bat_action == 1) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user