mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-19 07:08:29 -04:00
AP_Mount: save some flash when features disabled
This commit is contained in:
parent
6c8a6bedc9
commit
ed7d4051aa
@ -1,6 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <AP_Logger/LogStructure.h>
|
#include <AP_Logger/LogStructure.h>
|
||||||
|
#include "AP_Mount_config.h"
|
||||||
|
|
||||||
#define LOG_IDS_FROM_MOUNT \
|
#define LOG_IDS_FROM_MOUNT \
|
||||||
LOG_MOUNT_MSG
|
LOG_MOUNT_MSG
|
||||||
@ -34,7 +35,10 @@ struct PACKED log_Mount {
|
|||||||
float rangefinder_dist;
|
float rangefinder_dist;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if HAL_MOUNT_ENABLED
|
||||||
#define LOG_STRUCTURE_FROM_MOUNT \
|
#define LOG_STRUCTURE_FROM_MOUNT \
|
||||||
{ LOG_MOUNT_MSG, sizeof(log_Mount), \
|
{ LOG_MOUNT_MSG, sizeof(log_Mount), \
|
||||||
"MNT", "QBfffffffff","TimeUS,I,DRoll,Roll,DPitch,Pitch,DYawB,YawB,DYawE,YawE,Dist", "s#ddddddddm", "F---------0" },
|
"MNT", "QBfffffffff","TimeUS,I,DRoll,Roll,DPitch,Pitch,DYawB,YawB,DYawE,YawE,Dist", "s#ddddddddm", "F---------0" },
|
||||||
|
#else
|
||||||
|
#define LOG_STRUCTURE_FROM_MOUNT
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user