mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-06-22 03:42:07 +08:00
@@ -287,6 +287,7 @@ struct CarParams {
|
||||
toyota @2;
|
||||
elm327 @3;
|
||||
gm @4;
|
||||
hondaBosch @5;
|
||||
}
|
||||
|
||||
# things about the car in the manual
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
#define SAFETY_TOYOTA 2
|
||||
#define SAFETY_ELM327 0xE327
|
||||
#define SAFETY_GM 3
|
||||
#define SAFETY_HONDA_BOSCH 4
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -99,6 +100,9 @@ void *safety_setter_thread(void *s) {
|
||||
case (int)cereal::CarParams::SafetyModels::GM:
|
||||
safety_setting = SAFETY_GM;
|
||||
break;
|
||||
case (int)cereal::CarParams::SafetyModels::HONDA_BOSCH:
|
||||
safety_setting = SAFETY_HONDA_BOSCH;
|
||||
break;
|
||||
default:
|
||||
LOGE("unknown safety model: %d", safety_model);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user