43 lines
1.9 KiB
Objective-C
43 lines
1.9 KiB
Objective-C
classdef ENUM_mode < 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))
|
|
BIT_SERVO_SWEEP (bitshift(uint32(10),16)+bitshift(uint32(1),16)) % 720896
|
|
BIT_THT_STAB (bitshift(uint32(10),16)+bitshift(uint32(2),16)) % 786432
|
|
BIT_Q_STAB (bitshift(uint32(10),16)+bitshift(uint32(3),16)) % 851968
|
|
BIT_ACT_SWEEP (bitshift(uint32(10),16)+bitshift(uint32(4),16)) % 917504
|
|
BIT_CTR_SWEEP (bitshift(uint32(10),16)+bitshift(uint32(5),16)) % 983040
|
|
BIT_SERVO_TEST (bitshift(uint32(10),16)+bitshift(uint32(6),16)) % 1048576
|
|
BIT_CTR_SWEEP_IMPULSE (bitshift(uint32(10),16)+bitshift(uint32(7),16)) % 1114112
|
|
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_mode.MANUAL;
|
|
end
|
|
function retVal = addClassNameToEnumNames()
|
|
retVal = true;
|
|
end
|
|
end
|
|
end
|
|
|