Commit Graph

367 Commits

Author SHA1 Message Date
Kacper Rączy
8aa845a1c8 modeld: use any available stream as main, if there's only one (#28514)
* Use whatever stream is available as main, if there's only one

* Move logw somewhere else

* Add wideRoadCameraState to ignore_alive if its not available
old-commit-hash: 4eb3d541492f7695227f4d8a83127cbd0d32ff79
2023-06-12 20:13:56 -07:00
Dean Lee
eddc84d104 automatically detect available camera streams (#27640)
* remove WideCameraOnly

* check in set_initial_state

* no block

* remove try block

* apply reviews
old-commit-hash: 4ae0378f639826df5cc1518574842b61b118f371
2023-06-12 13:40:43 -07:00
Adeeb Shihadeh
d2ec950790 test onroad: explicit memory leak check (#28502)
old-commit-hash: 2f117e88b775a0b53a3ae99ae943caaa66f952f2
2023-06-11 14:43:25 -07:00
Adeeb Shihadeh
678825e10f cloudlog process not running (#28472)
* cloudlog process not running

* error
old-commit-hash: a412cd07b105807a3fcd5fdc8b9caae0e227cf06
2023-06-09 15:36:15 -07:00
Harald Schäfer
bb8eeb7873 Remove INDI controller (#28366)
old-commit-hash: dba437bc8d9219287e90bc3903cd5eed72b3218d
2023-06-01 21:05:49 -07:00
Adeeb Shihadeh
7e64d60f4b test_onroad: ignore vehicleModelInvalid (#28335)
* test_onroad: ignore vehicleModelInvalid

* not for all ci
old-commit-hash: cd57b340c1974c52146015b0211bd6ec50388c7e
2023-06-01 10:26:08 -07:00
Shane Smiskol
0189b3fbe6 controls: write recalibrating offroad alert once (#28312)
* only write once

* rm read

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 715f44ff455e1d5cf03ed6e0b0a2dae526229f84
2023-05-26 13:07:35 -07:00
Adeeb Shihadeh
b820990639 controlsd: check longitudinalPlan avg freq (#28200)
old-commit-hash: dee7ced00ee7e8cdec883989958f43d94c01e4bb
2023-05-24 20:46:44 -07:00
Adeeb Shihadeh
b9e0c2936b controlsd: check for self lagging in radar alert
old-commit-hash: e889e09513f5c241dcc53c936966b22e3fe7d9e7
2023-05-15 13:57:11 -07:00
Adeeb Shihadeh
b376a2dd63 calibrationd: add offroad alert when remount detected (#28073)
* calibrationd: add offroad alert for recalibration

* Update common/params.cc
old-commit-hash: c192c92a4e838b9d5b8b80bc86fb35a0f236f2b2
2023-05-15 13:10:36 -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: 598343aad18a7896c6b65ff6e19f9e27ba19cc10
2023-05-15 09:29:57 -07:00
Kacper Rączy
2d107da5cf controlsd: disable controlsdLagging event during process replay (#28177)
Disable controlsdLagging event during process replay
old-commit-hash: e08952acc8613d697e7ef3198dc186688629427b
2023-05-12 11:33:48 -07:00
Adeeb Shihadeh
7e73e412ee gate no gps alert on valid localizer inputs (#28135)
old-commit-hash: 154a42dcbd8b1b15c8ace508e40283a704a2f682
2023-05-08 15:09:00 -07:00
Adeeb Shihadeh
4e87efb78c controlsd: remove procs from ignore list (#26848)
* trim list

* check for file
old-commit-hash: c4501e4bc1cb7a242207e910c0b61af20c3c677d
2023-05-07 15:43:45 -07:00
Shane Smiskol
6f0efe4ea0 Lane Departure Warning: fix desire index bug (#28119)
don't subtract 1
old-commit-hash: 4e951e4524e2035d8382d08ab6028c4bc326ab6a
2023-05-06 03:03:28 -07:00
Shane Smiskol
71fed2384d Remove dashcam override param (#27509)
* remove dashcam override

* sort

* remove ford from segments
old-commit-hash: e729f5b763a98f4156c1761f1511135cc32121d3
2023-03-06 15:36:39 -08:00
Adeeb Shihadeh
0691c6b6de improved fan malfunction detection (#27405)
old-commit-hash: 9d64fb2d1abeb35d0b716b9e54169d473222ab21
2023-02-22 14:11:29 -08:00
Adeeb Shihadeh
bc61a6b1fd controlsd: higher default set speed in experimental mode (#27279)
* controlsd: higher default set speed in experimental mode

* update tests

* update tests
old-commit-hash: 5ab2d35f7b7d1f224b531e245db7e35925da5e33
2023-02-09 19:27:51 -08:00
Adeeb Shihadeh
827c16fbcb controlsd: revert CAN timeout threshold (#27275)
* controlsd: revert CAN timeout threshold

* dt_ctrl doesn't make sense there
old-commit-hash: 79789011019e923c66a9db05c2da362237ce96b3
2023-02-09 18:54:17 -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: 8f5057ff2dbea4ebc85bc8f55bc7a37e4d5969b6
2023-02-09 15:37:39 -08:00
Adeeb Shihadeh
7d2477e0af controlsd: don't show steer saturated if recently overriding (#27191)
* controlsd: don't show steer saturated if recently overriding

* 2s

* update refs
old-commit-hash: b3b35b23fab832781bcf4f34d218ecc0b07c67fb
2023-02-02 17:12:13 -08:00
Shane Smiskol
09a54d7ce5 controls: add curvature to actuators (#27108)
* Add curvature to actuators

* Use it in CC

* revert ford stuff

* Update ref_commit
old-commit-hash: ad5b3ea410425d8d5d929e626a626c8d868ecdff
2023-01-26 20:02:23 -08:00
Adeeb Shihadeh
69680e5a93 UI: show experimental long available to release users (#26910)
* UI: show experimental long available to release users

* more description

* cleanup

* hide toggle

* fix process replay

* clear param

* actually fix
old-commit-hash: c408b7e30609ca64971a4278eab16643fbb123b3
2023-01-19 23:06:18 -08:00
Shane Smiskol
5a74a8db6d Deprecate canMonoTimes (#26992)
* not used anywhere

* bump cereal

* also here
old-commit-hash: 2fd48e26a3580a52d76b43dada7fc04eb2cbe669
2023-01-17 22:00:01 -08:00
Jason Young
fda55793d0 controlsd: set latActive with max minimum steer speed (#26805)
* refactor minimum lateral speed handling

* rename for clarity

* simplify without joystick at standstill

* intermediate standstill variable, check notCar

* check joystick for now

* cmt

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: cb88b3ed6528a7ad840be7bcd33fe7023b4f3719
2023-01-10 20:51:10 -08:00
Shane Smiskol
ba3d08c25f process replay: test body with joystick mode (#26916)
* no need to check sm

* fix

* Update ref_commit

* revert
old-commit-hash: f0d0d999813ee3c5cc49c2b47623296c70d37318
2023-01-10 19:59:39 -08:00
Adeeb Shihadeh
6c8aca245a controlsd: remove laikad from ignored process list
old-commit-hash: 65414bcd8d2fa23d0c6dce8070fb468c08a85dde
2022-12-31 11:30:28 -08:00
Adeeb Shihadeh
69f6d32678 controlsd: add blinkers to carControl (#26773)
* controlsd: add blinkers to carControl

* not actuators

* update refs
old-commit-hash: 151e0d8c39234f44e00ecf69fcd0cbe01b2b910c
2022-12-12 14:03:09 -08:00
Shane Smiskol
333464b3d3 controlsd: set steer_limited for angle cars (#26748)
* Set steer limited for angle cars

* closer to torque threshold
old-commit-hash: c1b3d696bc5bdd799a937f569c94e0834230c89e
2022-12-09 21:43:27 -08:00
Shane Smiskol
883be4410f LatControl: remove duplicate logic for saturation (#26725)
this is already checked
old-commit-hash: d97336d5326190559d1ff0518daee273f270aaf8
2022-12-08 03:01:57 -08:00
Shane Smiskol
3d161c4d42 controls: remove noTarget event (#26632)
remove noTarget alert
old-commit-hash: 41610fe8ae7019264f09fbbb5db64e48b45b7ca0
2022-11-29 23:12:58 -08:00
Shane Smiskol
d1dee4625a controlsd: preEnable on brake at a standstill (#26273)
* pre-enable on brake at standstill

* test by getting rid of noTarget

* Update events.py

* rename

* stash what we got so far

* cmt

* not sure if best way to fix, but enabled with current states defs is fine

* no noEntry in preEnabled

* bumpcereal

* uncomment

* Update ref_commit

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: dbe512d167a51f02fe276e17a8794de2137d0e14
2022-11-29 17:34:10 -08:00
Shane Smiskol
76e7a45284 controls: preEnabled doesn't consider noEntry (#26627)
preEnabled doesn't consider noEntry
old-commit-hash: 8ad8d4e1c2887bcd22ab7048960ed6a1a7f8e3f6
2022-11-29 13:11:03 -08:00
Adeeb Shihadeh
4f7bfc430a process replay: support old routes with no peripheralState
old-commit-hash: 7361d1a11b21cc6482ed9ba8e5505b88081b66f6
2022-11-22 11:46:28 -08:00
Adeeb Shihadeh
7c96e7876a cleanup panda types everywhere (#26574)
* cleanup panda types everywhere

* one more
old-commit-hash: 65fa87a96965000986e76604ac868891e35a86bc
2022-11-21 23:43:24 -08:00
Adeeb Shihadeh
4cb61240b3 enable experimental longitudinal control on devel (#26544)
old-commit-hash: 94aa39bdd406400ab48765d8b50f08e03ecf9eb8
2022-11-21 16:18:51 -08:00
Adeeb Shihadeh
aec5f32f3c publish experimental mode state (#26512)
* publish experimental mode state

* remove that
old-commit-hash: 9c96b21367af3dda9b193a821fe2e175a63f4176
2022-11-15 17:18:13 -08:00
Shane Smiskol
a7828e1ae3 controlsd: add cruise speed helper class (#26472)
* fix runaway set speed for GM

* fix runaway set speed for GM

* Handle resuming to exit standstill generically

* clean that up

* ugh i want to fix all the formatting

* class that manages v_cruise

* better name

* move around

* add depressed_state

* fine to update on pressed change, better name

* revert gm stuff

* revert standstill stuff

* remove

* revert that

* we can put this in here now!

* below update

* actually only used here

* one line
old-commit-hash: 811c096e6454dc2bbdd1e15a08952979c3fb7be1
2022-11-11 18:53:48 -08:00
Shane Smiskol
1ea7e49e8d controls: disengage on regen paddle independently (#26453)
* add regen braking field that's just used to add a pedalPressed

* bump

* bump

* Update ref_commit

* we want the standstill check

we want the standstill check

* see what diff is now

* Update ref_commit
old-commit-hash: 74b6e22a7dc8e0b1ec051f00037506d23a017ae8
2022-11-10 19:06:31 -08:00
Adeeb Shihadeh
74979a7c76 experimental mode (#26416)
* experimental mode

* rename param

* red lights
old-commit-hash: 9a3f46805104c4bcb5cffa304b9b322874ccf412
2022-11-08 14:45:01 -08:00
Adeeb Shihadeh
8ec2fa1307 controlsd: steer in old preEnable state (#26269)
* controlsd: steer in old preEnable state

* bump panda

* bump panda

* Update ref_commit

Co-authored-by: Shane Smiskol <shane@smiskol.com>
old-commit-hash: 6698cd48294e94fdb4e09e8943e6505efa29c5d5
2022-10-27 20:53:15 -07:00
Greg Hogan
92014b7dbe controlsd: update is_metric live (#26228)
* fix speed increment if units changed while driving

* don't recreate params

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 9091e737c8fea44158570e6e15668e30d518d4d3
2022-10-25 15:51:39 -07:00
Shane Smiskol
6695cbf258 CAN-FD HKG: query FW versions from camera (#26063)
* add adas essential ecus

* add adas ecu and query

* add queries

* add name

* after

* presence of adas ecu

* Revert "presence of adas ecu" (POC)

This reverts commit ab88a7e7df32e1c02a175b81848bd4112b2e5c69.

* no whitelist for debugging

* Apply suggestions from code review

* add adas response

* remove adas version

* temp

* read pandaStates

* works in debug script

* only fwdCamera on tucson

* fix pandaStates reading

* fix test_startup

* fix

* simpler

* use existing socket

* pass in number of pandas

* need to create sm using outcome of fingerprinting, which uses sm

fix

* move default argument

* use sock

* always ignore

always ignore

* add canfd fingerprint test

* Update selfdrive/car/hyundai/tests/test_hyundai.py

* set
old-commit-hash: 7bf70bf7d8aaccd23ad0b0a9af8235eb939a617e
2022-10-17 23:04:06 -07:00
Shane Smiskol
4df9e825ae Use longActive for car-specific override signals (#26030)
* add override field to cruiseControl

* need to check if long *can* be active

* bump cereal to master

* revert

* better

* fix

* update refs

* rename variable
old-commit-hash: 741867813285672a723b8fc53ead65a5cbe5c6dd
2022-10-11 16:27:46 -07:00
Adeeb Shihadeh
2a25b0ab83 fixup toggle cleanup
old-commit-hash: 300577f38f963bb2854a6139ed50544d9bb493b1
2022-10-05 13:00:22 -07:00
Adeeb Shihadeh
6bf9717b04 cleanup stale longitudinal params (#25967)
old-commit-hash: 0231c4ba851819963502d0068d574a055f865692
2022-10-04 17:23:41 -07:00
Adeeb Shihadeh
e631966207 add fault for invalid safety RX checks (#25949)
* add fault for invalid safety RX checks

* just a bool

* bump panda
old-commit-hash: 3068c48224d62ea6c3070332668fedafe522f1d3
2022-10-03 16:06:29 -07:00
Lee Jong Mun
f6700cb7ba remove blank whitespace (#25921)
old-commit-hash: 7df0e3efcfd2926405f5eaa872d03a652f9c66f9
2022-09-29 13:52:41 -07:00
Adeeb Shihadeh
d53804cc85 controlsd: ignore irrelevant alerts in dashcam mode (#25875)
old-commit-hash: dcdf9a6eb4d67432ea6e2902b285cc7c97caf56c
2022-09-22 13:43:27 -07:00
Vivek Aithal
51d25b2011 Live torque (#25456)
* wip torqued

* add basic logic

* setup in manager

* check sanity and publish msg

* add first order filter to outputs

* wire up controlsd, and update gains

* rename intercept to offset

* add cloudlog, live values are not updated

* fix bugs, do not reset points for now

* fix crashes

* rename to main

* fix bugs, works offline

* fix float in cereal bug

* add latacc filter

* randomly choose points, approx for iid

* add variable decay

* local param to capnp instead of dict

* verify works in replay

* use torqued output in controlsd

* use in controlsd; use points from past routes

* controlsd bugfix

* filter before updating gains, needs to be replaced

* save all points to ensure smooth transition across routes, revert friction factor to 1.5

* add filters to prevent noisy low-speed data points; improve fit sanity

* add engaged buffer

* revert lat_acc thresh

* use paramsd realtime process config

* make latacc-to-torque generic, and overrideable

* move freq to 4Hz, avoid storing in np.array, don't publish points in the message

* float instead of np

* remove constant while storing pts

* rename slope, offset to lat_accet_factor, offset

* resolve issues

* use camelcase in all capnp params

* use camelcase everywhere

* reduce latacc threshold or sanity, add car_sane todo, save points properly

* add and check tag

* write param to disk at end of route

* remove args

* rebase op, cereal

* save on exit

* restore default handler

* cpu usage check

* add to process replay

* handle reset better, reduce unnecessary computation

* always publish raw values - useful for debug

* regen routes

* update refs

* checks on cache restore

* check tuning vals too

* clean that up

* reduce cpu usage

* reduce cpu usage by 75%

* cleanup

* optimize further

* handle reset condition better, don't put points in init, use only in corolla

* bump cereal after rebasing

* update refs

* Update common/params.cc

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

* remove unnecessary checks

* Update RELEASES.md

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 4fa62f146426f76c9c1c2867d9729b33ec612b59
2022-09-19 15:19:26 -07:00