diff options
Diffstat (limited to 'policy_manager/stm/stm.c')
-rw-r--r-- | policy_manager/stm/stm.c | 74 |
1 files changed, 66 insertions, 8 deletions
diff --git a/policy_manager/stm/stm.c b/policy_manager/stm/stm.c index c63a599..1c4170d 100644 --- a/policy_manager/stm/stm.c +++ b/policy_manager/stm/stm.c @@ -22,9 +22,18 @@ const char* kStmEventName[] = { "none", "activate", "deactivate", + "trans_gear_neutral", + "trans_gear_not_neutral", + "parking_brake_off", + "parking_brake_on", + "accel_pedal_off", + "accel_pedal_on", + "lamp_off", + "lamp_on", + "lightstatus_brake_off", + "lightstatus_brake_on", "restriction_mode_off", - "restriction_mode_1_on", - "restriction_mode_2_on", + "restriction_mode_on", "undo", }; @@ -34,11 +43,16 @@ const char* kStmCategoryName[] = { "map", "general", "splitable", + "splitable_main", + "splitable_sub", "pop_up", "system_alert", "restriction", "system", "software_keyboard", + "tbt", + "meter", + "receiver", "debug", }; @@ -53,6 +67,7 @@ const char* kStmAreaName[] = { "restriction.split.main", "restriction.split.sub", "software_keyboard", + "master.split.sub", }; const char* kStmLayoutName[] = { @@ -71,6 +86,13 @@ const char* kStmLayoutName[] = { "restriction.split.sub", "system.normal", "software_keyboard", + "tbt", + "remote_tbt", + "meter.normal", + "meter_receiver", + "meter_splitable", + "splitable_receiver", + "receiver.split", "debug.normal", "debug.split.main", "debug.split.sub", @@ -83,9 +105,10 @@ const char* kStmLayerName[] = { "near_homescreen", "restriction", "on_screen", + "remote", }; -const char* kStmModeName[] = { +const char* kStmCarElementName[] = { "trans_gear", "parking_brake", "accel_pedal", @@ -95,18 +118,53 @@ const char* kStmModeName[] = { "restriction_mode", }; +const char* kStmTransGearStateName[] = { + "neutral", + "not_neutral" +}; + +const char* kStmParkingBrakeStateName[] = { + "off", + "on" +}; + +const char* kStmAccelPedalStateName[] = { + "off", + "on" +}; + +const char* kStmRunningSttNo2Name[] = { + "stop", + "run" +}; + +const char* kStmLampStateName[] = { + "off", + "on" +}; + +const char* kStmLightstatusBrakeStateName[] = { + "off", + "on" +}; + const char* kStmRestrictionModeStateName[] = { "off", - "1on", - "2on", + "on", }; -const char** kStmModeStateNameList[] = { +const char** kStmCarElementStateNameList[] = { + kStmTransGearStateName, + kStmParkingBrakeStateName, + kStmAccelPedalStateName, + kStmRunningSttNo2Name, + kStmLampStateName, + kStmLightstatusBrakeStateName, kStmRestrictionModeStateName, }; -void stmInitialize() { - stmInitializeInner(); +void stmInitialize(const char *ecu_name) { + stmInitializeInner(ecu_name); } int stmTransitionState(int event, StmState* state) { |