From 9211b701ce7e5ce2716a245ade2cccdf8629d4ce Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Wed, 11 Sep 2024 17:23:53 -0700 Subject: [PATCH] carControl API cleanup (#33543) carControl cleanup --- cereal/car.capnp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/cereal/car.capnp b/cereal/car.capnp index 0ccd00c0ba9ef5..f5469a54d7ba7b 100644 --- a/cereal/car.capnp +++ b/cereal/car.capnp @@ -350,21 +350,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;