Commit Graph

704 Commits

Author SHA1 Message Date
Harald Schäfer
74bb4956ab Calibrationd: allow more pitch angle (#28255)
* Calibrationd: allow more pitch angle

* Update ref_commit
old-commit-hash: 2c65b843a5
2023-05-24 11:41:01 +02:00
Kacper Rączy
dd70d2bdf3 process_replay: drain sockets instead recv_one (#28161)
* Drain the sockets until the next cycle in python process replay

* Add waiting mechanism to native process replay, which mimics the syncing

* Sort logs when comparing them. Drain all the sockets instead of only recv_socks.

* Reverse the retrieval order of FakeSocket

* Change pub order for torqued

* Update ref commit
old-commit-hash: 12b3ffcc49
2023-05-23 12:59:09 -07:00
Cameron Clough
f5563f9049 Ford: longitudinal behind alpha toggle (#28196)
* bump panda

* set safety config/configure experimental longitudinal

* send inactive signals

* bump

* just calculate in function

* already in the variable

* clean that up

* add comment, on ford stock long, prchg seems to be set from the possible future accel

* comment

* this signal didn't have an impact on engaging

* add comment and fix

* worst case while AEB

* and kill ACCDATAs

* this could be dangerous

* need to test this too

* Revert "need to test this too"

This reverts commit 09bba75950fa55d90a82f0109e3138ffe5a1d08c.

* Revert "this could be dangerous"

This reverts commit 323143e84727f1a780bbb600be5f7ceb763516b1.

* Revert "and kill ACCDATAs"

This reverts commit 15f6804bf64d01145daf57a592c2f3fd44ceba27.

* Revert "worst case while AEB"

This reverts commit 85e1aaa8e1af90373c688d1973dbfbb07b1fb8b2.

* bump panda

* Update selfdrive/car/ford/fordcan.py

* move around

* was already here

* rm

* use variable

* update docs

* Update ref_commit

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: d4dec3ba5e
2023-05-18 15:25:24 -07:00
Harald Schäfer
f6900301a5 QCOM laikad: add glonass support (#28217)
* QCOM laikad: add glonass support

* reject garbage timestamps

* update ref
old-commit-hash: 703fe85cf5
2023-05-18 00:19:40 -07:00
Harald Schäfer
5ddceb553d Calibrationd: make recalibrating alert (#28149)
* Initial

* fixes

* not an int anymore

* elif

* revert ref

* update ref

* fix alert text

* regen refs

* update ref

* add recalibration unit test

* set into recalibration state

* fix words

* recalib

* text

* Update selfdrive/controls/lib/events.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 598343aad1
2023-05-15 09:29:57 -07:00
Vivek Aithal
4be83d0d57 Lateral Planner: Calibrate model speed with vEgo (#28049)
* calibrate speed in the lateral planner

* make speed err helper fn

* check if trans has values

* clip the vel_err

* update refs
old-commit-hash: a599890fed
2023-05-09 14:26:58 -07:00
Vivek Aithal
dfa48835a0 RAM 1500 5TH GEN: Reduce friction (#28138)
* reduce ram friction

* u[pdate refs
old-commit-hash: 219b0708f3
2023-05-08 18:05:00 -07:00
Shane Smiskol
e56c2f6ee4 Ford: remove from dashcam (#28103)
* no dashcam 🎉

* update docs

* not these

* update refs

* bump panda
old-commit-hash: d05d9dac04
2023-05-04 06:55:09 +00:00
Vivek Aithal
1bdb1407f9 RAM 1500 5TH GEN: Update offline params (#28099)
* add fric

* no 0 friction offline value

* update refs
old-commit-hash: 3aadad24f0
2023-05-03 20:01:48 -07:00
Harald Schäfer
08be43fe49 New process_replay segment with latest ublox logs (#28038)
* Add new segment

* Update ref_commit
old-commit-hash: 06756f4533
2023-04-30 18:24:20 -07:00
Bruce Wayne
a6b4940c8b Revert "LaikaD: new proc_replay segment and no internet laikad (#28029)"
This reverts commit 1341b59160ffa9db29d589f3fe4dd38691361165.

old-commit-hash: 613bbcd626
2023-04-26 19:20:05 -07:00
Harald Schäfer
bd9b02915f LaikaD: new proc_replay segment and no internet laikad (#28029)
* no internet in CI

* add new segment

* new ref
old-commit-hash: fbb7dcb19c
2023-04-26 16:01:39 -07:00
Shane Smiskol
c8cf77b7a7 locationd: log time to first fix (#27990)
* locationd ttff

* log time to first fix

* rename

* max it like laikad

* Update selfdrive/locationd/locationd.cc

* Update ref_commit

* Log when gpsOK first becomes true

* don't forget to update current time!

* stash

* make it deterministic (no proc replay cur time)

* Update ref_commit

* rename to make this clear
old-commit-hash: 03eb02906d
2023-04-21 16:15:13 -07:00
Harald Schäfer
fc6a779d12 Laikad: fix bad init elevation incorrect (#27974)
* Laikad: fix bad init elevation incorrect

* update ref
old-commit-hash: 922b09de96
2023-04-19 14:04:24 -07:00
Justin Newberry
da2f2114d6 Subaru: infotainment status intercept and rewrite (#27829)
* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* wip

* remove compiler flag stuff

* force error for testing

* bump panda and fix mistake

* wip

* bump panda

* wip

* wip

* forgot checksum and stuff

* add to signals

* rename

* test

* test

* bump panda and opendbc

* bump cereal

* add blank filler

* test

* add steer required to infotainment

* fix missing bit

* fix missing bit

* cleanup for PR

* cleanup for PR

* bump submodules

* wip

* wip

* i wonder what 1 is

* seemed to also be obstacle detected?

* bumppanda

* only if global

* only global gen 2

* fix order

* detect and send

* detect in rest of places

* update refs

* bumpopendbc

* copy whole message (camera sometimes sets these signals)

* bumppanda

* update refs!

* bumppanda

* let's not change this

* same as all the other functions

* Revert "same as all the other functions"

This reverts commit e86dbb695ef84a18f3123720fed37a6b81391cc4.

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: d59bfa5519
2023-04-17 19:05:16 -07:00
Harald Schäfer
f6e3dc289c Locationd qcom retune (#27739)
old-commit-hash: eca3838237
2023-03-29 16:35:30 -07:00
Vivek Aithal
b6909a65e7 Bolt EUV: Non-linear torque function (#27696)
* add erf based ff

* silly bug; diff of nonlinear != nonlinear of diff

* add sigmoid based ff, ensure slope at 0 > 1

* reduce steer down limit and increase driver allowance

* rebase panda

* atry without friction, and with tanh nonlinear

* finalize the nonlinear function

* do not disable friction compensation in the ff

* bump panda

* bump panda

* update refs

* update refs

* resolve comments

* Add type hints

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 15b880c0ea
2023-03-29 15:10:39 -07:00
Harald Schäfer
ae7ce5368c Laika cleaner flow (#27633)
* laika flow

* test fixes

* unexpected type

* unexpected type

* explicit type

* ref commit

* back to prev val

* ref 2
old-commit-hash: e05e7850e1
2023-03-22 19:10:19 -07:00
Shane Smiskol
f20e33a2c5 GM: common longitudinal actuator delay (#27357)
* common longitudinal actuator delay

* comment

* remove dup

* move

* clean up

* Update ref_commit
old-commit-hash: aefe636cc1
2023-03-22 00:23:51 -07:00
Shane Smiskol
e83edd554a Toyota LTA: allow no torque (#27646)
* no torque

* Update ref_commit

* Update ref_commit
old-commit-hash: aeb905a2bf
2023-03-21 19:21:11 -07:00
Adeeb Shihadeh
cec2edfca4 process replay: update after laika publish policy change (#27647)
* laika pubs all

* lr for locationd

* fix locationd qcom

* update refs
old-commit-hash: ee36c106af
2023-03-21 16:14:22 -07:00
Harald Schäfer
6d0116ae80 Ttff logs (#27610)
* ttff in logs

* More meta info

* cleanup

* passess tests

* unused import

* fix linting

* ttff of 0 is invalid

* ref commit

* bump cereal

* Update ref_commit

* sort ephem status list

* sort ephem status list

* update ref
old-commit-hash: 204f7d8623
2023-03-16 22:09:05 -07:00
Adeeb Shihadeh
869a9af32d Revert "LAIKAD: TTFF, and ephemeris statuses in logs (#27591)"
This reverts commit 8324a349b4c267a83d96ff3f3c9d25f0b5bd7fcf.

old-commit-hash: 4cff94366f
2023-03-16 19:01:45 -07:00
Harald Schäfer
af464f3b94 LAIKAD: TTFF, and ephemeris statuses in logs (#27591)
* ttff in logs

* More meta info

* cleanup

* passess tests

* unused import

* fix linting

* ttff of 0 is invalid

* ref commit

* bump cereal
old-commit-hash: 95216de591
2023-03-16 17:00:54 -07:00
Harald Schäfer
10c2efc2bd Bump laika (#27605)
* bump laika

* Update ref_commit
old-commit-hash: 719901b57c
2023-03-16 13:06:30 -07:00
Harald Schäfer
20dfe96afa Use structs in laika (#27585)
* doesnt crash

* New cacher

* unused import

* help linter

* Annotate list

* print error

* fix caching bugs

* wrong name

* small fixes

* fix sum

* wrong brackets

* fix tests

* update ref

* bump submodules
old-commit-hash: 5c70482761
2023-03-15 00:02:56 -07:00
Adeeb Shihadeh
e2acf6ab14 plannerd: add frameId to uiPlan (#27573)
* plannerd: add frameId to uiPlan

* update refs
old-commit-hash: 17b71b477e
2023-03-13 15:30:38 -07:00
Shane Smiskol
827c5678f0 uiPlan: add planned acceleration field (#27484)
* add accel

* bump cereal

* Update ref_commit

---------

Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com>
old-commit-hash: 3ab8645d3a
2023-03-02 20:11:24 -08:00
Kurt Nistelberger
7ad3a3fd42 laikad: reduce min satellite number (#27440)
* bump laika

* update laikad tests

* update refs

* bump laika

* update refs

---------

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: b688122042
2023-02-28 21:40:54 -08:00
Shane Smiskol
a55f8d65cd Angle control: fix limiting bug (#27428)
* fix steer up bug

* Update ref_commit
old-commit-hash: d5688ae49f
2023-02-23 16:18:32 -08:00
Shane Smiskol
854314765c Ford: adjust curvature rate limits (#27427)
* fix up

* Update ref_commit
old-commit-hash: b00eb57bb7
2023-02-22 15:59:07 -08:00
Shane Smiskol
59ff270456 Ford: adjust curvature rate limits (#27423)
* Update values.py

* Update values.py

* make consistent

* Update ref_commit
old-commit-hash: f2982340f8
2023-02-22 14:09:16 -08:00
Adeeb Shihadeh
5da2a5fa05 GM: revert steering limits update (#27413)
* Revert " GM: update steering limits (#27331)"

This reverts commit b8740c4d6c5bad5ac947d9eefeb38a5b47876ca3.

* update refs

* bump panda
old-commit-hash: 1504c10760
2023-02-21 15:48:10 -08:00
Shane Smiskol
3aad76f8fd Ford: filter steering pressed (#27123)
* ford steering pressed filter

* raise to 1.0

* Update ref_commit
old-commit-hash: dff054d4df
2023-02-20 16:13:01 -08:00
Harald Schäfer
0ac73f2a81 MPC path in UI (#27380)
* 10s lat

* Full length MPC

* redfine N

* Leave controls the same for now

* Updates

* use long plan in lat plan

* interp plan

* simplergit add selfdrive/controls/plannerd.py selfdrive/controls/

* expand to 10s

* revert this

* fix linter

* vizualize

* fix long test

* typo

* cleanup

* compiles

* unused

* unused

* bump cereal

* bump cereal

* use model if no uiplanm

* update replay

* update ref commit

* bump cereal to master
old-commit-hash: eb8bdc0026
2023-02-17 19:58:30 -08:00
Harald Schäfer
73561f01e0 Expand lateral MPC to 10s (#27343)
* 10s lat

* Full length MPC

* redfine N

* Leave controls the same for now

* Updates

* use long plan in lat plan

* interp plan

* add new interp

* simplergit add selfdrive/controls/plannerd.py selfdrive/controls/

* expand to 10s

* revert this

* fix linter

* Update sconscripts

* fix test

* fix test

* fix test

* Revert "Update sconscripts"

This reverts commit 6e23c69dcebd5ed003e37e01921f6af7c31de0db.

* Dont import drive helpers

* better compile deps

* fix compile

* comment

* update replay

* Update plannerd time
old-commit-hash: 04fe6c4ec7
2023-02-17 15:28:26 -08:00
Shane Smiskol
9a293d2944 Hyundai: detect FCA feature (#27322)
* detect fca

* use value

* it will be from camera on camera acc cars

* Update ref_commit
old-commit-hash: b2453d55c1
2023-02-16 21:52:32 -08:00
Shane Smiskol
45996b2c65 Car interfaces: assert reasonable centerToFront range (#27356)
* assert reasonable centerToFront values

* comment

* fix Bolt centerToFront

* Update ref_commit
old-commit-hash: 89934b35d0
2023-02-15 16:27:00 -08:00
Adeeb Shihadeh
5128ca0dd9 locationd: adjust GPS alive check for QCOM GPS (#27339)
* locationd: adjust GPS alive check for QCOM GPS

* update refs

* update refs
old-commit-hash: 00513f1001
2023-02-15 11:28:47 -08:00
Vivek Aithal
5edcf1380e Chevrolet Bolt: Non-linear torque tune (#27344)
* add non linear tune

* update refs

* rerun tests
old-commit-hash: e49748d571
2023-02-14 16:20:28 -08:00
Vivek Aithal
474e072c02 GM: update steering limits (#27331)
* reduce steer down limit, driver allowance

* update refs

* update refs
old-commit-hash: 1cdf80003d
2023-02-14 13:22:49 -08:00
Shane Smiskol
f258edae73 Hyundai: detect LFA HDA message (#27323)
* detect lfa message

* comment

* ?

* fix

* Update ref_commit
old-commit-hash: 65a9843ff9
2023-02-13 21:12:13 -08:00
Adeeb Shihadeh
caaa104d64 Chrysler: revert torque tuning (#27327)
* Chrysler: revert torque tuning

* update refs

* update refs + route
old-commit-hash: e3de6b8834
2023-02-13 16:15:59 -08:00
Adeeb Shihadeh
7279f7d615 update chrysler test segment with new flag
old-commit-hash: ed52916d55
2023-02-10 23:47:47 -08:00
Shane Smiskol
698c6e6624 GM: add hysteresis to cluster speed (#27301)
* add cluster hysteresis

* Update ref_commit
old-commit-hash: 5831a83c90
2023-02-10 16:14:53 -08:00
Shane Smiskol
58e6704a6f GM: split steering speeds (#27277)
* split steering speeds

* update docs

* Update ref_commit
old-commit-hash: 29ca52bc48
2023-02-09 16:53:16 -08:00
Shane Smiskol
acc8e38111 GM: enforce steering command message timing (#27250)
* draft

* bump opendbc

* still draft

* that's not right

* superset of the changes, 33hz

* cleanup

* this should work

* remove line

* pass it in again

* actually no need to check updated now

* now_nanos

* consistent name

* fix replay

* one line isn't that bad

switch

switch

* fix CarController tests

* Update ref_commit
old-commit-hash: 8f5057ff2d
2023-02-09 15:37:39 -08:00
Shane Smiskol
2e78f89e74 GM: increase min steer speed to avoid temporary faults (#27274)
* increase min steer speed to avoid temp volt faults

* actually 10.15 is safe

* Update ref_commit
old-commit-hash: 9aac0806e3
2023-02-09 13:24:52 -08:00
Shane Smiskol
503fea8e12 GM: reduce steering message rate (#27201)
* Lower active rate and raise limits to compensate

* bump panda

* bump panda

* Update ref_commit

* bump panda to master
old-commit-hash: 86d86fa9da
2023-02-07 23:38:05 -08:00
Kurt Nistelberger
466f83cba5 GPS: add tow to gps ephemeris (#27246)
* add tow to gps ephemeris

* bump cereal

* update refs

---------

Co-authored-by: Kurt Nistelberger <kurt.nistelberger@gmail.com>
old-commit-hash: 6330cdd885
2023-02-07 17:49:06 -08:00