Files
sunny360vfe_proj/controllers/ENUM_sysauto_modes.m
T

36 lines
1.3 KiB
Matlab
Raw Normal View History

2025-06-04 14:13:22 +08:00
classdef ENUM_sysauto_modes < Simulink.IntEnumType
enumeration
MANUAL (bitshift(uint32(1),16))
ALTCTL (bitshift(uint32(2),16))
POSCTL (bitshift(uint32(3),16))
AUTO (bitshift(uint32(4),16))
ACRO (bitshift(uint32(5),16))
OFFBOARD (bitshift(uint32(6),16))
STABILIZED (bitshift(uint32(7),16))
RATTITUDE (bitshift(uint32(8),16))
SIMPLE (bitshift(uint32(8),16))
STANDBY (bitshift(uint32(9),16))
BIT (bitshift(uint32(10),16))
AUTO_READY (bitshift(uint32(4),16)+bitshift(uint32(1),24))
AUTO_TAKEOFF (bitshift(uint32(4),16)+bitshift(uint32(2),24))
AUTO_LOITER (bitshift(uint32(4),16)+bitshift(uint32(3),24))
AUTO_MISSION (bitshift(uint32(4),16)+bitshift(uint32(4),24))
AUTO_RTL (bitshift(uint32(4),16)+bitshift(uint32(5),24))
AUTO_LAND (bitshift(uint32(4),16)+bitshift(uint32(6),24))
AUTO_RTGS (bitshift(uint32(4),16)+bitshift(uint32(7),24))
AUTO_FOLLOW_TARGET (bitshift(uint32(4),16)+bitshift(uint32(8),24))
end
methods (Static = true)
function retVal = getDescription()
retVal = 'System Automation Modes';
end
function retVal = getDefaultValue()
retVal = ENUM_sysauto_modes.MANUAL;
end
function retVal = addClassNameToEnumNames()
retVal = true;
end
end
end