* added Romanian localization
* ro: fix plurals, revert stale app.pot, sync with master
- add ro to PLURAL_SELECTORS and PLURAL_FORMS (3 forms, like uk); without the selector every trn() returned the singular
- app.pot back to master's (regenerated output is identical)
- regenerate app_ro.po: drop obsolete strings, translate Following Distance / Initial Max Speed
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
* ui: decode HTML character references in HtmlRenderer
parse_markdown escapes & and " in the release notes, but HtmlRenderer drew
the entities as-is, so the 0.10.0 notes showed "Learning to Drive from
a World Model".
* remove test
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
- plan_send.logMonoTime / 1e9 is in seconds, but sm.logMonoTime['modelV2'] is in nanoseconds, so processingDelay was logged as minus the boot time in nanoseconds (about -8.5e11 on a 0.9.9 route)
- subtract the two timestamps first, then convert to seconds
- nothing reads this field, so only the logged value changes
* Install the target checkout's LFS client when switching versions
* Remove unused checkout-pr.sh
* Only activate the venv for the op switch git lfs pull fallback
* radard: stock long radar errors don't invalidate radarState
With stock longitudinal, selfdrived ignores radar errors (#38145), but radarTracks.valid still invalidated radarState, then longitudinalPlan and driverAssistance, which raised a commIssue soft disable. Toyota stock long cars hit this when the radar reports RADAR_STATUS != 1 or RADAR_PRE_FAULT (opendbc #3452).
* clearer comment
* card: only CAN errors invalidate radarTracks, like carState
A route that fails to fingerprint (MOCK) between two routes of the same car reset calibration since #39171. Over 30 days of fleet routes, that was 1,235 transitions (A -> MOCK -> A), vs 71 real car changes through MOCK (A -> MOCK -> B) that now fall back to the remount check.
* calibrationd: don't treat uncertain bootstrap blocks as a remount
While valid_blocks < INPUTS_NEEDED, handle_cam_odom accepts observations
without the certainty check. That exemption (#1227) is needed: block 0 is
collected through the RPY_INIT warp, where the model is too uncertain to
pass the check, so without it a device mounted far from RPY_INIT may never
start calibrating. But those blocks can be badly off, and as soon as
valid_blocks reaches INPUTS_NEEDED the spread check compares them to the
converged blocks and raises recalibrating ("Device Remount Detected")
although nothing moved.
Fleet qlogs, both on 0.11.x after calibration was wiped:
- 6ce263bb23aa6544/00000000--cbff53a1d4 (FORD_MAVERICK_MK1): 0% of block 0
observations pass the certainty check (median angle std 0.85 deg vs
0.25 deg limit), block 0 pitch 4.85 deg, blocks 1-4 ~10 deg. Pitch spread
5.6 deg, recalibrating fires the moment validBlocks hits 5, settles at
10.2 deg (same as before the wipe, mount unmoved on video).
- 129e61c64ce468e7/000000be--192db28fdf (RIVIAN_R1, hand over the camera at
start): 18% of block 0 observations certain, block 0 pitch 1.5 deg, blocks
1-4 ~7.5 deg, spread 6.3 deg, recalibrating at validBlocks 5, settles 7.6.
Fix: when valid_blocks reaches INPUTS_NEEDED, replace the exempt blocks
with their mean. rpyCalib is unchanged (the mean of those blocks is the
same), so convergence is untouched, but the spread check now compares new
blocks to the bootstrap estimate instead of to its worst block. A real
remount after that is still caught (test_calibration_auto_reset), and a
grossly wrong bootstrap (mean off by more than the spread limits) still
triggers a recalibration. With the logged values the merged bootstrap is
9.1 deg vs ~10.2 (Ford) and 6.3 vs ~7.7 (Rivian), well under the 4 deg
pitch limit.
Excluding exempt blocks from the spread check entirely was the
alternative, but that would also stop a grossly wrong bootstrap from ever
being corrected by the spread check.
Process replay: rpyCalib and calStatus are identical on all test segments,
only rpyCalibSpread changes (it no longer includes the bootstrap spread).
* calibrationd: use the first block only to move the warp
Replaces averaging the bootstrap blocks. The first block of a fresh
calibration is measured through an uncalibrated warp, where the model is
least certain and can be well off. It now only moves the warp and isn't
counted, so it can't trip the spread check or bias the calibration.
Over 174 fresh calibrations in 5 days of fleet qlogs (137 dongles), block 0
was off by more than 1 deg in 3, and from block 1 on every block was within
1 deg of where calibration settled (max 0.77 deg). The two with a false
remount had block 0 off by 5.3 and 6.2 deg pitch.
Costs one extra block (~5s of straight driving) on every fresh calibration.
* calibrationd: shorter comment
* cmt
* no extra state
* less confusing, no valid blocks after recalib alert except warp (like master already does), fixes master percent dropping on recalib
* CMT
* cereal: name the new panda faults
* cereal: name the remaining panda faults
* cereal: keep old panda fault ordinals, map panda bits in pandad
* cereal: panda fault ordinals match the panda bits
* cereal: dma panda fault
* pandad: only count the known fault bits
* bit 19 keeps its old name, nothing sets it
* bump panda
* can_replay: UP only, the jungle is gone from panda
* keep can_replay as is
* calibrationd: reset calibration when the car changes
CalibrationParams is persistent and only cleared by Reset Calibration, so
moving a device to another car loads the old car's calibration, reports
calibrated (engageable) with the wrong mount, and only notices once the
spread check fires "Device Remount Detected" minutes later.
Over 5 days of fleet qlogs, 10 of the 19 drives that raised
calibrationRecalibrating were a device moved to another car: Pilot -> Accord,
Prius -> Highlander, Odyssey -> RAV4, Corolla -> Carnival, Corolla -> RAV4,
Accord -> CR-V, F-150 -> RAV4, RAV4 -> Bolt, Palisade -> RAV4,
Pacifica -> Grand Cherokee. The wrong calibration was in use for 0.2 to 5.4
minutes, and 35 minutes in one case (F-150 -> RAV4, replaced only on the
second drive). Example: b9cdc2c78fededd9/000002f9--4de6aa66ae, previous drives
HONDA_PILOT, this one HONDA_ACCORD; the device measured ~3 deg different pitch
and yaw on the new car from the start of the drive.
Same check paramsd and torqued already do with CarParamsPrevRoute: a different
carFingerprint means a different car, since a platform never changes on the
same car. Many cars don't report a VIN, so a VIN difference only counts when
both are known. On a different car the saved calibration is removed, the same
as Reset Calibration, and calibration starts fresh.
* calibrationd: same car check as paramsd and lagd
Only compare carFingerprint, inline like paramsd and lagd do with
CarParamsPrevRoute. In the fleet data every car change also changed the
platform (10 of 10), so the VIN check caught nothing extra.
* calibrationd: shorter comment
* calibrationd: no comment
* calibrationd: same names as paramsd and lagd
NavWidget moves with last_mouse_event while it is dragged down. This was
the last event of any finger, so a second finger made the widget jump
back and forth. All users of last_mouse_event (NavWidget, BigInputDialog
backspace hold, initial cruise speed tap) only use the first finger.
* ui: mici keyboard multitouch and stable two finger scroll
Keyboard: a second finger types the key of the first finger, same as
phone keyboards. A new press also clears the last key, so the key
hysteresis does not select it again during its unselect animation.
Scroll: only one finger moves the content. A new finger takes control
from its position, and when it lifts a finger that is still down takes
control from its last position, same as Android scroll views. Before,
events from both fingers mixed and the content jumped back and forth.
* ui: multitouch only in the mici keyboard
Widget, Button, and the tici keyboard go back to one finger (slot 0).
MiciKeyboard reads the events of all fingers itself. The scroll panel
uses only the first finger, same as scroll_panel.py, which also stops
the content from jumping when a second finger touches.
* ui: keep Widget multitouch, mici keyboard uses it
Widget, Button, and the tici keyboard are the same as master again.
MiciKeyboard sets _multi_touch to get the events of all fingers.
* mici keyboard: remove reset of active slot when disabled
_update_state clears the closest key when the keyboard is disabled, thus a
stale active slot cannot type a key.
* move scroll panel fix to its own PR
* mici keyboard: simpler comments
* mici keyboard: add _unselect_key helper
* Revert "mici keyboard: add _unselect_key helper"
This reverts commit 5e270e0bcc2fa5bb8b89e844d7e43e5b1b66c404.
* ui: fit fling velocity over the last 50 ms
Release velocity was a weighted average of the last 3 per-sample
velocities. Each sample uses the poll time of the touch thread, which
is off by a few ms, so the 3 velocities (and the fling distance) vary a
lot for the same swipe. A least-squares slope over the last 50 ms
(approx. 5 samples) is much less sensitive to this. The deceleration
check that rejects swipe-stop-lift is unchanged.
* scroll_panel2: use np.polyfit, 54 ms window off the poll grid
50 ms is exactly 7 periods of the 140 Hz poll thread, so a sample can
be on the window edge and its inclusion flips on float rounding.
* scroll_panel2: fit the last 6 samples instead of a time window
Same result as the 54 ms window (approx. 6 samples at ~103Hz), without
the window edge.
* scroll_panel2: closed-form fit instead of np.polyfit
Same result, approx. 16x faster (2.5 us vs 40 us per release on a PC),
and no numpy import.
* scroll_panel2: simpler comments
* scroll_panel2: get velocities for the decel check from the position buffer
Removes _velocity_buffer, same behavior.
* Revert "scroll_panel2: get velocities for the decel check from the position buffer"
This reverts commit db8f0a647ec48f133d138b591c3c2e2681c4c59c.
* scroll_panel2: use len() for the empty check
* scroll_panel2: comment the first position sample
* scroll_panel2: blank line before comment
Events from all fingers mixed in one delta, so the content jumped back
and forth by the distance between the fingers. Use only the first
finger, same as scroll_panel.py and Widget.