Commit f93aca60 authored by Maxime Perrotin's avatar Maxime Perrotin

Use an enumerated type for the floor

parent 085858a6
......@@ -5,14 +5,16 @@ UpDown ::= ENUMERATED { up (1), down (0) }
OnOff ::= ENUMERATED { on (1), off (0) }
OpenClose ::= ENUMERATED { door-open (1), door-close (0) }
Position ::= REAL (-100 .. 100.0)
Floors ::= INTEGER {
-- don't use an integer, because the GUI needs to have real floor names
Floors ::= ENUMERATED {
floor-0 (0),
floor-1 (10),
floor-2 (20),
floor-3 (30),
floor-4 (40),
floor-5 (50)
} (0 | 10 | 20 | 30 | 40 | 50)
}
-- Types used for the interfacing with the Simulink model
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment