Skip to content

Commit

Permalink
carControl API cleanup (commaai#33543)
Browse files Browse the repository at this point in the history
carControl cleanup
  • Loading branch information
adeebshihadeh authored and cydia2020 committed Sep 13, 2024
1 parent d8e38a5 commit cff4d83
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions cereal/car.capnp
Original file line number Diff line number Diff line change
Expand Up @@ -352,21 +352,21 @@ struct CarControl {
hudControl @5 :HUDControl;

struct Actuators {
# range from 0.0 - 1.0
gas @0: Float32;
brake @1: Float32;
# range from -1.0 - 1.0
steer @2: Float32;
# value sent over can to the car
steerOutputCan @8: Float32;
# lateral commands, mutually exclusive
steer @2: Float32; # [0.0, 1.0]
steeringAngleDeg @3: Float32;

curvature @7: Float32;

speed @6: Float32; # m/s
accel @4: Float32; # m/s^2
# longitudinal commands
accel @4: Float32; # m/s^2
longControlState @5: LongControlState;

# these are only for logging the actual values sent to the car over CAN
gas @0: Float32; # [0.0, 1.0]
brake @1: Float32; # [0.0, 1.0]
steerOutputCan @8: Float32; # value sent over can to the car
speed @6: Float32; # m/s

enum LongControlState @0xe40f3a917d908282{
off @0;
pid @1;
Expand Down

0 comments on commit cff4d83

Please sign in to comment.