From ce29501ca8630e503194a2a36143bbd3878e5c11 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sat, 18 Dec 2021 12:21:58 +1100 Subject: [PATCH] Rover: tidy log message id definitions Add a comment indicating only 20 ids are available to the vehicle --- Rover/defines.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/Rover/defines.h b/Rover/defines.h index aa010f7539..20d3f86af1 100644 --- a/Rover/defines.h +++ b/Rover/defines.h @@ -17,12 +17,14 @@ #define FAILSAFE_EVENT_THROTTLE (1<<0) #define FAILSAFE_EVENT_GCS (1<<1) -// Logging parameters -#define LOG_THR_MSG 0x01 -#define LOG_NTUN_MSG 0x02 -#define LOG_STARTUP_MSG 0x06 -#define LOG_STEERING_MSG 0x0D -#define LOG_GUIDEDTARGET_MSG 0x0E +// Logging parameters - only 32 messages are available to the vehicle here. +enum LoggingParameters { + LOG_THR_MSG, + LOG_NTUN_MSG, + LOG_STARTUP_MSG, + LOG_STEERING_MSG, + LOG_GUIDEDTARGET_MSG, +}; #define TYPE_GROUNDSTART_MSG 0x01