mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-08-21 08:14:00 +08:00
+36
-34
@@ -173,6 +173,9 @@ struct RadarState {
|
||||
# these are optional and valid if they are not NaN
|
||||
aRel @4 :Float32; # m/s^2
|
||||
yvRel @5 :Float32; # m/s
|
||||
|
||||
# some radars flag measurements VS estimates
|
||||
measured @6 :Bool;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -252,22 +255,22 @@ struct CarParams {
|
||||
enableGas @4 :Bool;
|
||||
enableBrake @5 :Bool;
|
||||
enableCruise @6 :Bool;
|
||||
enableCamera @27 :Bool;
|
||||
enableDsu @28 :Bool; # driving support unit
|
||||
enableApgs @29 :Bool; # advanced parking guidance system
|
||||
enableCamera @26 :Bool;
|
||||
enableDsu @27 :Bool; # driving support unit
|
||||
enableApgs @28 :Bool; # advanced parking guidance system
|
||||
|
||||
minEnableSpeed @18 :Float32;
|
||||
safetyModel @19 :Int16;
|
||||
minEnableSpeed @17 :Float32;
|
||||
safetyModel @18 :Int16;
|
||||
|
||||
steerMaxBP @20 :List(Float32);
|
||||
steerMaxV @21 :List(Float32);
|
||||
gasMaxBP @22 :List(Float32);
|
||||
gasMaxV @23 :List(Float32);
|
||||
brakeMaxBP @24 :List(Float32);
|
||||
brakeMaxV @25 :List(Float32);
|
||||
steerMaxBP @19 :List(Float32);
|
||||
steerMaxV @20 :List(Float32);
|
||||
gasMaxBP @21 :List(Float32);
|
||||
gasMaxV @22 :List(Float32);
|
||||
brakeMaxBP @23 :List(Float32);
|
||||
brakeMaxV @24 :List(Float32);
|
||||
|
||||
longPidDeadzoneBP @33 :List(Float32);
|
||||
longPidDeadzoneV @34 :List(Float32);
|
||||
longPidDeadzoneBP @32 :List(Float32);
|
||||
longPidDeadzoneV @33 :List(Float32);
|
||||
|
||||
enum SafetyModels {
|
||||
# does NOT match board setting
|
||||
@@ -278,33 +281,32 @@ struct CarParams {
|
||||
}
|
||||
|
||||
# things about the car in the manual
|
||||
m @7 :Float32; # [kg] running weight
|
||||
l @8 :Float32; # [m] wheelbase
|
||||
sR @9 :Float32; # [] steering ratio
|
||||
aF @10 :Float32; # [m] GC distance to front axle
|
||||
aR @11 :Float32; # [m] GC distance to rear axle
|
||||
chi @12 :Float32; # [] rear steering ratio wrt front steering (usually 0)
|
||||
mass @7 :Float32; # [kg] running weight
|
||||
wheelbase @8 :Float32; # [m] distance from rear to front axle
|
||||
centerToFront @9 :Float32; # [m] GC distance to front axle
|
||||
steerRatio @10 :Float32; # [] ratio between front wheels and steering wheel angles
|
||||
steerRatioRear @11 :Float32; # [] rear steering ratio wrt front steering (usually 0)
|
||||
|
||||
# things we can derive
|
||||
j @13 :Float32; # [kg*m2] body rotational inertia
|
||||
cF @14 :Float32; # [N/rad] front tire coeff of stiff
|
||||
cR @15 :Float32; # [N/rad] rear tire coeff of stiff
|
||||
rotationalInertia @12 :Float32; # [kg*m2] body rotational inertia
|
||||
tireStiffnessFront @13 :Float32; # [N/rad] front tire coeff of stiff
|
||||
tireStiffnessRear @14 :Float32; # [N/rad] rear tire coeff of stiff
|
||||
|
||||
# Kp and Ki for the lateral control
|
||||
steerKp @16 :Float32;
|
||||
steerKi @17 :Float32;
|
||||
steerKf @26 :Float32;
|
||||
steerKp @15 :Float32;
|
||||
steerKi @16 :Float32;
|
||||
steerKf @25 :Float32;
|
||||
|
||||
# Kp and Ki for the longitudinal control
|
||||
longitudinalKpBP @37 :List(Float32);
|
||||
longitudinalKpV @38 :List(Float32);
|
||||
longitudinalKiBP @39 :List(Float32);
|
||||
longitudinalKiV @40 :List(Float32);
|
||||
longitudinalKpBP @36 :List(Float32);
|
||||
longitudinalKpV @37 :List(Float32);
|
||||
longitudinalKiBP @38 :List(Float32);
|
||||
longitudinalKiV @39 :List(Float32);
|
||||
|
||||
steerLimitAlert @30 :Bool;
|
||||
steerLimitAlert @29 :Bool;
|
||||
|
||||
vEgoStopping @31 :Float32; # Speed at which the car goes into stopping state
|
||||
directAccelControl @32 :Bool; # Does the car have direct accel control or just gas/brake
|
||||
stoppingControl @35 :Bool; # Does the car allows full control even at lows speeds when stopping
|
||||
startAccel @36 :Float32; # Required acceleraton to overcome creep braking
|
||||
vEgoStopping @30 :Float32; # Speed at which the car goes into stopping state
|
||||
directAccelControl @31 :Bool; # Does the car have direct accel control or just gas/brake
|
||||
stoppingControl @34 :Bool; # Does the car allows full control even at lows speeds when stopping
|
||||
startAccel @35 :Float32; # Required acceleraton to overcome creep braking
|
||||
}
|
||||
|
||||
+1
-1
@@ -287,7 +287,7 @@ struct Live20Data {
|
||||
vRel @2 :Float32;
|
||||
aRel @3 :Float32;
|
||||
vLead @4 :Float32;
|
||||
aLead @5 :Float32;
|
||||
aLeadDEPRECATED @5 :Float32;
|
||||
dPath @6 :Float32;
|
||||
vLat @7 :Float32;
|
||||
vLeadK @8 :Float32;
|
||||
|
||||
Reference in New Issue
Block a user