Commit Graph

315 Commits

Author SHA1 Message Date
Vivek Aithal
92448012f0 [commabody] Support both self-balancing bodies and the wheeled bodies (#29118)
* add wheeled body support

* add WheeledBody param

* make movement less jerky
2023-07-24 19:49:51 -07:00
Adeeb Shihadeh
1945c356c2 agnos 8 (#28843)
* agnos 8

* update to python 3.11.4 (#27452)

* rebase

* optional

* lower cython

* TEMP don't pull cl to use python3.11

* Revert "lower cython"

This reverts commit c5132f8a2727c212bdfc01e77aa53e50a17ead9d.

* fix cython

* remove tensorrt

* carla + opencv

* macos

* update timm and smp

* pynvc

* https

* downgrade numpy

* pin scipy

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
Co-authored-by: Yassine <yassine.y10@gmail.com>

* revert that

* fix linter

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
Co-authored-by: Yassine <yassine.y10@gmail.com>
2023-07-20 21:56:57 -07:00
Adeeb Shihadeh
83c5d11dff controlsd: write ControlsReady in thread (#29048) 2023-07-19 19:13:18 -07:00
Adeeb Shihadeh
9c307f2550 Revert "Update pycapnp and Cython (#29021)"
This reverts commit 76ef1b9b9f.
2023-07-18 18:47:35 -07:00
Maxime Desroches
76ef1b9b9f Update pycapnp and Cython (#29021)
* cython + pycapnp

* from_bytes with context

* poetry lock

* limit numpy

* force build

* Revert "force build"

This reverts commit 8c7cb00421da9d0f1b7da2c94f75e9c43733f840.

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-07-18 16:40:36 -07:00
Shane Smiskol
b5b431c12d Revert "experimental mode: gate navigate on openpilot (#28883)" (#29005)
This reverts commit f973d605b2.
2023-07-17 19:56:38 -07:00
Shane Smiskol
f973d605b2 experimental mode: gate navigate on openpilot (#28883)
* first draft copy, needs updates

* gate behind exp mode

* can be one line

* this is no longer true

* toggle isn't just e2e long now, rename

* don't enable/disable

* kinda works!

* remove old giant qstring

* comment clean up

* similar breakpoint

* more clean up

* fixup onroad

* preserve planner behavior, and we don't need to look at confirmed param if we're onroad

* update translations

* vanish translations

* use scene for op long

* lowercase!

* updated copy

* need to check longitudinal here now too

* clean up!

* here is better

* used

* no nav emoji

* don't check param if not valid

* revert this

revert this

* ed
2023-07-14 05:26:59 -07:00
Kacper Rączy
72579a0e10 controlsd: support for SIMULATION mode for process replay (#28895)
* Support for simulation flag while replay

* Update cereal

* Enable simulation for controlsd

* Update ref commit

* Update cereal
2023-07-12 10:32:02 -07:00
Adeeb Shihadeh
4662a0de82 sim: fix paramsd error (#28685) 2023-06-24 20:46:03 -07:00
Kacper Rączy
4eb3d54149 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
2023-06-12 20:13:56 -07:00
Dean Lee
4ae0378f63 automatically detect available camera streams (#27640)
* remove WideCameraOnly

* check in set_initial_state

* no block

* remove try block

* apply reviews
2023-06-12 13:40:43 -07:00
Adeeb Shihadeh
2f117e88b7 test onroad: explicit memory leak check (#28502) 2023-06-11 14:43:25 -07:00
Adeeb Shihadeh
a412cd07b1 cloudlog process not running (#28472)
* cloudlog process not running

* error
2023-06-09 15:36:15 -07:00
Harald Schäfer
dba437bc8d Remove INDI controller (#28366) 2023-06-01 21:05:49 -07:00
Adeeb Shihadeh
cd57b340c1 test_onroad: ignore vehicleModelInvalid (#28335)
* test_onroad: ignore vehicleModelInvalid

* not for all ci
2023-06-01 10:26:08 -07:00
Shane Smiskol
715f44ff45 controls: write recalibrating offroad alert once (#28312)
* only write once

* rm read

---------

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

* Update common/params.cc
2023-05-15 13:10:36 -07:00
Harald Schäfer
598343aad1 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>
2023-05-15 09:29:57 -07:00
Kacper Rączy
e08952acc8 controlsd: disable controlsdLagging event during process replay (#28177)
Disable controlsdLagging event during process replay
2023-05-12 11:33:48 -07:00
Adeeb Shihadeh
154a42dcbd gate no gps alert on valid localizer inputs (#28135) 2023-05-08 15:09:00 -07:00
Adeeb Shihadeh
c4501e4bc1 controlsd: remove procs from ignore list (#26848)
* trim list

* check for file
2023-05-07 15:43:45 -07:00
Shane Smiskol
4e951e4524 Lane Departure Warning: fix desire index bug (#28119)
don't subtract 1
2023-05-06 03:03:28 -07:00
Shane Smiskol
e729f5b763 Remove dashcam override param (#27509)
* remove dashcam override

* sort

* remove ford from segments
2023-03-06 15:36:39 -08:00
Adeeb Shihadeh
9d64fb2d1a improved fan malfunction detection (#27405) 2023-02-22 14:11:29 -08:00
Adeeb Shihadeh
5ab2d35f7b controlsd: higher default set speed in experimental mode (#27279)
* controlsd: higher default set speed in experimental mode

* update tests

* update tests
2023-02-09 19:27:51 -08:00
Adeeb Shihadeh
7978901101 controlsd: revert CAN timeout threshold (#27275)
* controlsd: revert CAN timeout threshold

* dt_ctrl doesn't make sense there
2023-02-09 18:54:17 -08:00
Shane Smiskol
8f5057ff2d 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
2023-02-09 15:37:39 -08:00
Adeeb Shihadeh
b3b35b23fa controlsd: don't show steer saturated if recently overriding (#27191)
* controlsd: don't show steer saturated if recently overriding

* 2s

* update refs
2023-02-02 17:12:13 -08:00
Shane Smiskol
ad5b3ea410 controls: add curvature to actuators (#27108)
* Add curvature to actuators

* Use it in CC

* revert ford stuff

* Update ref_commit
2023-01-26 20:02:23 -08:00
Adeeb Shihadeh
c408b7e306 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
2023-01-19 23:06:18 -08:00
Shane Smiskol
2fd48e26a3 Deprecate canMonoTimes (#26992)
* not used anywhere

* bump cereal

* also here
2023-01-17 22:00:01 -08:00
Jason Young
cb88b3ed65 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>
2023-01-10 20:51:10 -08:00
Shane Smiskol
f0d0d99981 process replay: test body with joystick mode (#26916)
* no need to check sm

* fix

* Update ref_commit

* revert
2023-01-10 19:59:39 -08:00
Adeeb Shihadeh
65414bcd8d controlsd: remove laikad from ignored process list 2022-12-31 11:30:28 -08:00
Adeeb Shihadeh
151e0d8c39 controlsd: add blinkers to carControl (#26773)
* controlsd: add blinkers to carControl

* not actuators

* update refs
2022-12-12 14:03:09 -08:00
Shane Smiskol
c1b3d696bc controlsd: set steer_limited for angle cars (#26748)
* Set steer limited for angle cars

* closer to torque threshold
2022-12-09 21:43:27 -08:00
Shane Smiskol
d97336d532 LatControl: remove duplicate logic for saturation (#26725)
this is already checked
2022-12-08 03:01:57 -08:00
Shane Smiskol
41610fe8ae controls: remove noTarget event (#26632)
remove noTarget alert
2022-11-29 23:12:58 -08:00
Shane Smiskol
dbe512d167 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>
2022-11-29 17:34:10 -08:00
Shane Smiskol
8ad8d4e1c2 controls: preEnabled doesn't consider noEntry (#26627)
preEnabled doesn't consider noEntry
2022-11-29 13:11:03 -08:00
Adeeb Shihadeh
7361d1a11b process replay: support old routes with no peripheralState 2022-11-22 11:46:28 -08:00
Adeeb Shihadeh
65fa87a969 cleanup panda types everywhere (#26574)
* cleanup panda types everywhere

* one more
2022-11-21 23:43:24 -08:00
Adeeb Shihadeh
94aa39bdd4 enable experimental longitudinal control on devel (#26544) 2022-11-21 16:18:51 -08:00
Adeeb Shihadeh
9c96b21367 publish experimental mode state (#26512)
* publish experimental mode state

* remove that
2022-11-15 17:18:13 -08:00
Shane Smiskol
811c096e64 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
2022-11-11 18:53:48 -08:00
Shane Smiskol
74b6e22a7d 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
2022-11-10 19:06:31 -08:00
Adeeb Shihadeh
9a3f468051 experimental mode (#26416)
* experimental mode

* rename param

* red lights
2022-11-08 14:45:01 -08:00
Adeeb Shihadeh
6698cd4829 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>
2022-10-27 20:53:15 -07:00