AP_Mount: save some flash when features disabled

This commit is contained in:
Andrew Tridgell 2024-12-01 15:50:20 +11:00 committed by Peter Barker
parent 6c8a6bedc9
commit ed7d4051aa

View File

@ -1,6 +1,7 @@
#pragma once
#include <AP_Logger/LogStructure.h>
#include "AP_Mount_config.h"
#define LOG_IDS_FROM_MOUNT \
LOG_MOUNT_MSG
@ -34,7 +35,10 @@ struct PACKED log_Mount {
float rangefinder_dist;
};
#if HAL_MOUNT_ENABLED
#define LOG_STRUCTURE_FROM_MOUNT \
{ LOG_MOUNT_MSG, sizeof(log_Mount), \
"MNT", "QBfffffffff","TimeUS,I,DRoll,Roll,DPitch,Pitch,DYawB,YawB,DYawE,YawE,Dist", "s#ddddddddm", "F---------0" },
#else
#define LOG_STRUCTURE_FROM_MOUNT
#endif