Browse Source

AP_Vehicle: use AP_CheckFirmware

master
Andrew Tridgell 3 years ago
parent
commit
f7e4b5c72d
  1. 5
      libraries/AP_Vehicle/AP_Vehicle.cpp
  2. 1
      libraries/AP_Vehicle/AP_Vehicle.h

5
libraries/AP_Vehicle/AP_Vehicle.cpp

@ -10,6 +10,7 @@
#include <AP_RPM/AP_RPM.h> #include <AP_RPM/AP_RPM.h>
#include <SRV_Channel/SRV_Channel.h> #include <SRV_Channel/SRV_Channel.h>
#include <AP_Motors/AP_Motors.h> #include <AP_Motors/AP_Motors.h>
#include <AP_CheckFirmware/AP_CheckFirmware.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS #if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
#include <AP_HAL_ChibiOS/sdcard.h> #include <AP_HAL_ChibiOS/sdcard.h>
#endif #endif
@ -130,6 +131,10 @@ void AP_Vehicle::setup()
AP::fwversion().fw_string, AP::fwversion().fw_string,
(unsigned)hal.util->available_memory()); (unsigned)hal.util->available_memory());
#if AP_CHECK_FIRMWARE_ENABLED
check_firmware_print();
#endif
load_parameters(); load_parameters();
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS #if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS

1
libraries/AP_Vehicle/AP_Vehicle.h

@ -55,6 +55,7 @@
#include <AP_CustomRotations/AP_CustomRotations.h> #include <AP_CustomRotations/AP_CustomRotations.h>
#include <AP_AIS/AP_AIS.h> #include <AP_AIS/AP_AIS.h>
#include <AC_Fence/AC_Fence.h> #include <AC_Fence/AC_Fence.h>
#include <AP_CheckFirmware/AP_CheckFirmware.h>
class AP_Vehicle : public AP_HAL::HAL::Callbacks { class AP_Vehicle : public AP_HAL::HAL::Callbacks {

Loading…
Cancel
Save