mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-25 22:33:43 +08:00
Compare commits
19 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 53696ad44c | |||
| ac97ff1102 | |||
| fa2b6064a8 | |||
| 912f57c44a | |||
| 29b53bc399 | |||
| c56601ca7a | |||
| 689eaf7d55 | |||
| e55dbfb5ed | |||
| 807ff54358 | |||
| 525eb79062 | |||
| 59b014b123 | |||
| eb61b1f8da | |||
| 7fd2212e8d | |||
| 51546e252d | |||
| 1cc2d94c15 | |||
| 3fcb51fa01 | |||
| 76579352d9 | |||
| 3dde84570c | |||
| 507d213fb7 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -138,6 +138,7 @@ class CarState(CarStateBase):
|
||||
self.dashboard_limit = LimitTracker()
|
||||
self.dashboard_stop_sign = None
|
||||
self.drive_mode = None
|
||||
self.accelerator_pedal = None
|
||||
self.ioniq6_bsm_sources = (Ioniq6BlindspotSources()
|
||||
if CP.carFingerprint == CAR.HYUNDAI_IONIQ_6 and CP.openpilotLongitudinalControl else None)
|
||||
self.ioniq6_bsm_now_ns = 0
|
||||
@@ -431,7 +432,10 @@ class CarState(CarStateBase):
|
||||
speed_factor = CV.KPH_TO_MS if self.is_metric else CV.MPH_TO_MS
|
||||
|
||||
if self.CP.flags & (HyundaiFlags.EV.value | HyundaiFlags.HYBRID.value):
|
||||
ret.gasPressed = cp.vl[self.accelerator_msg_canfd]["ACCELERATOR_PEDAL"] > 1e-5
|
||||
pedal = cp.vl[self.accelerator_msg_canfd]["ACCELERATOR_PEDAL"]
|
||||
ret.gasPressed = pedal > 1e-5
|
||||
stamp = cp.ts_nanos[self.accelerator_msg_canfd]["ACCELERATOR_PEDAL"]
|
||||
self.accelerator_pedal = (float(pedal), stamp) if stamp > 0 else None
|
||||
else:
|
||||
ret.gasPressed = bool(cp.vl[self.accelerator_msg_canfd]["ACCELERATOR_PEDAL_PRESSED"])
|
||||
|
||||
|
||||
@@ -222,6 +222,7 @@ struct StarPilotCarState @0xf35cc4560bbf6ec2 {
|
||||
feedbackPublication @37 :FeedbackPublication;
|
||||
steeringLimitInfo @39 :StarPilotCarControl.SteeringLimitInfo;
|
||||
toyotaCruise @38 :ToyotaCruise;
|
||||
acceleratorPedal @40 :Float32; # driver pedal travel, 0..1; 0 when the platform doesn't publish it
|
||||
|
||||
struct ToyotaCruise {
|
||||
version @0 :UInt16;
|
||||
|
||||
@@ -2316,7 +2316,7 @@ const ::capnp::_::RawSchema s_af3712fe799c76ce = {
|
||||
0, 12, i_af3712fe799c76ce, nullptr, nullptr, { &s_af3712fe799c76ce, nullptr, nullptr, 0, 0, nullptr }, false
|
||||
};
|
||||
#endif // !CAPNP_LITE
|
||||
static const ::capnp::_::AlignedData<686> b_f35cc4560bbf6ec2 = {
|
||||
static const ::capnp::_::AlignedData<703> b_f35cc4560bbf6ec2 = {
|
||||
{ 0, 0, 0, 0, 5, 0, 6, 0,
|
||||
194, 110, 191, 11, 86, 196, 92, 243,
|
||||
13, 0, 0, 0, 1, 0, 3, 0,
|
||||
@@ -2326,7 +2326,7 @@ static const ::capnp::_::AlignedData<686> b_f35cc4560bbf6ec2 = {
|
||||
21, 0, 0, 0, 250, 0, 0, 0,
|
||||
33, 0, 0, 0, 55, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
77, 0, 0, 0, 199, 8, 0, 0,
|
||||
77, 0, 0, 0, 255, 8, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
99, 117, 115, 116, 111, 109, 46, 99,
|
||||
@@ -2346,287 +2346,294 @@ static const ::capnp::_::AlignedData<686> b_f35cc4560bbf6ec2 = {
|
||||
70, 101, 101, 100, 98, 97, 99, 107,
|
||||
80, 117, 98, 108, 105, 99, 97, 116,
|
||||
105, 111, 110, 0, 0, 0, 0, 0,
|
||||
160, 0, 0, 0, 3, 0, 4, 0,
|
||||
164, 0, 0, 0, 3, 0, 4, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 1, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
81, 4, 0, 0, 106, 0, 0, 0,
|
||||
109, 4, 0, 0, 106, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
80, 4, 0, 0, 3, 0, 1, 0,
|
||||
92, 4, 0, 0, 2, 0, 1, 0,
|
||||
108, 4, 0, 0, 3, 0, 1, 0,
|
||||
120, 4, 0, 0, 2, 0, 1, 0,
|
||||
1, 0, 0, 0, 1, 0, 0, 0,
|
||||
0, 0, 1, 0, 1, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
89, 4, 0, 0, 186, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
92, 4, 0, 0, 3, 0, 1, 0,
|
||||
104, 4, 0, 0, 2, 0, 1, 0,
|
||||
2, 0, 0, 0, 2, 0, 0, 0,
|
||||
0, 0, 1, 0, 2, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
101, 4, 0, 0, 98, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
100, 4, 0, 0, 3, 0, 1, 0,
|
||||
112, 4, 0, 0, 2, 0, 1, 0,
|
||||
3, 0, 0, 0, 1, 0, 0, 0,
|
||||
0, 0, 1, 0, 3, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
109, 4, 0, 0, 162, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
112, 4, 0, 0, 3, 0, 1, 0,
|
||||
124, 4, 0, 0, 2, 0, 1, 0,
|
||||
4, 0, 0, 0, 3, 0, 0, 0,
|
||||
0, 0, 1, 0, 4, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
121, 4, 0, 0, 106, 0, 0, 0,
|
||||
117, 4, 0, 0, 186, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
120, 4, 0, 0, 3, 0, 1, 0,
|
||||
132, 4, 0, 0, 2, 0, 1, 0,
|
||||
5, 0, 0, 0, 4, 0, 0, 0,
|
||||
0, 0, 1, 0, 5, 0, 0, 0,
|
||||
2, 0, 0, 0, 2, 0, 0, 0,
|
||||
0, 0, 1, 0, 2, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
129, 4, 0, 0, 130, 0, 0, 0,
|
||||
129, 4, 0, 0, 98, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
128, 4, 0, 0, 3, 0, 1, 0,
|
||||
140, 4, 0, 0, 2, 0, 1, 0,
|
||||
6, 0, 0, 0, 5, 0, 0, 0,
|
||||
0, 0, 1, 0, 6, 0, 0, 0,
|
||||
3, 0, 0, 0, 1, 0, 0, 0,
|
||||
0, 0, 1, 0, 3, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
137, 4, 0, 0, 162, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
140, 4, 0, 0, 3, 0, 1, 0,
|
||||
152, 4, 0, 0, 2, 0, 1, 0,
|
||||
7, 0, 0, 0, 6, 0, 0, 0,
|
||||
0, 0, 1, 0, 7, 0, 0, 0,
|
||||
4, 0, 0, 0, 3, 0, 0, 0,
|
||||
0, 0, 1, 0, 4, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
149, 4, 0, 0, 194, 0, 0, 0,
|
||||
149, 4, 0, 0, 106, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
152, 4, 0, 0, 3, 0, 1, 0,
|
||||
164, 4, 0, 0, 2, 0, 1, 0,
|
||||
8, 0, 0, 0, 7, 0, 0, 0,
|
||||
0, 0, 1, 0, 8, 0, 0, 0,
|
||||
148, 4, 0, 0, 3, 0, 1, 0,
|
||||
160, 4, 0, 0, 2, 0, 1, 0,
|
||||
5, 0, 0, 0, 4, 0, 0, 0,
|
||||
0, 0, 1, 0, 5, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
161, 4, 0, 0, 66, 0, 0, 0,
|
||||
157, 4, 0, 0, 130, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
156, 4, 0, 0, 3, 0, 1, 0,
|
||||
168, 4, 0, 0, 2, 0, 1, 0,
|
||||
9, 0, 0, 0, 8, 0, 0, 0,
|
||||
0, 0, 1, 0, 9, 0, 0, 0,
|
||||
6, 0, 0, 0, 5, 0, 0, 0,
|
||||
0, 0, 1, 0, 6, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
165, 4, 0, 0, 90, 0, 0, 0,
|
||||
165, 4, 0, 0, 162, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
164, 4, 0, 0, 3, 0, 1, 0,
|
||||
176, 4, 0, 0, 2, 0, 1, 0,
|
||||
10, 0, 0, 0, 9, 0, 0, 0,
|
||||
0, 0, 1, 0, 10, 0, 0, 0,
|
||||
168, 4, 0, 0, 3, 0, 1, 0,
|
||||
180, 4, 0, 0, 2, 0, 1, 0,
|
||||
7, 0, 0, 0, 6, 0, 0, 0,
|
||||
0, 0, 1, 0, 7, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
173, 4, 0, 0, 74, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
172, 4, 0, 0, 3, 0, 1, 0,
|
||||
184, 4, 0, 0, 2, 0, 1, 0,
|
||||
11, 0, 0, 0, 10, 0, 0, 0,
|
||||
0, 0, 1, 0, 11, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
181, 4, 0, 0, 106, 0, 0, 0,
|
||||
177, 4, 0, 0, 194, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
180, 4, 0, 0, 3, 0, 1, 0,
|
||||
192, 4, 0, 0, 2, 0, 1, 0,
|
||||
12, 0, 0, 0, 11, 0, 0, 0,
|
||||
0, 0, 1, 0, 12, 0, 0, 0,
|
||||
8, 0, 0, 0, 7, 0, 0, 0,
|
||||
0, 0, 1, 0, 8, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
189, 4, 0, 0, 146, 0, 0, 0,
|
||||
189, 4, 0, 0, 66, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
184, 4, 0, 0, 3, 0, 1, 0,
|
||||
196, 4, 0, 0, 2, 0, 1, 0,
|
||||
9, 0, 0, 0, 8, 0, 0, 0,
|
||||
0, 0, 1, 0, 9, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
193, 4, 0, 0, 90, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
192, 4, 0, 0, 3, 0, 1, 0,
|
||||
204, 4, 0, 0, 2, 0, 1, 0,
|
||||
13, 0, 0, 0, 12, 0, 0, 0,
|
||||
0, 0, 1, 0, 13, 0, 0, 0,
|
||||
10, 0, 0, 0, 9, 0, 0, 0,
|
||||
0, 0, 1, 0, 10, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
201, 4, 0, 0, 82, 0, 0, 0,
|
||||
201, 4, 0, 0, 74, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
200, 4, 0, 0, 3, 0, 1, 0,
|
||||
212, 4, 0, 0, 2, 0, 1, 0,
|
||||
14, 0, 0, 0, 13, 0, 0, 0,
|
||||
0, 0, 1, 0, 14, 0, 0, 0,
|
||||
11, 0, 0, 0, 10, 0, 0, 0,
|
||||
0, 0, 1, 0, 11, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
209, 4, 0, 0, 154, 0, 0, 0,
|
||||
209, 4, 0, 0, 106, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
212, 4, 0, 0, 3, 0, 1, 0,
|
||||
224, 4, 0, 0, 2, 0, 1, 0,
|
||||
15, 0, 0, 0, 14, 0, 0, 0,
|
||||
0, 0, 1, 0, 15, 0, 0, 0,
|
||||
208, 4, 0, 0, 3, 0, 1, 0,
|
||||
220, 4, 0, 0, 2, 0, 1, 0,
|
||||
12, 0, 0, 0, 11, 0, 0, 0,
|
||||
0, 0, 1, 0, 12, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
221, 4, 0, 0, 74, 0, 0, 0,
|
||||
217, 4, 0, 0, 146, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
220, 4, 0, 0, 3, 0, 1, 0,
|
||||
232, 4, 0, 0, 2, 0, 1, 0,
|
||||
16, 0, 0, 0, 15, 0, 0, 0,
|
||||
0, 0, 1, 0, 16, 0, 0, 0,
|
||||
13, 0, 0, 0, 12, 0, 0, 0,
|
||||
0, 0, 1, 0, 13, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
229, 4, 0, 0, 98, 0, 0, 0,
|
||||
229, 4, 0, 0, 82, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
228, 4, 0, 0, 3, 0, 1, 0,
|
||||
240, 4, 0, 0, 2, 0, 1, 0,
|
||||
17, 0, 0, 0, 16, 0, 0, 0,
|
||||
0, 0, 1, 0, 17, 0, 0, 0,
|
||||
14, 0, 0, 0, 13, 0, 0, 0,
|
||||
0, 0, 1, 0, 14, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
237, 4, 0, 0, 114, 0, 0, 0,
|
||||
237, 4, 0, 0, 154, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
236, 4, 0, 0, 3, 0, 1, 0,
|
||||
248, 4, 0, 0, 2, 0, 1, 0,
|
||||
18, 0, 0, 0, 17, 0, 0, 0,
|
||||
0, 0, 1, 0, 18, 0, 0, 0,
|
||||
240, 4, 0, 0, 3, 0, 1, 0,
|
||||
252, 4, 0, 0, 2, 0, 1, 0,
|
||||
15, 0, 0, 0, 14, 0, 0, 0,
|
||||
0, 0, 1, 0, 15, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
245, 4, 0, 0, 186, 0, 0, 0,
|
||||
249, 4, 0, 0, 74, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
248, 4, 0, 0, 3, 0, 1, 0,
|
||||
4, 5, 0, 0, 2, 0, 1, 0,
|
||||
16, 0, 0, 0, 15, 0, 0, 0,
|
||||
0, 0, 1, 0, 16, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
1, 5, 0, 0, 98, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 5, 0, 0, 3, 0, 1, 0,
|
||||
12, 5, 0, 0, 2, 0, 1, 0,
|
||||
17, 0, 0, 0, 16, 0, 0, 0,
|
||||
0, 0, 1, 0, 17, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
9, 5, 0, 0, 114, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
8, 5, 0, 0, 3, 0, 1, 0,
|
||||
20, 5, 0, 0, 2, 0, 1, 0,
|
||||
18, 0, 0, 0, 17, 0, 0, 0,
|
||||
0, 0, 1, 0, 18, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
17, 5, 0, 0, 186, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
20, 5, 0, 0, 3, 0, 1, 0,
|
||||
32, 5, 0, 0, 2, 0, 1, 0,
|
||||
19, 0, 0, 0, 3, 0, 0, 0,
|
||||
0, 0, 1, 0, 19, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
1, 5, 0, 0, 146, 0, 0, 0,
|
||||
29, 5, 0, 0, 146, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
4, 5, 0, 0, 3, 0, 1, 0,
|
||||
16, 5, 0, 0, 2, 0, 1, 0,
|
||||
32, 5, 0, 0, 3, 0, 1, 0,
|
||||
44, 5, 0, 0, 2, 0, 1, 0,
|
||||
20, 0, 0, 0, 18, 0, 0, 0,
|
||||
0, 0, 1, 0, 20, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
13, 5, 0, 0, 114, 0, 0, 0,
|
||||
41, 5, 0, 0, 114, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
12, 5, 0, 0, 3, 0, 1, 0,
|
||||
24, 5, 0, 0, 2, 0, 1, 0,
|
||||
40, 5, 0, 0, 3, 0, 1, 0,
|
||||
52, 5, 0, 0, 2, 0, 1, 0,
|
||||
21, 0, 0, 0, 19, 0, 0, 0,
|
||||
0, 0, 1, 0, 21, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
21, 5, 0, 0, 146, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
24, 5, 0, 0, 3, 0, 1, 0,
|
||||
36, 5, 0, 0, 2, 0, 1, 0,
|
||||
22, 0, 0, 0, 20, 0, 0, 0,
|
||||
0, 0, 1, 0, 22, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
33, 5, 0, 0, 178, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
36, 5, 0, 0, 3, 0, 1, 0,
|
||||
48, 5, 0, 0, 2, 0, 1, 0,
|
||||
23, 0, 0, 0, 21, 0, 0, 0,
|
||||
0, 0, 1, 0, 23, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
45, 5, 0, 0, 114, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
44, 5, 0, 0, 3, 0, 1, 0,
|
||||
56, 5, 0, 0, 2, 0, 1, 0,
|
||||
24, 0, 0, 0, 22, 0, 0, 0,
|
||||
0, 0, 1, 0, 24, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
53, 5, 0, 0, 130, 0, 0, 0,
|
||||
49, 5, 0, 0, 146, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
52, 5, 0, 0, 3, 0, 1, 0,
|
||||
64, 5, 0, 0, 2, 0, 1, 0,
|
||||
25, 0, 0, 0, 23, 0, 0, 0,
|
||||
0, 0, 1, 0, 25, 0, 0, 0,
|
||||
22, 0, 0, 0, 20, 0, 0, 0,
|
||||
0, 0, 1, 0, 22, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
61, 5, 0, 0, 122, 0, 0, 0,
|
||||
61, 5, 0, 0, 178, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
60, 5, 0, 0, 3, 0, 1, 0,
|
||||
72, 5, 0, 0, 2, 0, 1, 0,
|
||||
26, 0, 0, 0, 64, 0, 0, 0,
|
||||
0, 0, 1, 0, 26, 0, 0, 0,
|
||||
64, 5, 0, 0, 3, 0, 1, 0,
|
||||
76, 5, 0, 0, 2, 0, 1, 0,
|
||||
23, 0, 0, 0, 21, 0, 0, 0,
|
||||
0, 0, 1, 0, 23, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
69, 5, 0, 0, 146, 0, 0, 0,
|
||||
73, 5, 0, 0, 114, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
72, 5, 0, 0, 3, 0, 1, 0,
|
||||
84, 5, 0, 0, 2, 0, 1, 0,
|
||||
27, 0, 0, 0, 65, 0, 0, 0,
|
||||
0, 0, 1, 0, 27, 0, 0, 0,
|
||||
24, 0, 0, 0, 22, 0, 0, 0,
|
||||
0, 0, 1, 0, 24, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
81, 5, 0, 0, 130, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
80, 5, 0, 0, 3, 0, 1, 0,
|
||||
92, 5, 0, 0, 2, 0, 1, 0,
|
||||
28, 0, 0, 0, 66, 0, 0, 0,
|
||||
0, 0, 1, 0, 28, 0, 0, 0,
|
||||
25, 0, 0, 0, 23, 0, 0, 0,
|
||||
0, 0, 1, 0, 25, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
89, 5, 0, 0, 130, 0, 0, 0,
|
||||
89, 5, 0, 0, 122, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
88, 5, 0, 0, 3, 0, 1, 0,
|
||||
100, 5, 0, 0, 2, 0, 1, 0,
|
||||
29, 0, 0, 0, 67, 0, 0, 0,
|
||||
0, 0, 1, 0, 29, 0, 0, 0,
|
||||
26, 0, 0, 0, 64, 0, 0, 0,
|
||||
0, 0, 1, 0, 26, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
97, 5, 0, 0, 130, 0, 0, 0,
|
||||
97, 5, 0, 0, 146, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
96, 5, 0, 0, 3, 0, 1, 0,
|
||||
108, 5, 0, 0, 2, 0, 1, 0,
|
||||
30, 0, 0, 0, 68, 0, 0, 0,
|
||||
0, 0, 1, 0, 30, 0, 0, 0,
|
||||
100, 5, 0, 0, 3, 0, 1, 0,
|
||||
112, 5, 0, 0, 2, 0, 1, 0,
|
||||
27, 0, 0, 0, 65, 0, 0, 0,
|
||||
0, 0, 1, 0, 27, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
105, 5, 0, 0, 114, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
104, 5, 0, 0, 3, 0, 1, 0,
|
||||
116, 5, 0, 0, 2, 0, 1, 0,
|
||||
31, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 1, 0, 31, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
113, 5, 0, 0, 34, 0, 0, 0,
|
||||
109, 5, 0, 0, 130, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
108, 5, 0, 0, 3, 0, 1, 0,
|
||||
120, 5, 0, 0, 2, 0, 1, 0,
|
||||
32, 0, 0, 0, 69, 0, 0, 0,
|
||||
0, 0, 1, 0, 32, 0, 0, 0,
|
||||
28, 0, 0, 0, 66, 0, 0, 0,
|
||||
0, 0, 1, 0, 28, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
117, 5, 0, 0, 226, 0, 0, 0,
|
||||
117, 5, 0, 0, 130, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
116, 5, 0, 0, 3, 0, 1, 0,
|
||||
128, 5, 0, 0, 2, 0, 1, 0,
|
||||
29, 0, 0, 0, 67, 0, 0, 0,
|
||||
0, 0, 1, 0, 29, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
125, 5, 0, 0, 130, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
124, 5, 0, 0, 3, 0, 1, 0,
|
||||
136, 5, 0, 0, 2, 0, 1, 0,
|
||||
33, 0, 0, 0, 2, 0, 0, 0,
|
||||
0, 0, 1, 0, 33, 0, 0, 0,
|
||||
30, 0, 0, 0, 68, 0, 0, 0,
|
||||
0, 0, 1, 0, 30, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
133, 5, 0, 0, 186, 0, 0, 0,
|
||||
133, 5, 0, 0, 114, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
132, 5, 0, 0, 3, 0, 1, 0,
|
||||
144, 5, 0, 0, 2, 0, 1, 0,
|
||||
31, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 1, 0, 31, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
141, 5, 0, 0, 34, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
136, 5, 0, 0, 3, 0, 1, 0,
|
||||
148, 5, 0, 0, 2, 0, 1, 0,
|
||||
32, 0, 0, 0, 69, 0, 0, 0,
|
||||
0, 0, 1, 0, 32, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
145, 5, 0, 0, 226, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
152, 5, 0, 0, 3, 0, 1, 0,
|
||||
164, 5, 0, 0, 2, 0, 1, 0,
|
||||
33, 0, 0, 0, 2, 0, 0, 0,
|
||||
0, 0, 1, 0, 33, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
161, 5, 0, 0, 186, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
164, 5, 0, 0, 3, 0, 1, 0,
|
||||
176, 5, 0, 0, 2, 0, 1, 0,
|
||||
34, 0, 0, 0, 1, 0, 0, 0,
|
||||
0, 0, 1, 0, 34, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
145, 5, 0, 0, 130, 0, 0, 0,
|
||||
173, 5, 0, 0, 130, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
144, 5, 0, 0, 3, 0, 1, 0,
|
||||
156, 5, 0, 0, 2, 0, 1, 0,
|
||||
172, 5, 0, 0, 3, 0, 1, 0,
|
||||
184, 5, 0, 0, 2, 0, 1, 0,
|
||||
35, 0, 0, 0, 2, 0, 0, 0,
|
||||
0, 0, 1, 0, 35, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
153, 5, 0, 0, 170, 0, 0, 0,
|
||||
181, 5, 0, 0, 170, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
156, 5, 0, 0, 3, 0, 1, 0,
|
||||
168, 5, 0, 0, 2, 0, 1, 0,
|
||||
184, 5, 0, 0, 3, 0, 1, 0,
|
||||
196, 5, 0, 0, 2, 0, 1, 0,
|
||||
36, 0, 0, 0, 3, 0, 0, 0,
|
||||
0, 0, 1, 0, 36, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
165, 5, 0, 0, 162, 0, 0, 0,
|
||||
193, 5, 0, 0, 162, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
168, 5, 0, 0, 3, 0, 1, 0,
|
||||
180, 5, 0, 0, 2, 0, 1, 0,
|
||||
196, 5, 0, 0, 3, 0, 1, 0,
|
||||
208, 5, 0, 0, 2, 0, 1, 0,
|
||||
37, 0, 0, 0, 4, 0, 0, 0,
|
||||
0, 0, 1, 0, 37, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
177, 5, 0, 0, 162, 0, 0, 0,
|
||||
205, 5, 0, 0, 162, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
180, 5, 0, 0, 3, 0, 1, 0,
|
||||
192, 5, 0, 0, 2, 0, 1, 0,
|
||||
208, 5, 0, 0, 3, 0, 1, 0,
|
||||
220, 5, 0, 0, 2, 0, 1, 0,
|
||||
39, 0, 0, 0, 5, 0, 0, 0,
|
||||
0, 0, 1, 0, 38, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
189, 5, 0, 0, 106, 0, 0, 0,
|
||||
217, 5, 0, 0, 106, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
188, 5, 0, 0, 3, 0, 1, 0,
|
||||
200, 5, 0, 0, 2, 0, 1, 0,
|
||||
216, 5, 0, 0, 3, 0, 1, 0,
|
||||
228, 5, 0, 0, 2, 0, 1, 0,
|
||||
38, 0, 0, 0, 6, 0, 0, 0,
|
||||
0, 0, 1, 0, 39, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
197, 5, 0, 0, 146, 0, 0, 0,
|
||||
225, 5, 0, 0, 146, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
200, 5, 0, 0, 3, 0, 1, 0,
|
||||
212, 5, 0, 0, 2, 0, 1, 0,
|
||||
228, 5, 0, 0, 3, 0, 1, 0,
|
||||
240, 5, 0, 0, 2, 0, 1, 0,
|
||||
40, 0, 0, 0, 3, 0, 0, 0,
|
||||
0, 0, 1, 0, 40, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
237, 5, 0, 0, 138, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
240, 5, 0, 0, 3, 0, 1, 0,
|
||||
252, 5, 0, 0, 2, 0, 1, 0,
|
||||
97, 99, 99, 101, 108, 80, 114, 101,
|
||||
115, 115, 101, 100, 0, 0, 0, 0,
|
||||
1, 0, 0, 0, 0, 0, 0, 0,
|
||||
@@ -3001,6 +3008,16 @@ static const ::capnp::_::AlignedData<686> b_f35cc4560bbf6ec2 = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
16, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
97, 99, 99, 101, 108, 101, 114, 97,
|
||||
116, 111, 114, 80, 101, 100, 97, 108,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
10, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
10, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0, }
|
||||
};
|
||||
@@ -3015,11 +3032,11 @@ static const ::capnp::_::RawSchema* const d_f35cc4560bbf6ec2[] = {
|
||||
&s_d28ed59fbe1870aa,
|
||||
&s_de92e382e2400293,
|
||||
};
|
||||
static const uint16_t m_f35cc4560bbf6ec2[] = {28, 0, 18, 1, 34, 2, 21, 20, 22, 17, 3, 19, 29, 4, 6, 5, 7, 8, 37, 9, 35, 15, 31, 10, 32, 36, 16, 11, 12, 24, 23, 30, 33, 13, 39, 26, 25, 27, 38, 14};
|
||||
static const uint16_t i_f35cc4560bbf6ec2[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39};
|
||||
static const uint16_t m_f35cc4560bbf6ec2[] = {28, 0, 40, 18, 1, 34, 2, 21, 20, 22, 17, 3, 19, 29, 4, 6, 5, 7, 8, 37, 9, 35, 15, 31, 10, 32, 36, 16, 11, 12, 24, 23, 30, 33, 13, 39, 26, 25, 27, 38, 14};
|
||||
static const uint16_t i_f35cc4560bbf6ec2[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40};
|
||||
const ::capnp::_::RawSchema s_f35cc4560bbf6ec2 = {
|
||||
0xf35cc4560bbf6ec2, b_f35cc4560bbf6ec2.words, 686, d_f35cc4560bbf6ec2, m_f35cc4560bbf6ec2,
|
||||
7, 40, i_f35cc4560bbf6ec2, nullptr, nullptr, { &s_f35cc4560bbf6ec2, nullptr, nullptr, 0, 0, nullptr }, false
|
||||
0xf35cc4560bbf6ec2, b_f35cc4560bbf6ec2.words, 703, d_f35cc4560bbf6ec2, m_f35cc4560bbf6ec2,
|
||||
7, 41, i_f35cc4560bbf6ec2, nullptr, nullptr, { &s_f35cc4560bbf6ec2, nullptr, nullptr, 0, 0, nullptr }, false
|
||||
};
|
||||
#endif // !CAPNP_LITE
|
||||
static const ::capnp::_::AlignedData<149> b_911f05bba9c1fc1f = {
|
||||
|
||||
@@ -3613,6 +3613,8 @@ public:
|
||||
inline bool hasSteeringLimitInfo() const;
|
||||
inline ::cereal::StarPilotCarControl::SteeringLimitInfo::Reader getSteeringLimitInfo() const;
|
||||
|
||||
inline float getAcceleratorPedal() const;
|
||||
|
||||
private:
|
||||
::capnp::_::StructReader _reader;
|
||||
template <typename, ::capnp::Kind>
|
||||
@@ -3789,6 +3791,9 @@ public:
|
||||
inline void adoptSteeringLimitInfo(::capnp::Orphan< ::cereal::StarPilotCarControl::SteeringLimitInfo>&& value);
|
||||
inline ::capnp::Orphan< ::cereal::StarPilotCarControl::SteeringLimitInfo> disownSteeringLimitInfo();
|
||||
|
||||
inline float getAcceleratorPedal();
|
||||
inline void setAcceleratorPedal(float value);
|
||||
|
||||
private:
|
||||
::capnp::_::StructBuilder _builder;
|
||||
template <typename, ::capnp::Kind>
|
||||
@@ -18192,6 +18197,20 @@ inline ::capnp::Orphan< ::cereal::StarPilotCarControl::SteeringLimitInfo> StarPi
|
||||
::capnp::bounded<6>() * ::capnp::POINTERS));
|
||||
}
|
||||
|
||||
inline float StarPilotCarState::Reader::getAcceleratorPedal() const {
|
||||
return _reader.getDataField<float>(
|
||||
::capnp::bounded<3>() * ::capnp::ELEMENTS);
|
||||
}
|
||||
|
||||
inline float StarPilotCarState::Builder::getAcceleratorPedal() {
|
||||
return _builder.getDataField<float>(
|
||||
::capnp::bounded<3>() * ::capnp::ELEMENTS);
|
||||
}
|
||||
inline void StarPilotCarState::Builder::setAcceleratorPedal(float value) {
|
||||
_builder.setDataField<float>(
|
||||
::capnp::bounded<3>() * ::capnp::ELEMENTS, value);
|
||||
}
|
||||
|
||||
inline ::uint16_t StarPilotCarState::ToyotaCruise::Reader::getVersion() const {
|
||||
return _reader.getDataField< ::uint16_t>(
|
||||
::capnp::bounded<0>() * ::capnp::ELEMENTS);
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -157,6 +157,9 @@ inline static std::unordered_map<std::string, ParamKeyAttributes> keys = {
|
||||
{"BlindSpotMetrics", {PERSISTENT, BOOL, "1"}},
|
||||
{"GreenLightAlert", {PERSISTENT, BOOL, "0"}},
|
||||
{"LeadDepartingAlert", {PERSISTENT, BOOL, "0"}},
|
||||
{"EngineSound", {PERSISTENT, BOOL, "0"}},
|
||||
{"EngineSoundProfile", {PERSISTENT, STRING, "lfa"}},
|
||||
{"EngineSoundVolume", {PERSISTENT, INT, "60"}},
|
||||
{"LoudBlindspotAlert", {PERSISTENT, BOOL, "0"}},
|
||||
{"LoudBlindspotAlertWhenDisengaged", {PERSISTENT, BOOL, "0"}},
|
||||
{"SignalMetrics", {PERSISTENT, BOOL, "0"}},
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"acados_include_path": "/work/.venv-linux-arm64/lib/python3.12/site-packages/acados/install/include",
|
||||
"acados_lib_path": "/work/.venv-linux-arm64/lib/python3.12/site-packages/acados/install/lib",
|
||||
"code_export_directory": "/work/openpilot/selfdrive/controls/lib/longitudinal_mpc_lib/c_generated_code",
|
||||
"acados_include_path": "/usr/local/venv/lib/python3.12/site-packages/acados/install/include",
|
||||
"acados_lib_path": "/usr/local/venv/lib/python3.12/site-packages/acados/install/lib",
|
||||
"code_export_directory": "/data/build_bluescreensonly/openpilot/selfdrive/controls/lib/longitudinal_mpc_lib/c_generated_code",
|
||||
"constraints": {
|
||||
"C": [],
|
||||
"C_e": [],
|
||||
@@ -351,8 +351,8 @@
|
||||
]
|
||||
},
|
||||
"cython_include_dirs": [
|
||||
"/work/.venv-linux-arm64/lib/python3.12/site-packages/numpy/_core/include",
|
||||
"/work/.cache/uv-python/cpython-3.12.13-linux-aarch64-gnu/include/python3.12"
|
||||
"/usr/local/venv/lib/python3.12/site-packages/numpy/_core/include",
|
||||
"/usr/include/python3.12"
|
||||
],
|
||||
"dims": {
|
||||
"N": 12,
|
||||
@@ -388,7 +388,7 @@
|
||||
"ny_e": 5,
|
||||
"nz": 0
|
||||
},
|
||||
"json_file": "/work/openpilot/selfdrive/controls/lib/longitudinal_mpc_lib/acados_ocp_long.json",
|
||||
"json_file": "/data/build_bluescreensonly/openpilot/selfdrive/controls/lib/longitudinal_mpc_lib/acados_ocp_long.json",
|
||||
"model": {
|
||||
"con_h_expr": "jhpnnagiieahaaaadaaaaaaaaaaaaaaaaaegiaaaaaaaaaaaaaaaeaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaacaaaaaaaaaaaaaaadaaaaaaaaaaaaaaaeaaaaaaaaaaaaaaaegpcaaaaaaaaaaaaaafaaaaaaaghpffghgpgegcaaaaaaaaaaaaaaaegpcaaaaaaaaaaaaaafaaaaaaabgpffghgpgegpcaaaaaaaaaaaaaafaaaaaaabgpfngjgogegcaaaaaaaaaaaaaaaegpcaaaaaaaaaaaaaafaaaaaaabgpfngbgihchcaaaaaaaaaaaaaaaegeaaaaaaaaaaaaaaaegcaaaaaaaaaaaaaaaegcaaaaaaaaaaaaaaaegpcaaaaaaaaaaaaaakaaaaaaaihpfpgcgdhehbgdgmgfgegpcaaaaaaaaaaaaaafaaaaaaaihpffghgpgegdaaaaaaaaaaaaaaaegpcaaaaaaaaaaaaaacbaaaaaamgfgbgegpfegbgoghgfgchpfggbgdgehpgchegbaaaaaaaaaaaaaaaegbaaaaaaaaaaaaaaaegeaaaaaaaaaaaaaaaeglaaaaaaaaaaaaaaachbaaaaaaaaaaaaaaaegmcaaaaaaaaaaaaaajgfaaaaaaaegdaaaaaaaaaaaaaaaegpcaaaaaaaaaaaaaanaaaaaaamgfgbgegpfehpfggpgmgmgpghhchbaaaaaaaaaaaaaaaegmcaaaaaaaaaaaaaajggaaaaaaaegbaaaaaaaaaaaaaaachbaaaaaaaaaaaaaaaegmcaaaaaaaaaaaaaajgkaaaaaaa",
|
||||
"con_h_expr_e": "jhpnnagiieahaaaadaaaaaaaaaaaaaaaaaegiaaaaaaaaaaaaaaaeaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaeaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaacaaaaaaaaaaaaaaadaaaaaaaaaaaaaaaeaaaaaaaaaaaaaaaegpcaaaaaaaaaaaaaafaaaaaaaghpffghgpgegcaaaaaaaaaaaaaaaegpcaaaaaaaaaaaaaafaaaaaaabgpffghgpgegpcaaaaaaaaaaaaaafaaaaaaabgpfngjgogegcaaaaaaaaaaaaaaaegpcaaaaaaaaaaaaaafaaaaaaabgpfngbgihchcaaaaaaaaaaaaaaaegeaaaaaaaaaaaaaaaegcaaaaaaaaaaaaaaaegcaaaaaaaaaaaaaaaegpcaaaaaaaaaaaaaakaaaaaaaihpfpgcgdhehbgdgmgfgegpcaaaaaaaaaaaaaafaaaaaaaihpffghgpgegdaaaaaaaaaaaaaaaegpcaaaaaaaaaaaaaacbaaaaaamgfgbgegpfegbgoghgfgchpfggbgdgehpgchegbaaaaaaaaaaaaaaaegbaaaaaaaaaaaaaaaegeaaaaaaaaaaaaaaaeglaaaaaaaaaaaaaaachbaaaaaaaaaaaaaaaegmcaaaaaaaaaaaaaajgfaaaaaaaegdaaaaaaaaaaaaaaaegpcaaaaaaaaaaaaaanaaaaaaamgfgbgegpfehpfggpgmgmgpghhchbaaaaaaaaaaaaaaaegmcaaaaaaaaaaaaaajggaaaaaaaegbaaaaaaaaaaaaaaachbaaaaaaaaaaaaaaaegmcaaaaaaaaaaaaaajgkaaaaaaa",
|
||||
|
||||
@@ -83,8 +83,8 @@ OBJ+= $(OCP_OBJ)
|
||||
EXTERNAL_DIR=
|
||||
EXTERNAL_LIB=
|
||||
|
||||
INCLUDE_PATH = /work/.venv-linux-arm64/lib/python3.12/site-packages/acados/install/include
|
||||
LIB_PATH = /work/.venv-linux-arm64/lib/python3.12/site-packages/acados/install/lib
|
||||
INCLUDE_PATH = /usr/local/venv/lib/python3.12/site-packages/acados/install/include
|
||||
LIB_PATH = /usr/local/venv/lib/python3.12/site-packages/acados/install/lib
|
||||
|
||||
# preprocessor flags for make's implicit rules
|
||||
CPPFLAGS+= -I$(INCLUDE_PATH)
|
||||
@@ -145,7 +145,7 @@ ocp_cython_c: ocp_shared_lib
|
||||
-o acados_ocp_solver_pyx.c \
|
||||
-I $(INCLUDE_PATH)/../interfaces/acados_template/acados_template \
|
||||
$(INCLUDE_PATH)/../interfaces/acados_template/acados_template/acados_ocp_solver_pyx.pyx \
|
||||
-I /work/openpilot/selfdrive/controls/lib/longitudinal_mpc_lib/c_generated_code \
|
||||
-I /data/build_bluescreensonly/openpilot/selfdrive/controls/lib/longitudinal_mpc_lib/c_generated_code \
|
||||
|
||||
ocp_cython_o: ocp_cython_c
|
||||
$(CC) $(ACADOS_FLAGS) -c -O2 \
|
||||
@@ -154,8 +154,8 @@ ocp_cython_o: ocp_cython_c
|
||||
-I $(INCLUDE_PATH)/blasfeo/include/ \
|
||||
-I $(INCLUDE_PATH)/hpipm/include/ \
|
||||
-I $(INCLUDE_PATH) \
|
||||
-I /work/.venv-linux-arm64/lib/python3.12/site-packages/numpy/_core/include \
|
||||
-I /work/.cache/uv-python/cpython-3.12.13-linux-aarch64-gnu/include/python3.12 \
|
||||
-I /usr/local/venv/lib/python3.12/site-packages/numpy/_core/include \
|
||||
-I /usr/include/python3.12 \
|
||||
acados_ocp_solver_pyx.c \
|
||||
|
||||
ocp_cython: ocp_cython_o
|
||||
@@ -172,7 +172,7 @@ sim_cython_c: sim_shared_lib
|
||||
-o acados_sim_solver_pyx.c \
|
||||
-I $(INCLUDE_PATH)/../interfaces/acados_template/acados_template \
|
||||
$(INCLUDE_PATH)/../interfaces/acados_template/acados_template/acados_sim_solver_pyx.pyx \
|
||||
-I /work/openpilot/selfdrive/controls/lib/longitudinal_mpc_lib/c_generated_code \
|
||||
-I /data/build_bluescreensonly/openpilot/selfdrive/controls/lib/longitudinal_mpc_lib/c_generated_code \
|
||||
|
||||
sim_cython_o: sim_cython_c
|
||||
$(CC) $(ACADOS_FLAGS) -c -O2 \
|
||||
@@ -181,8 +181,8 @@ sim_cython_o: sim_cython_c
|
||||
-I $(INCLUDE_PATH)/blasfeo/include/ \
|
||||
-I $(INCLUDE_PATH)/hpipm/include/ \
|
||||
-I $(INCLUDE_PATH) \
|
||||
-I /work/.venv-linux-arm64/lib/python3.12/site-packages/numpy/_core/include \
|
||||
-I /work/.cache/uv-python/cpython-3.12.13-linux-aarch64-gnu/include/python3.12 \
|
||||
-I /usr/local/venv/lib/python3.12/site-packages/numpy/_core/include \
|
||||
-I /usr/include/python3.12 \
|
||||
acados_sim_solver_pyx.c \
|
||||
|
||||
sim_cython: sim_cython_o
|
||||
|
||||
+194
-194
File diff suppressed because it is too large
Load Diff
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -23470,3 +23470,83 @@ msgstr ""
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Warns when signaling toward a detected blind-spot vehicle with steering assistance off or paused. Independent of Loud Blindspot Alert. Hazards do not trigger it."
|
||||
msgstr ""
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Plays a simulated engine on the car speakers that follows the accelerator pedal."
|
||||
msgstr ""
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Engine Type"
|
||||
msgstr ""
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Chooses which engine is simulated."
|
||||
msgstr ""
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Engine Sound Volume"
|
||||
msgstr ""
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Sets how loud the engine is before the car's own volume control."
|
||||
msgstr ""
|
||||
|
||||
#: openpilot/starpilot/galaxy/setting_descriptions.py
|
||||
msgid "Plays a simulated engine on the car speakers that follows the accelerator pedal, including revving in Park or Neutral. Uses the audio output chosen under Spotify and Phone Audio, and goes quiet while an alert sounds."
|
||||
msgstr ""
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "BMW M3"
|
||||
msgstr ""
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "BMW M3 Deep"
|
||||
msgstr ""
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "F1 Car"
|
||||
msgstr ""
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Ferrari F136"
|
||||
msgstr ""
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Hellcat"
|
||||
msgstr ""
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Ioniq 5N Ignition"
|
||||
msgstr ""
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Jaguar F-Type"
|
||||
msgstr ""
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Nissan Super GT1"
|
||||
msgstr ""
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Nissan Super GT2"
|
||||
msgstr ""
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Supra Turbo"
|
||||
msgstr ""
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "LFA"
|
||||
msgstr ""
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Engine Sounds"
|
||||
msgstr ""
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Plays on the car speakers through the Spotify and Phone Audio output."
|
||||
msgstr ""
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Choose an engine; it revs once so you can hear it."
|
||||
msgstr ""
|
||||
|
||||
@@ -23490,3 +23490,82 @@ msgstr "Verbessert das Anhalten an Ampeln und ermöglicht automatisches Anhalten
|
||||
msgid "Enhanced Stops"
|
||||
msgstr "Verbessertes Anhalten"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Plays a simulated engine on the car speakers that follows the accelerator pedal."
|
||||
msgstr "Spielt über die Fahrzeuglautsprecher einen simulierten Motor ab, der dem Gaspedal folgt."
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Engine Type"
|
||||
msgstr "Motortyp"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Chooses which engine is simulated."
|
||||
msgstr "Wählt den simulierten Motor."
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Engine Sound Volume"
|
||||
msgstr "Lautstärke des Motorsounds"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Sets how loud the engine is before the car's own volume control."
|
||||
msgstr "Legt die Lautstärke des Motors vor der Lautstärkeregelung des Fahrzeugs fest."
|
||||
|
||||
#: openpilot/starpilot/galaxy/setting_descriptions.py
|
||||
msgid "Plays a simulated engine on the car speakers that follows the accelerator pedal, including revving in Park or Neutral. Uses the audio output chosen under Spotify and Phone Audio, and goes quiet while an alert sounds."
|
||||
msgstr "Spielt über die Fahrzeuglautsprecher einen simulierten Motor ab, der dem Gaspedal folgt, auch beim Hochdrehen in Parkstellung oder Neutral. Nutzt die unter Spotify und Telefon-Audio gewählte Audioausgabe und verstummt, solange ein Warnton ertönt."
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "BMW M3"
|
||||
msgstr "BMW M3"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "BMW M3 Deep"
|
||||
msgstr "BMW M3 Deep"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "F1 Car"
|
||||
msgstr "F1 Car"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Ferrari F136"
|
||||
msgstr "Ferrari F136"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Hellcat"
|
||||
msgstr "Hellcat"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Ioniq 5N Ignition"
|
||||
msgstr "Ioniq 5N Ignition"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Jaguar F-Type"
|
||||
msgstr "Jaguar F-Type"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Nissan Super GT1"
|
||||
msgstr "Nissan Super GT1"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Nissan Super GT2"
|
||||
msgstr "Nissan Super GT2"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Supra Turbo"
|
||||
msgstr "Supra Turbo"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "LFA"
|
||||
msgstr "LFA"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Engine Sounds"
|
||||
msgstr "Motorsounds"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Plays on the car speakers through the Spotify and Phone Audio output."
|
||||
msgstr "Spielt über die Fahrzeuglautsprecher mit der unter Spotify und Telefon-Audio gewählten Ausgabe."
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Choose an engine; it revs once so you can hear it."
|
||||
msgstr "Wähle einen Motor; er dreht einmal hoch, damit du ihn hörst."
|
||||
|
||||
@@ -23490,3 +23490,82 @@ msgstr "Mejora la detención en los semáforos y permite detenerse automáticame
|
||||
msgid "Enhanced Stops"
|
||||
msgstr "Paradas mejoradas"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Plays a simulated engine on the car speakers that follows the accelerator pedal."
|
||||
msgstr "Reproduce un motor simulado en los altavoces del coche que sigue el pedal del acelerador."
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Engine Type"
|
||||
msgstr "Tipo de motor"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Chooses which engine is simulated."
|
||||
msgstr "Elige qué motor se simula."
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Engine Sound Volume"
|
||||
msgstr "Volumen del sonido del motor"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Sets how loud the engine is before the car's own volume control."
|
||||
msgstr "Ajusta el volumen del motor antes del control de volumen del propio coche."
|
||||
|
||||
#: openpilot/starpilot/galaxy/setting_descriptions.py
|
||||
msgid "Plays a simulated engine on the car speakers that follows the accelerator pedal, including revving in Park or Neutral. Uses the audio output chosen under Spotify and Phone Audio, and goes quiet while an alert sounds."
|
||||
msgstr "Reproduce un motor simulado en los altavoces del coche que sigue el pedal del acelerador, incluso al acelerar en Estacionamiento o Punto muerto. Usa la salida de audio elegida en Spotify y audio del teléfono, y se silencia mientras suena una alerta."
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "BMW M3"
|
||||
msgstr "BMW M3"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "BMW M3 Deep"
|
||||
msgstr "BMW M3 Deep"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "F1 Car"
|
||||
msgstr "F1 Car"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Ferrari F136"
|
||||
msgstr "Ferrari F136"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Hellcat"
|
||||
msgstr "Hellcat"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Ioniq 5N Ignition"
|
||||
msgstr "Ioniq 5N Ignition"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Jaguar F-Type"
|
||||
msgstr "Jaguar F-Type"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Nissan Super GT1"
|
||||
msgstr "Nissan Super GT1"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Nissan Super GT2"
|
||||
msgstr "Nissan Super GT2"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Supra Turbo"
|
||||
msgstr "Supra Turbo"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "LFA"
|
||||
msgstr "LFA"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Engine Sounds"
|
||||
msgstr "Sonidos del motor"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Plays on the car speakers through the Spotify and Phone Audio output."
|
||||
msgstr "Suena en los altavoces del coche a través de la salida de Spotify y audio del teléfono."
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Choose an engine; it revs once so you can hear it."
|
||||
msgstr "Elige un motor; acelera una vez para que puedas oírlo."
|
||||
|
||||
@@ -23490,3 +23490,82 @@ msgstr "Améliore les arrêts aux feux et permet l’arrêt automatique aux pann
|
||||
msgid "Enhanced Stops"
|
||||
msgstr "Arrêts améliorés"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Plays a simulated engine on the car speakers that follows the accelerator pedal."
|
||||
msgstr "Diffuse un moteur simulé sur les haut-parleurs de la voiture qui suit la pédale d'accélérateur."
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Engine Type"
|
||||
msgstr "Type de moteur"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Chooses which engine is simulated."
|
||||
msgstr "Choisit le moteur simulé."
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Engine Sound Volume"
|
||||
msgstr "Volume du son du moteur"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Sets how loud the engine is before the car's own volume control."
|
||||
msgstr "Règle le volume du moteur avant le réglage de volume de la voiture."
|
||||
|
||||
#: openpilot/starpilot/galaxy/setting_descriptions.py
|
||||
msgid "Plays a simulated engine on the car speakers that follows the accelerator pedal, including revving in Park or Neutral. Uses the audio output chosen under Spotify and Phone Audio, and goes quiet while an alert sounds."
|
||||
msgstr "Diffuse un moteur simulé sur les haut-parleurs de la voiture qui suit la pédale d'accélérateur, y compris les montées en régime en Parking ou au Point mort. Utilise la sortie audio choisie dans Spotify et audio du téléphone, et se tait pendant une alerte."
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "BMW M3"
|
||||
msgstr "BMW M3"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "BMW M3 Deep"
|
||||
msgstr "BMW M3 Deep"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "F1 Car"
|
||||
msgstr "F1 Car"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Ferrari F136"
|
||||
msgstr "Ferrari F136"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Hellcat"
|
||||
msgstr "Hellcat"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Ioniq 5N Ignition"
|
||||
msgstr "Ioniq 5N Ignition"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Jaguar F-Type"
|
||||
msgstr "Jaguar F-Type"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Nissan Super GT1"
|
||||
msgstr "Nissan Super GT1"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Nissan Super GT2"
|
||||
msgstr "Nissan Super GT2"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Supra Turbo"
|
||||
msgstr "Supra Turbo"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "LFA"
|
||||
msgstr "LFA"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Engine Sounds"
|
||||
msgstr "Sons du moteur"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Plays on the car speakers through the Spotify and Phone Audio output."
|
||||
msgstr "Diffusé sur les haut-parleurs de la voiture via la sortie Spotify et audio du téléphone."
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Choose an engine; it revs once so you can hear it."
|
||||
msgstr "Choisissez un moteur ; il monte une fois en régime pour que vous l'entendiez."
|
||||
|
||||
@@ -23486,3 +23486,82 @@ msgstr "信号での停止動作を改善し、検出した一時停止標識で
|
||||
msgid "Enhanced Stops"
|
||||
msgstr "停止機能の強化"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Plays a simulated engine on the car speakers that follows the accelerator pedal."
|
||||
msgstr "アクセルペダルに合わせて、車のスピーカーで疑似エンジン音を再生します。"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Engine Type"
|
||||
msgstr "エンジンの種類"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Chooses which engine is simulated."
|
||||
msgstr "再現するエンジンを選びます。"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Engine Sound Volume"
|
||||
msgstr "エンジンサウンドの音量"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Sets how loud the engine is before the car's own volume control."
|
||||
msgstr "車側の音量調整の前に、エンジン音の大きさを設定します。"
|
||||
|
||||
#: openpilot/starpilot/galaxy/setting_descriptions.py
|
||||
msgid "Plays a simulated engine on the car speakers that follows the accelerator pedal, including revving in Park or Neutral. Uses the audio output chosen under Spotify and Phone Audio, and goes quiet while an alert sounds."
|
||||
msgstr "アクセルペダルに合わせて、車のスピーカーで疑似エンジン音を再生します。パーキングやニュートラルでの空ぶかしにも対応します。「Spotifyとスマホ音声」で選んだ音声出力を使い、警告音が鳴っている間は消音します。"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "BMW M3"
|
||||
msgstr "BMW M3"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "BMW M3 Deep"
|
||||
msgstr "BMW M3 Deep"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "F1 Car"
|
||||
msgstr "F1 Car"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Ferrari F136"
|
||||
msgstr "Ferrari F136"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Hellcat"
|
||||
msgstr "Hellcat"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Ioniq 5N Ignition"
|
||||
msgstr "Ioniq 5N Ignition"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Jaguar F-Type"
|
||||
msgstr "Jaguar F-Type"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Nissan Super GT1"
|
||||
msgstr "Nissan Super GT1"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Nissan Super GT2"
|
||||
msgstr "Nissan Super GT2"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Supra Turbo"
|
||||
msgstr "Supra Turbo"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "LFA"
|
||||
msgstr "LFA"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Engine Sounds"
|
||||
msgstr "エンジンサウンド"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Plays on the car speakers through the Spotify and Phone Audio output."
|
||||
msgstr "「Spotifyとスマホ音声」の出力から車のスピーカーで再生します。"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Choose an engine; it revs once so you can hear it."
|
||||
msgstr "エンジンを選ぶと、一度空ぶかしして音を確認できます。"
|
||||
|
||||
@@ -23486,3 +23486,82 @@ msgstr "신호등에서의 정차 동작을 개선하고 감지된 정지 표지
|
||||
msgid "Enhanced Stops"
|
||||
msgstr "향상된 정차"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Plays a simulated engine on the car speakers that follows the accelerator pedal."
|
||||
msgstr "가속 페달에 맞춰 차량 스피커로 가상 엔진 소리를 재생합니다."
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Engine Type"
|
||||
msgstr "엔진 종류"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Chooses which engine is simulated."
|
||||
msgstr "재현할 엔진을 선택합니다."
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Engine Sound Volume"
|
||||
msgstr "엔진 사운드 음량"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Sets how loud the engine is before the car's own volume control."
|
||||
msgstr "차량 자체 음량 조절 전에 엔진 소리 크기를 설정합니다."
|
||||
|
||||
#: openpilot/starpilot/galaxy/setting_descriptions.py
|
||||
msgid "Plays a simulated engine on the car speakers that follows the accelerator pedal, including revving in Park or Neutral. Uses the audio output chosen under Spotify and Phone Audio, and goes quiet while an alert sounds."
|
||||
msgstr "가속 페달에 맞춰 차량 스피커로 가상 엔진 소리를 재생하며, P 또는 N에서 공회전 레브도 지원합니다. Spotify 및 휴대폰 오디오에서 선택한 오디오 출력을 사용하며, 경고음이 울리는 동안에는 소리가 꺼집니다."
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "BMW M3"
|
||||
msgstr "BMW M3"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "BMW M3 Deep"
|
||||
msgstr "BMW M3 Deep"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "F1 Car"
|
||||
msgstr "F1 Car"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Ferrari F136"
|
||||
msgstr "Ferrari F136"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Hellcat"
|
||||
msgstr "Hellcat"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Ioniq 5N Ignition"
|
||||
msgstr "Ioniq 5N Ignition"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Jaguar F-Type"
|
||||
msgstr "Jaguar F-Type"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Nissan Super GT1"
|
||||
msgstr "Nissan Super GT1"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Nissan Super GT2"
|
||||
msgstr "Nissan Super GT2"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Supra Turbo"
|
||||
msgstr "Supra Turbo"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "LFA"
|
||||
msgstr "LFA"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Engine Sounds"
|
||||
msgstr "엔진 사운드"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Plays on the car speakers through the Spotify and Phone Audio output."
|
||||
msgstr "Spotify 및 휴대폰 오디오 출력을 통해 차량 스피커로 재생합니다."
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Choose an engine; it revs once so you can hear it."
|
||||
msgstr "엔진을 선택하면 한 번 레브되어 소리를 들을 수 있습니다."
|
||||
|
||||
@@ -23486,3 +23486,82 @@ msgstr "Cải thiện cách dừng xe tại đèn giao thông và cho phép tự
|
||||
msgid "Enhanced Stops"
|
||||
msgstr "Dừng xe nâng cao"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Plays a simulated engine on the car speakers that follows the accelerator pedal."
|
||||
msgstr "Phát âm thanh động cơ mô phỏng trên loa xe, theo bàn đạp ga."
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Engine Type"
|
||||
msgstr "Loại động cơ"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Chooses which engine is simulated."
|
||||
msgstr "Chọn động cơ được mô phỏng."
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Engine Sound Volume"
|
||||
msgstr "Âm lượng âm thanh động cơ"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Sets how loud the engine is before the car's own volume control."
|
||||
msgstr "Đặt độ lớn của âm thanh động cơ trước núm âm lượng của xe."
|
||||
|
||||
#: openpilot/starpilot/galaxy/setting_descriptions.py
|
||||
msgid "Plays a simulated engine on the car speakers that follows the accelerator pedal, including revving in Park or Neutral. Uses the audio output chosen under Spotify and Phone Audio, and goes quiet while an alert sounds."
|
||||
msgstr "Phát âm thanh động cơ mô phỏng trên loa xe theo bàn đạp ga, kể cả khi rồ ga ở số P hoặc N. Dùng đầu ra âm thanh đã chọn trong Spotify và âm thanh điện thoại, và tắt tiếng khi có cảnh báo."
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "BMW M3"
|
||||
msgstr "BMW M3"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "BMW M3 Deep"
|
||||
msgstr "BMW M3 Deep"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "F1 Car"
|
||||
msgstr "F1 Car"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Ferrari F136"
|
||||
msgstr "Ferrari F136"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Hellcat"
|
||||
msgstr "Hellcat"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Ioniq 5N Ignition"
|
||||
msgstr "Ioniq 5N Ignition"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Jaguar F-Type"
|
||||
msgstr "Jaguar F-Type"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Nissan Super GT1"
|
||||
msgstr "Nissan Super GT1"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Nissan Super GT2"
|
||||
msgstr "Nissan Super GT2"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "Supra Turbo"
|
||||
msgstr "Supra Turbo"
|
||||
|
||||
#: openpilot/starpilot/engine_sound/profiles.py
|
||||
msgid "LFA"
|
||||
msgstr "LFA"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Engine Sounds"
|
||||
msgstr "Âm thanh động cơ"
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Plays on the car speakers through the Spotify and Phone Audio output."
|
||||
msgstr "Phát trên loa xe qua đầu ra Spotify và âm thanh điện thoại."
|
||||
|
||||
#: openpilot/starpilot/ui/sounds_owner.py
|
||||
msgid "Choose an engine; it revs once so you can hear it."
|
||||
msgstr "Chọn một động cơ; động cơ sẽ rồ ga một lần để bạn nghe thử."
|
||||
|
||||
Binary file not shown.
@@ -7,6 +7,7 @@ from openpilot.starpilot.car.mazda.dashboard import write_stop_sign
|
||||
DRIVE_MODE_MAX_AGE_NS = 2_000_000_000
|
||||
DRIVE_MODE_ECO = 4
|
||||
DRIVE_MODE_SPORT = 5
|
||||
ACCELERATOR_PEDAL_FULL = 254.0 # highest raw value seen at full travel on the Ioniq 6
|
||||
|
||||
|
||||
def capable(cp):
|
||||
@@ -17,16 +18,28 @@ def compose(cp, parsed, state, message, *, car_state_stamp):
|
||||
if not capable(cp):
|
||||
return message
|
||||
message = write_stop_sign(parsed, state, message, car_state_stamp=car_state_stamp)
|
||||
return write_drive_mode(parsed, state, message)
|
||||
message = write_drive_mode(parsed, state, message)
|
||||
return write_accelerator_pedal(parsed, state, message)
|
||||
|
||||
|
||||
def _fresh(observation, state):
|
||||
if type(observation) is not tuple or len(observation) != 2 or not state.canValid or state.canTimeout:
|
||||
return None
|
||||
value, stamp = observation
|
||||
age = time.clock_gettime_ns(getattr(time, 'CLOCK_BOOTTIME', time.CLOCK_MONOTONIC)) - stamp
|
||||
return value if 0 <= age <= DRIVE_MODE_MAX_AGE_NS else None
|
||||
|
||||
|
||||
def write_accelerator_pedal(parsed, state, message):
|
||||
pedal = _fresh(getattr(parsed, 'accelerator_pedal', None), state)
|
||||
if pedal is not None:
|
||||
message.starpilotCarState.acceleratorPedal = min(max(pedal / ACCELERATOR_PEDAL_FULL, 0.0), 1.0)
|
||||
return message
|
||||
|
||||
|
||||
def write_drive_mode(parsed, state, message):
|
||||
observation = getattr(parsed, 'drive_mode', None)
|
||||
if type(observation) is not tuple or len(observation) != 2 or not state.canValid or state.canTimeout:
|
||||
return message
|
||||
mode, stamp = observation
|
||||
age = time.clock_gettime_ns(getattr(time, 'CLOCK_BOOTTIME', time.CLOCK_MONOTONIC)) - stamp
|
||||
if 0 <= age <= DRIVE_MODE_MAX_AGE_NS:
|
||||
mode = _fresh(getattr(parsed, 'drive_mode', None), state)
|
||||
if mode is not None:
|
||||
message.starpilotCarState.ecoGear = mode == DRIVE_MODE_ECO
|
||||
message.starpilotCarState.sportGear = mode == DRIVE_MODE_SPORT
|
||||
return message
|
||||
|
||||
@@ -4,7 +4,7 @@ from dataclasses import dataclass
|
||||
from opendbc.car.gm.profiles import profiles_supported as gm_profiles_supported
|
||||
import hashlib
|
||||
|
||||
from openpilot.starpilot.conditional_mode.manual import EXPERIMENTAL_MODE_ACTION, TRAFFIC_MODE_ACTION, ioniq6_media_eligible
|
||||
from openpilot.starpilot.conditional_mode.manual import ACTION_COUNT, EXPERIMENTAL_MODE_ACTION, TRAFFIC_MODE_ACTION, ioniq6_media_eligible
|
||||
from openpilot.starpilot.conditional_mode.preferences import MAX_DOCUMENT_BYTES, PreferenceError, decode_preferences
|
||||
from openpilot.starpilot.saved_document import WriteResult, commit_exact
|
||||
from openpilot.starpilot.saved_source import read_saved
|
||||
@@ -22,7 +22,7 @@ SAFE_KEY = "SafeMode"
|
||||
MAX_SCALAR_BYTES = 8
|
||||
CHOICES = {"Off": b"0", "Cycle conditional mode": str(EXPERIMENTAL_MODE_ACTION).encode(),
|
||||
"Toggle traffic mode": str(TRAFFIC_MODE_ACTION).encode(), "Switchback Mode": b"7"}
|
||||
_CANONICAL_ACTIONS = frozenset(str(value).encode() for value in range(15))
|
||||
_CANONICAL_ACTIONS = frozenset(str(value).encode() for value in range(ACTION_COUNT))
|
||||
|
||||
|
||||
@dataclass(frozen=True)
|
||||
|
||||
@@ -23,6 +23,7 @@ from openpilot.starpilot.saved_source import read_saved
|
||||
|
||||
EXPERIMENTAL_MODE_ACTION = 5
|
||||
TRAFFIC_MODE_ACTION = 6
|
||||
ACTION_COUNT = 17
|
||||
VERY_LONG_PRESS = 5 * CRUISE_LONG_PRESS
|
||||
MEDIA_LONG_NS = CRUISE_LONG_PRESS * 10_000_000 # Convert 100 Hz ticks to source-packet nanoseconds.
|
||||
MEDIA_VERY_LONG_NS = VERY_LONG_PRESS * 10_000_000
|
||||
@@ -106,7 +107,7 @@ def _action(params, key: str) -> int | None:
|
||||
if raw is None:
|
||||
return 0
|
||||
# Registered INT defaults and Params::put values are canonical decimal.
|
||||
if raw not in tuple(str(value).encode() for value in range(15)):
|
||||
if raw not in tuple(str(value).encode() for value in range(ACTION_COUNT)):
|
||||
return None
|
||||
return int(raw)
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ def context(tmp_path):
|
||||
|
||||
def test_exact_catalog_and_missing_vs_saved_off(context):
|
||||
params, _ = context
|
||||
assert sorted(ACTIONS.values()) == list(range(15))
|
||||
assert sorted(ACTIONS.values()) == list(range(17))
|
||||
assert len(KEYS) == 15
|
||||
assert capture(params)['DistanceButtonControl'] == 1
|
||||
assert capture(params)['LongDistanceButtonControl'] == 5
|
||||
@@ -62,7 +62,7 @@ def test_exact_catalog_and_missing_vs_saved_off(context):
|
||||
assert capture(params)['DistanceButtonControl'] == 0
|
||||
|
||||
|
||||
@pytest.mark.parametrize('key,code', [('DistanceButtonControl', code) for code in (1, 2, 5, 6, 7, 8, 11, 12, 13, 14)])
|
||||
@pytest.mark.parametrize('key,code', [('DistanceButtonControl', code) for code in (1, 2, 5, 6, 7, 8, 11, 12, 13, 14, 15, 16)])
|
||||
def test_real_distance_short_delivers_once_and_claims_serialized_release(context, key, code):
|
||||
params, cp = context
|
||||
params.put(key, code, block=True)
|
||||
|
||||
@@ -5,7 +5,7 @@ from dataclasses import dataclass
|
||||
from functools import lru_cache
|
||||
|
||||
from opendbc.car import structs
|
||||
from openpilot.starpilot.conditional_mode.manual import Button, ButtonTracker, Press, ioniq6_media_eligible
|
||||
from openpilot.starpilot.conditional_mode.manual import ACTION_COUNT, Button, ButtonTracker, Press, ioniq6_media_eligible
|
||||
from openpilot.starpilot.saved_source import read_saved
|
||||
from openpilot.starpilot.conditional_mode.ui_action import fresh_service
|
||||
|
||||
@@ -14,8 +14,9 @@ ACTIONS = {
|
||||
"Off": 0, "Cycle personality": 1, "Force coast": 2, "Pause steering": 3, "Pause longitudinal": 4,
|
||||
"Experimental override": 5, "Traffic mode": 6, "Switchback Mode": 7, "Bookmark": 8,
|
||||
"Toggle AOL": 9, "Adopt speed limit": 10, "Quick Select 1": 11, "Quick Select 2": 12,
|
||||
"Quick Select 3": 13, "Pulse and glide": 14,
|
||||
"Quick Select 3": 13, "Pulse and glide": 14, "Toggle Engine Sounds": 15, "Next Engine Sound": 16,
|
||||
}
|
||||
ENGINE_SOUND_ACTIONS = (15, 16)
|
||||
KEYS = ("LKASButtonControl", "MainCruiseButtonControl", "DistanceButtonControl", "LongDistanceButtonControl",
|
||||
"VeryLongDistanceButtonControl", "CancelButtonControl", "LongCancelButtonControl", "VeryLongCancelButtonControl",
|
||||
"ModeButtonControl", "LongModeButtonControl", "VeryLongModeButtonControl", "StarButtonControl",
|
||||
@@ -23,7 +24,7 @@ KEYS = ("LKASButtonControl", "MainCruiseButtonControl", "DistanceButtonControl",
|
||||
PADDLE_KEY = "LeftPaddleButtonControl"
|
||||
LIFETIME_NS = 250_000_000
|
||||
SESSION = re.compile(r"[0-9a-f]{32}\Z")
|
||||
DELIVERED_ACTIONS = frozenset((1, 2, 5, 6, 7, 8, 10, 11, 12, 13, 14))
|
||||
DELIVERED_ACTIONS = frozenset((1, 2, 5, 6, 7, 8, 10, 11, 12, 13, 14, *ENGINE_SOUND_ACTIONS))
|
||||
DEFAULTS = {"DistanceButtonControl": 1, "LongDistanceButtonControl": 5, "VeryLongDistanceButtonControl": 6}
|
||||
BUTTON_KEYS = {
|
||||
Button.LKAS: (KEYS[0],), Button.DISTANCE: KEYS[2:5], Button.MODE: KEYS[8:11], Button.CUSTOM: KEYS[11:14],
|
||||
@@ -117,7 +118,7 @@ def capture(params):
|
||||
result = {}
|
||||
for key in KEYS:
|
||||
raw, readable = read_saved(params, key, 8)
|
||||
if not readable or raw is not None and raw not in tuple(str(value).encode() for value in range(15)):
|
||||
if not readable or raw is not None and raw not in tuple(str(value).encode() for value in range(ACTION_COUNT)):
|
||||
return None
|
||||
result[key] = int(raw) if raw is not None else DEFAULTS.get(key, 0)
|
||||
return result
|
||||
|
||||
@@ -52,7 +52,7 @@ def bucket_index(curvature: float) -> int:
|
||||
|
||||
|
||||
def monotone_fit(values: list[float], weights: list[int]) -> tuple[float, ...]:
|
||||
"""Weighted pool-adjacent-violators fit, increasing with curvature."""
|
||||
"""Weighted pool-adjacent-violators fit, non-decreasing in list order."""
|
||||
if len(values) != len(weights) or any(not finite_number(v) for v in values) or any(type(w) is not int or w <= 0 for w in weights):
|
||||
raise ValueError("fit requires finite values and positive integer weights")
|
||||
blocks: list[tuple[float, int, int]] = []
|
||||
@@ -181,4 +181,7 @@ class LearnedCurve:
|
||||
confidence = sample.count / (sample.count + PRIOR_WEIGHT)
|
||||
values.append(min(max(confidence * sample.average + (1 - confidence) * prior, MIN_COMFORT), MAX_COMFORT))
|
||||
weights.append(sample.count + PRIOR_WEIGHT)
|
||||
self._fit = monotone_fit(values, weights)
|
||||
# Constrain apex speed, not comfort: a sharper curve is never taken faster, but a
|
||||
# driver may corner harder on gentle highway curves than on tight street ones.
|
||||
speeds = monotone_fit([math.sqrt(value / k) for value, k in zip(values[::-1], CURVATURES[::-1], strict=True)], weights[::-1])[::-1]
|
||||
self._fit = tuple(min(max(speed * speed * k, MIN_COMFORT), MAX_COMFORT) for speed, k in zip(speeds, CURVATURES, strict=True))
|
||||
|
||||
@@ -12,6 +12,7 @@ TRAINING_QUIET_NS = 5_000_000_000
|
||||
TRAINING_SETTLE_NS = 2_000_000_000
|
||||
LEAD_CLEAR_NS = 1_000_000_000
|
||||
GLOW_RELEASE_NS = 3_000_000_000
|
||||
GLOW_OUTBID_NS = 500_000_000
|
||||
PERSIST_INTERVAL_NS = 30_000_000_000
|
||||
CRUISING_SPEED = 5.0
|
||||
ACTIVE_ON_DELTA = 0.5
|
||||
@@ -157,21 +158,26 @@ class Runtime:
|
||||
return True
|
||||
target = self.pending_target
|
||||
selected = applied and self.pending_cap and target is not None
|
||||
self.was_controlling = bool(selected and target < self.pending_cruise - 1.0 and
|
||||
self.pending_ego >= target - ACTIVE_OFF_DELTA)
|
||||
if not selected and (self.pending_cap or target is None):
|
||||
at_cap = bool(selected and self.pending_ego >= target - ACTIVE_OFF_DELTA)
|
||||
self.was_controlling = at_cap and target < self.pending_cruise - 1.0
|
||||
outbid = self.pending_cap and not selected
|
||||
released = not self.pending_cap and target is not None and target > self.pending_cruise - ACTIVE_OFF_DELTA
|
||||
if target is None:
|
||||
self.glow = False
|
||||
self.glow_release_since_ns = 0
|
||||
elif self.was_controlling:
|
||||
elif at_cap:
|
||||
self.glow = True
|
||||
self.glow_release_since_ns = 0
|
||||
self.quiet_until_ns = frame_ns + TRAINING_QUIET_NS
|
||||
elif self.glow and target is not None and target > self.pending_cruise - ACTIVE_OFF_DELTA:
|
||||
if self.was_controlling:
|
||||
self.quiet_until_ns = frame_ns + TRAINING_QUIET_NS
|
||||
elif self.glow and (outbid or released):
|
||||
if not self.glow_release_since_ns:
|
||||
self.glow_release_since_ns = frame_ns
|
||||
elif frame_ns - self.glow_release_since_ns >= GLOW_RELEASE_NS:
|
||||
elif frame_ns - self.glow_release_since_ns >= (GLOW_OUTBID_NS if outbid else GLOW_RELEASE_NS):
|
||||
self.glow = False
|
||||
self.glow_release_since_ns = 0
|
||||
else:
|
||||
self.glow_release_since_ns = 0
|
||||
return True
|
||||
|
||||
def _event(self, event: DriverEvent | None, frame: Frame) -> bool:
|
||||
@@ -345,12 +351,19 @@ class Runtime:
|
||||
now >= self.quiet_until_ns and finite_number(measured_accel) and
|
||||
not controlling)
|
||||
learned = False
|
||||
below_comfort = False
|
||||
if trainable:
|
||||
if not self.last_training_ns:
|
||||
self.last_training_ns = now
|
||||
if now - self.last_training_ns >= TRAINING_SETTLE_NS and in_curve:
|
||||
self.curve.observe(abs(frame.measured_curvature), measured_accel)
|
||||
learned = True
|
||||
curvature = abs(frame.measured_curvature)
|
||||
# A driver-chosen speed is a floor on comfort; posted limits and traffic also
|
||||
# hold speed down, so only brake/disengage nudges may lower it.
|
||||
if measured_accel > self.curve.comfort(curvature):
|
||||
self.curve.observe(curvature, measured_accel)
|
||||
learned = True
|
||||
else:
|
||||
below_comfort = True
|
||||
else:
|
||||
self.last_training_ns = 0
|
||||
learning_reason = ('learning_disabled' if not self.enabled else
|
||||
@@ -365,7 +378,8 @@ class Runtime:
|
||||
'learning_feedback_quiet_wait' if now < self.quiet_until_ns else
|
||||
'learning_controller_active' if controlling else
|
||||
'learning_settling' if now - self.last_training_ns < TRAINING_SETTLE_NS else
|
||||
'learning' if learned else 'learning_waiting_for_curve')
|
||||
'learning' if learned else
|
||||
'learning_below_comfort' if below_comfort else 'learning_waiting_for_curve')
|
||||
self.was_long_active = frame.long_active
|
||||
self.was_gas = frame.gas_pressed
|
||||
self.was_brake = frame.brake_pressed
|
||||
|
||||
@@ -170,8 +170,8 @@
|
||||
],
|
||||
"comfort": [
|
||||
1.5052272727272726,
|
||||
2.4442045614035086,
|
||||
2.4442045614035086
|
||||
1.914285714285714,
|
||||
2.4
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -345,7 +345,7 @@
|
||||
}
|
||||
],
|
||||
"comfort": [
|
||||
1.6588306451612902,
|
||||
1.7188961015057878,
|
||||
1.9142857142857144,
|
||||
2.4000000000000004
|
||||
]
|
||||
|
||||
@@ -11,9 +11,17 @@ class TestLearning(unittest.TestCase):
|
||||
result = LearnedCurve.load({KEYS[5]: {'average': 3.0, 'count': 1000}, KEYS[6]: {'average': 1.2, 'count': 1}})
|
||||
assert result.valid
|
||||
values = [result.curve.comfort(k) for k in CURVATURES]
|
||||
assert all((a <= b for a, b in zip(values, values[1:], strict=False)))
|
||||
speeds = [math.sqrt(value / k) for value, k in zip(values, CURVATURES, strict=True)]
|
||||
assert all((a >= b for a, b in zip(speeds, speeds[1:], strict=False)))
|
||||
assert values[5] > LearnedCurve().comfort(CURVATURES[5])
|
||||
|
||||
def test_gentle_curves_may_learn_more_comfort_than_tighter_street_curves(self):
|
||||
highway, street = bucket_index(0.004), bucket_index(0.0055)
|
||||
result = LearnedCurve.load({KEYS[highway]: {'average': 2.7, 'count': 600}, KEYS[street]: {'average': 1.57, 'count': 600}})
|
||||
assert result.valid
|
||||
self.assertGreater(result.curve.comfort(CURVATURES[highway]), 2.5)
|
||||
self.assertLess(result.curve.comfort(CURVATURES[street]), 1.8)
|
||||
|
||||
def test_legacy_duplicate_buckets_merge_without_mutating_or_dirtying_saved_input(self):
|
||||
document = {'0.001': {'average': 2.0, 'count': 3}, '-0.0010001': {'average': 3.0, 'count': 1}}
|
||||
original = copy.deepcopy(document)
|
||||
|
||||
@@ -204,4 +204,4 @@ def test_actual_host_24_by_200_progress_is_coverage_and_saturates():
|
||||
assert host.runtime.curve.revision == 4800 and result.progress == 100.
|
||||
sm, stamp = inputs(tick, curve=True)
|
||||
result = host.sample(sm, cp, stamp)
|
||||
assert result.training and result.progress == 100.
|
||||
assert not result.training and result.learning_reason == 'learning_below_comfort' and result.progress == 100.
|
||||
|
||||
@@ -58,6 +58,43 @@ class TestCurveRuntime(unittest.TestCase):
|
||||
self.assertEqual(rt.curve.revision, 0)
|
||||
self.assertFalse(rt.glow)
|
||||
|
||||
def test_glow_starts_with_a_shallow_applied_cap_and_bridges_a_brief_outbid(self):
|
||||
rt = Runtime(enabled=True)
|
||||
|
||||
def run(n: int, applied: bool):
|
||||
item = frame(n, ego_mps=29.6)
|
||||
result = rt.step(item)
|
||||
rt.confirm_applied(item.now_ns, applied=applied)
|
||||
return result
|
||||
|
||||
for n in range(1, 6):
|
||||
result = run(n, True)
|
||||
assert result.ceiling_mps is not None
|
||||
self.assertGreater(result.ceiling_mps, 29.0)
|
||||
self.assertFalse(rt.was_controlling)
|
||||
self.assertTrue(rt.glow)
|
||||
run(6, False)
|
||||
self.assertTrue(rt.glow)
|
||||
run(7, True)
|
||||
for n in range(8, 18):
|
||||
run(n, False)
|
||||
self.assertTrue(rt.glow)
|
||||
run(18, False)
|
||||
self.assertFalse(rt.glow)
|
||||
|
||||
def test_passive_samples_below_learned_comfort_never_lower_it(self):
|
||||
rt = Runtime(enabled=True)
|
||||
before = rt.curve.comfort(0.01)
|
||||
for n in range(1, 80):
|
||||
result = rt.step(frame(n, long_active=False, ego_mps=13.0))
|
||||
self.assertEqual(rt.curve.revision, 0)
|
||||
self.assertFalse(result.training)
|
||||
self.assertEqual(result.learning_reason, 'learning_below_comfort')
|
||||
for n in range(80, 85):
|
||||
result = rt.step(frame(n, long_active=False, ego_mps=16.0))
|
||||
self.assertTrue(result.training)
|
||||
self.assertGreater(rt.curve.comfort(0.01), before)
|
||||
|
||||
def test_accel_press_latches_override_and_confirmation_does_not(self):
|
||||
rt = Runtime(enabled=True)
|
||||
arm_selected(rt)
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
The loops in these banks were rendered with tools/make_bank.py, then lowered with tools/lower_bank.py
|
||||
at its default settings.
|
||||
|
||||
From the engine scripts of engine-sim (https://github.com/ange-yaghi/engine-sim,
|
||||
commit 85f7c3b959a908ed5232ede4f1a4ac7eafe6b630), recorded with tools/esrec:
|
||||
|
||||
f1_car assets/engines/atg-video-2/12_ferrari_412_t2.mr
|
||||
ferrari_f136 assets/engines/atg-video-2/08_ferrari_f136_v8.mr
|
||||
lfa assets/engines/atg-video-2/10_lfa_v10.mr
|
||||
supra_turbo assets/engines/atg-video-2/03_2jz.mr, its off_3450 loop then lowered 6.1 dB to the level of its neighbours
|
||||
|
||||
bmw_m3 assets/engines/bmw/M52B28.mr, lowered again with tools/lower_bank.py --pitch 1.15 --bass 3 --treble -3
|
||||
--off-mix 0 --off-mid 0
|
||||
bmw_m3_deep assets/engines/bmw/M52B28.mr, lowered again with tools/lower_bank.py --pitch 1.5 --bass 8 --treble -9
|
||||
--off-mix 0 --off-mid 0
|
||||
|
||||
From recordings of real cars supplied for this project, built with tools/bank_from_recording.py:
|
||||
|
||||
hellcat hellcat.wav: --cylinders 8 --anchor 14 700 --idle 10.5-17.5 --on 25-94 --off 94-119,
|
||||
then equalised with tools/lower_bank.py --pitch 1.0 --off-mix 0 --off-mid 0
|
||||
ioniq_5n Ioniq5.mp3 (the Ioniq 5 N's Ignition sound), its closing video fade from 52 s divided back out first:
|
||||
--cylinders 6 (the comb's strongest line is the 6th) --half-orders --anchor 6 6180 --anchor 20.5 7140
|
||||
--on 4.6-6.8 10.2-11.7 16-17.3 17.6-21.3 31.5-33.4 34-35.2 35.6-37.9 41.5-43.3 43.5-44.6 46-48.2
|
||||
--off 12-14.3 22.6-25.1 48.5-49.9 50.3-57.9 --idle 57.9-59.7 --denoise 15, leaving out the stretches with
|
||||
tyre squeal
|
||||
jaguar_ftype Jaguar2.wav: --cylinders 8 --half-orders --anchor 17 721 --anchor 40 5122 --anchor 66 4402
|
||||
--idle 14.5-19.5 --on 20.5-45.8 52-77 --denoise 10, not equalised (the in-car recording is already
|
||||
bass-heavy); the 750 rpm loop (a second idle) and the 3500 rpm loop (dominated by crank-rate boom) removed
|
||||
nissan_super_gt NissanSuperGT.wav: --cylinders 8 --half-orders, rpm labelled as 120 x the spacing of its harmonic
|
||||
comb (whether that is rpm/120 or rpm/60 cannot be told from the recording; the profile uses the same
|
||||
units, so the pitch is right either way), pinned with --anchor at every 0.25 s point whose comb
|
||||
measured clearly, --idle 18.6-19.6 --on 9-17 19.7-65 79.4-88.2 --off 9-17 65-71 74.2-76 79.4-88.2,
|
||||
then the recording's wind hiss lowered 18 dB between the engine orders (fading in from 500 Hz, full
|
||||
from 1 kHz up) and equalised with tools/lower_bank.py --pitch 1.0 --bass 4 --treble -8 --off-mix 0
|
||||
--off-mid 0
|
||||
nissan_super_gt2 the same loops, hiss lowered the same way, equalised with tools/lower_bank.py --pitch 1.3 --bass 6
|
||||
--treble -10 --off-mix 0 --off-mid 0
|
||||
|
||||
turbo/blowoff.wav is the blow-off flutter from 11.89-14.45 s of flutter.wav, a recording supplied for this project,
|
||||
with the recording's own engine taken out from under it (high-passed at 180 Hz and its steady spectrum subtracted).
|
||||
|
||||
pops/burble_grains.wav is the 62 pops of the two overrun bursts at 6.35-7.5 s and 9.85-11.3 s of burbles.wav, a
|
||||
recording supplied for this project: 52 ms from 2 ms before each pop, band-passed 100 Hz-20 kHz, each normalised.
|
||||
|
||||
engine-sim is distributed under the following license:
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright 2022 AngeTheGreat (Ange Yaghi)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
||||
documentation files (the "Software"), to deal in the Software without restriction, including without limitation the
|
||||
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit
|
||||
persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the
|
||||
Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
|
||||
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
||||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
||||
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
@@ -0,0 +1,114 @@
|
||||
{
|
||||
"version": 1,
|
||||
"source": "engine-sim engines/bmw/M52B28.mr",
|
||||
"layers": {
|
||||
"on": [
|
||||
{
|
||||
"rpm": 1208,
|
||||
"file": "on_1208.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 2070,
|
||||
"file": "on_2070.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 2932,
|
||||
"file": "on_2932.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 3795,
|
||||
"file": "on_3795.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 4658,
|
||||
"file": "on_4658.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 5520,
|
||||
"file": "on_5520.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 6382,
|
||||
"file": "on_6382.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 7245,
|
||||
"file": "on_7245.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 8107,
|
||||
"file": "on_8107.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 8970,
|
||||
"file": "on_8970.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 9832,
|
||||
"file": "on_9832.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 10695,
|
||||
"file": "on_10695.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 11558,
|
||||
"file": "on_11558.wav"
|
||||
}
|
||||
],
|
||||
"off": [
|
||||
{
|
||||
"rpm": 1208,
|
||||
"file": "off_1208.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 2070,
|
||||
"file": "off_2070.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 2932,
|
||||
"file": "off_2932.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 3795,
|
||||
"file": "off_3795.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 4658,
|
||||
"file": "off_4658.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 5520,
|
||||
"file": "off_5520.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 6382,
|
||||
"file": "off_6382.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 7245,
|
||||
"file": "off_7245.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 8107,
|
||||
"file": "off_8107.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 8970,
|
||||
"file": "off_8970.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 9832,
|
||||
"file": "off_9832.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 10695,
|
||||
"file": "off_10695.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 11558,
|
||||
"file": "off_11558.wav"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,114 @@
|
||||
{
|
||||
"version": 1,
|
||||
"source": "engine-sim engines/bmw/M52B28.mr",
|
||||
"layers": {
|
||||
"on": [
|
||||
{
|
||||
"rpm": 1575,
|
||||
"file": "on_1575.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 2700,
|
||||
"file": "on_2700.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 3825,
|
||||
"file": "on_3825.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 4950,
|
||||
"file": "on_4950.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 6075,
|
||||
"file": "on_6075.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 7200,
|
||||
"file": "on_7200.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 8325,
|
||||
"file": "on_8325.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 9450,
|
||||
"file": "on_9450.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 10575,
|
||||
"file": "on_10575.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 11700,
|
||||
"file": "on_11700.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 12825,
|
||||
"file": "on_12825.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 13950,
|
||||
"file": "on_13950.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 15075,
|
||||
"file": "on_15075.wav"
|
||||
}
|
||||
],
|
||||
"off": [
|
||||
{
|
||||
"rpm": 1575,
|
||||
"file": "off_1575.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 2700,
|
||||
"file": "off_2700.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 3825,
|
||||
"file": "off_3825.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 4950,
|
||||
"file": "off_4950.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 6075,
|
||||
"file": "off_6075.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 7200,
|
||||
"file": "off_7200.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 8325,
|
||||
"file": "off_8325.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 9450,
|
||||
"file": "off_9450.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 10575,
|
||||
"file": "off_10575.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 11700,
|
||||
"file": "off_11700.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 12825,
|
||||
"file": "off_12825.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 13950,
|
||||
"file": "off_13950.wav"
|
||||
},
|
||||
{
|
||||
"rpm": 15075,
|
||||
"file": "off_15075.wav"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user