Skip to content

Commit

Permalink
sunnypilotFlags and sunnypilotParams (#30)
Browse files Browse the repository at this point in the history
* sunnypilotCarParams

* comment

* use int16

* spFlags

* UInt32 works

* original name?

* Testing more carparams combinations

* Another crazy idea

* typo

* use this field

* move

* more rename

---------

Co-authored-by: DevTekVE <[email protected]>
  • Loading branch information
sunnyhaibin and devtekve authored Nov 16, 2024
1 parent 59d1664 commit 421c8c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions opendbc/car/car.capnp
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,8 @@ struct CarControl {
cruiseControl @4 :CruiseControl;
hudControl @5 :HUDControl;

sunnypilotParams @8 :UInt32;

struct Actuators {
# lateral commands, mutually exclusive
steer @2: Float32; # [0.0, 1.0]
Expand Down Expand Up @@ -429,7 +431,6 @@ struct CarControl {
brakeDEPRECATED @2 :Float32;
steeringTorqueDEPRECATED @3 :Float32;
activeDEPRECATED @7 :Bool;
rollDEPRECATED @8 :Float32;
pitchDEPRECATED @9 :Float32;
actuatorsOutputDEPRECATED @10 :Actuators;
}
Expand Down Expand Up @@ -517,6 +518,8 @@ struct CarParams {
secOcRequired @75 :Bool; # Car requires SecOC message authentication to operate
secOcKeyAvailable @76 :Bool; # Stored SecOC key loaded from params

sunnypilotFlags @54 :UInt32;

struct SafetyConfig {
safetyModel @0 :SafetyModel;
safetyParam @3 :UInt16;
Expand Down Expand Up @@ -715,7 +718,6 @@ struct CarParams {
brakeMaxBPDEPRECATED @15 :List(Float32);
brakeMaxVDEPRECATED @16 :List(Float32);
directAccelControlDEPRECATED @30 :Bool;
maxSteeringAngleDegDEPRECATED @54 :Float32;
longitudinalActuatorDelayLowerBoundDEPRECATED @61 :Float32;
stoppingControlDEPRECATED @31 :Bool; # Does the car allow full control even at lows speeds when stopping
radarTimeStepDEPRECATED @45: Float32 = 0.05; # time delta between radar updates, 20Hz is very standard
Expand Down

0 comments on commit 421c8c2

Please sign in to comment.