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