AP_Vehicle: use AP_CheckFirmware

This commit is contained in:
Andrew Tridgell 2022-08-18 18:15:52 +10:00 committed by Randy Mackay
parent 92cb78dfe7
commit e217c1c82f
2 changed files with 6 additions and 0 deletions

View File

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

View File

@ -51,6 +51,7 @@
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
#include <SITL/SITL.h>
#endif
#include <AP_CheckFirmware/AP_CheckFirmware.h>
class AP_Vehicle : public AP_HAL::HAL::Callbacks {