mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-02 12:02:09 +08:00
Merge pull request #202 from vntarasov/volt-gm-id
Dibs on SAFETY_GM numerical value
This commit is contained in:
@@ -286,6 +286,7 @@ struct CarParams {
|
||||
honda @1;
|
||||
toyota @2;
|
||||
elm327 @3;
|
||||
gm @4;
|
||||
}
|
||||
|
||||
# things about the car in the manual
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
#define SAFETY_HONDA 1
|
||||
#define SAFETY_TOYOTA 2
|
||||
#define SAFETY_ELM327 0xE327
|
||||
#define SAFETY_GM 3
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -95,6 +96,9 @@ void *safety_setter_thread(void *s) {
|
||||
case (int)cereal::CarParams::SafetyModels::ELM327:
|
||||
safety_setting = SAFETY_ELM327;
|
||||
break;
|
||||
case (int)cereal::CarParams::SafetyModels::GM:
|
||||
safety_setting = SAFETY_GM;
|
||||
break;
|
||||
default:
|
||||
LOGE("unknown safety model: %d", safety_model);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user