gusimplewhiteboard
wb_switch_subsumption_traffic_lights.h
Go to the documentation of this file.
1
8#ifndef wb_switch_subsumption_traffic_lights_h
9#define wb_switch_subsumption_traffic_lights_h
10
11#include <gu_util.h>
12
16#define TL_SUBSUMPTION_LEVELS 9 // number of subsumption levels
17 // this is the number of layers in the subsumbtion array
18
20{ LIGHT_NO_COMMAND, // no command do not subsumme
21 LIGHT_NS_GREEN, // switch the ligh NS light to GREEN other NS OFF; EW others same
22 LIGHT_EW_GREEN, // switch the ligh EW light to GREEN other EW OFF; all NS others same
23 LIGHT_NS_AMBER, // switch the ligh NS light to AMBER other NS OFF; all EW others same
24 LIGHT_EW_AMBER, // switch the ligh EW light to AMBER other EW OFF; all NS others same
25 LIGHT_NS_RED, // switch the ligh NS light to RED other NS OFF; all EW others same
26 LIGHT_EW_RED, // switch the ligh EW light to RED other EW OFF; all NS others same
27 LIGHT_ALL_OFF, // switch all lights off
28 LIGHT_NS_OFF, // switch all the lights of NS OFF; all EW others same
29 LIGHT_EW_OFF, // switch the lights of EW OFF; all NS others same
30 LIGHT_BOTH_AMBER // switch NS and EW to AMBER, leave the others same
31};
32
34{
35 PROPERTY(enum TrafficLightConfigurationValues, lightConfiguration)
36};
37
38
40{
42
43#ifdef __cplusplus
46 { memset(this, 0, sizeof(*this));
47 }
48
49#endif
50
51};
52#endif //wb_switch_subsumption_traffic_lights_h
ARRAY_PROPERTY(enum TrafficLightConfigurationValues, theConfigurations, 9) wb_switch_subsumption_traffic_lights()
struct constructor
#define TL_SUBSUMPTION_LEVELS
/file wb_switch_subsumption_traffic_lights.h