mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_OSD: use message with static assert
This commit is contained in:
parent
1b10008e38
commit
e06952bf0f
@ -119,7 +119,7 @@ static const char* SERIAL_PROTOCOL_VALUES[] = {
|
|||||||
"GEN", "WNCH", "MSP", "DJI", "AIRSPD", "ADSB", "AHRS", "AUDIO", "FETTEC", "TORQ",
|
"GEN", "WNCH", "MSP", "DJI", "AIRSPD", "ADSB", "AHRS", "AUDIO", "FETTEC", "TORQ",
|
||||||
"AIS", "CD_ESC", "MSP_DP", "MAV_HL", "TRAMP", "DDS"
|
"AIS", "CD_ESC", "MSP_DP", "MAV_HL", "TRAMP", "DDS"
|
||||||
};
|
};
|
||||||
static_assert(AP_SerialManager::SerialProtocol_NumProtocols == ARRAY_SIZE(SERIAL_PROTOCOL_VALUES));
|
static_assert(AP_SerialManager::SerialProtocol_NumProtocols == ARRAY_SIZE(SERIAL_PROTOCOL_VALUES), "Wrong size SerialProtocol_NumProtocols");
|
||||||
|
|
||||||
static const char* SERVO_FUNCTIONS[] = {
|
static const char* SERVO_FUNCTIONS[] = {
|
||||||
"NONE", "RCPASS", "FLAP", "FLAP_AUTO", "AIL", "", "MNT_PAN", "MNT_TLT", "MNT_RLL", "MNT_OPEN",
|
"NONE", "RCPASS", "FLAP", "FLAP_AUTO", "AIL", "", "MNT_PAN", "MNT_TLT", "MNT_RLL", "MNT_OPEN",
|
||||||
|
Loading…
Reference in New Issue
Block a user