Shane Smiskol
c6bc03311c
Car documentation: set steering torque star using car interface ( #24709 )
...
* Set good torque using torque controller tuning
* should be equal to
* save lateral accel to car params
* use maxLateralAccel
* always
* same convention
* nan will always evaluate to false
* The great good torque purge
* adjust default friction
* Add data for more cars
* adjust name
* Welcome back, guys. Only adjust good torque if maxLatAccel is set
* Update refs (1.7 is 1.7000001...)
3 years ago
HaraldSchafer
7f16e19f79
Remove laneless toggle ( #24738 )
...
* Remove laneless toggle
* Update refs
3 years ago
Willem Melching
f49a9c9fd2
less TICI when not needed ( #24698 )
...
* less TICI when not needed
* fix process replay
* move reading voltages into hw abstraction layer
* Update selfdrive/hardware/tici/hardware.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Update selfdrive/hardware/hw.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Update selfdrive/hardware/base.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* rename init function
* Update selfdrive/athena/athenad.py
Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
* Update selfdrive/boardd/boardd.cc
* Apply suggestions from code review
* Update selfdrive/thermald/thermald.py
* update ref
* fix alert width if all cameras are bad
* add ecam to test_loggerd
* bump cereal
* bump cereal
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
3 years ago
Gijs Koning
b5aed2bf67
Simulator: Speed up process by removing second camera ( #24679 )
...
* simulator: support running wide camera only
* proper frame id
* use param name that makes more sense
* do some cleanup
* Update tools/sim/bridge.py
Co-authored-by: Willem Melching <willem.melching@gmail.com>
3 years ago
HaraldSchafer
d708a134bd
Tssp prius torque control ( #24669 )
...
* use llk
* use steering sensor at low speed stil
* Try more simple
* rm prius tune
* updated ref
3 years ago
HaraldSchafer
d928972150
Rerevert torque control ( #24649 )
...
* Revert "Revert torque control (#24565 )"
This reverts commit 9f8b03753d
.
* Move tune out of car specific stuff
* Update ref commit
3 years ago
HaraldSchafer
7da48ebdba
New model: better laneless ( #24605 )
...
* Fix ping pong
* Fix hugging: e6fd3a62-aa86-46d1-a414-19137ed1babc/800
* Remove lateral toggle
* a6da6265-1952-48dd-986b-2b5996dd2642/950
* Model replay commit
* Revert "Remove lateral toggle"
This reverts commit 69e57eb7e1a72e4bad5e12bcfded6ff431a21a0e.
3 years ago
Adeeb Shihadeh
71901c94db
controlsd: ensure all system malfunction events have the right types ( #24635 )
3 years ago
HaraldSchafer
2181bbca71
Latcontrol torque: integrator need not be reset ( #24606 )
...
slow integrators need not be reset
3 years ago
Shane Smiskol
d3d210c183
controls: pressing set while gas pressed resets to vEgo ( #24100 )
...
* set while gas pressed to resume
* better order
* what was I thinking?
* Update selfdrive/controls/lib/drive_helpers.py
Co-authored-by: Gijs Koning <gijs-koning@live.nl>
* Update selfdrive/controls/lib/drive_helpers.py
Co-authored-by: Gijs Koning <gijs-koning@live.nl>
* only if under set speed
* some clean up and ciel the v_cruise_kph
* clean up
* actually floor
* Should be cruise min
* On phone, will clean up
* Think no floor is fine
* clean up and catch setCruise
* update comment and just always do rounding and clipping
update comment
* flip order
Co-authored-by: Gijs Koning <gijs-koning@live.nl>
3 years ago
HaraldSchafer
9f8b03753d
Revert torque control ( #24565 )
...
* torque reversal start
* Fix carmodel tests
* Update ref
* update ref
* Elif is better than if
3 years ago
Adeeb Shihadeh
0b1f6e3620
show which cameras are malfunctioning ( #24558 )
3 years ago
Adeeb Shihadeh
b1858df00e
improved alert verbosity ( #24434 )
...
* improved alert verbosity
* better testing script
* better description
* speed diff
* touch ups
* fix that
3 years ago
Shane Smiskol
961a121fde
Round system overheated temperature ( #24544 )
...
* Update events.py
* Apply suggestions from code review
Co-authored-by: Willem Melching <willem.melching@gmail.com>
3 years ago
ntegan1
076f0acd5f
Round model lagging frame drop percentage ( #24549 )
...
alerts: round model frame drop percentage
3 years ago
Willem Melching
31af13101b
Add unittest for alert callbacks ( #24551 )
...
add alert callback test
3 years ago
ClockeNessMnstr
a693b3a26b
LatControlTorque: clean up class variable ( #24526 )
...
* move to super
* no class variable
* there's CP
* whitespace
* drop CI from latcontrol super
* Revert "drop CI from latcontrol super"
This reverts commit 9218273060ade6431c4fc4c310b27e7e210158b9.
Co-authored-by: Shane Smiskol <shane@smiskol.com>
3 years ago
Shane Smiskol
6518ecca8f
Add desired curvature to controlsState ( #24510 )
...
* Add desired_curvature to controlsState
* clean up
* bump
* bump
* update refs from GitHub!
Co-authored-by: Jason Shuler <jshuler@gmail.com>
3 years ago
Dylan Herman
d2eef1955c
add mypy check for return-any ( #24379 )
...
* add mypy check for return-any
* remove unused import
* typing
* remove unnecessary variable typing
* cleanup
* cleanup
* bump submodules
* small fixes
* only a problem on mac
Co-authored-by: Willem Melching <willem.melching@gmail.com>
3 years ago
grekiki
17e33978cd
Mypy fixes for --check-untyped-defs ( #24372 )
...
more type fixes
3 years ago
HaraldSchafer
29afd53d88
Latcontrol torque: fix integrator induced ping pong ( #24458 )
...
* Latcontrol torque: fix integrator induced ping pong
* Reset on disengage since unwind resets anywayh
* Might be overkill
* rm whitespace
* update ref
3 years ago
Adeeb Shihadeh
1bc6f2fa7d
increase cruiseMismatch threshold ( #24428 )
3 years ago
ntegan1
9a44d4c4e0
LatControlTorque: log desired/actual lateral accel ( #24406 )
...
* log torque lateral accel
* bump cereal
* update refs
Co-authored-by: Shane Smiskol <shane@smiskol.com>
3 years ago
Adeeb Shihadeh
be748c0d6a
controlsd: better alert precedence for system malfunctions ( #24366 )
...
* controlsd: better alert precedence for system malfunctions
* down to 20
* move that
* check can flags
* update refs
* update refs
3 years ago
Adeeb Shihadeh
3abbe827de
controlsd: add lagging alert ( #24360 )
...
* controlsd: add lagging alert
* move those
* just this for now
* no camera malfunction
3 years ago
Jason Young
45f131e0e7
Accept resumeCruise for resuming prior speed setpoint ( #24348 )
...
* accept two button types for resume
* retry CI
* Update selfdrive/controls/lib/drive_helpers.py
Co-authored-by: Shane Smiskol <shane@smiskol.com>
3 years ago
Shane Smiskol
c9be2f02c3
Clean up controllers ( #24340 )
...
* clean up lat controllers
* pass CP once
* sort
3 years ago
Shane Smiskol
e834b4d9be
LatControlTorque: fix deadzone and missing steer saturated warning ( #24294 )
...
* fix steer saturated alert and deadzone
* fix and formatting
* update refs
* update refs
* not needed
* remove
3 years ago
Vivek Aithal
1a9f5d29d4
longitudinal_mpc: Compute forward distance from velocity ( #24328 )
...
* add vel integ as x in e2e long mpc
* add comment
3 years ago
Shane Smiskol
f4d1703b42
longActive: consider longitudinal control ( #24295 )
...
* consider longitudinal control
* update refs
3 years ago
Adeeb Shihadeh
70987fd9d9
more verbose debug alerts ( #24126 )
3 years ago
HaraldSchafer
fe0bcdaef6
Lateral torque-based control with roll on TSS2 corolla and TSSP rav4 ( #24260 )
...
* Initial commit
* Fix bugs
* Need more torque rate
* Cleanup cray cray control
* Write nicely
* Chiiil
* Not relevant for cray cray control
* Do some logging
* Seems like it has more torque than I thought
* Bit more feedforward
* Tune change
* Retune
* Retune
* Little more chill
* Add coroll
* Add corolla
* Give craycray a good name
* Update to proper logging
* D to the PI
* Should be in radians
* Add d
* Start oscillations
* Add D term
* Only change torque rate limits for new tune
* Add d logging
* Should be enough
* Wrong sign in D
* Downtune a little
* Needed to prevent faults
* Add lqr rav4 to tune
* Try derivative again
* Data based retune
* Data based retune
* add friction compensation
* Doesnt need too much P with friction comp
* remove lqr
* Remove kd
* Fix tests
* fix tests
* Too much error
* Get roll induced error under 1cm/deg
* Too much jitter
* Do roll comp
* Add ki
* Final update
* Update refs
* Cleanup latcontrol_torque a little more
3 years ago
Adeeb Shihadeh
5c48e7bc86
remove comma two support ( #24248 )
...
* remove comma two support
* cleanup release files
* little more
* more libs
* no more gralloc
* add snpe back
3 years ago
Adeeb Shihadeh
233a167cc9
controlsd: handle controls mismatch race ( #24245 )
...
* controlsd: handle controls mismatch race
* update refs
3 years ago
Adeeb Shihadeh
067273b8e7
controlsd: check if process should be running ( #24250 )
3 years ago
George Hotz
b9e5ad8a64
fix csid map
3 years ago
Gijs Koning
e0845752e3
Fix camera error description ( #24202 )
...
* Fix camera error message
* Shorter
3 years ago
Adeeb Shihadeh
49c2164814
add alert for CAN bus timeout ( #24162 )
...
* add alert for CAN bus timeout
* add alert
* set in interface
* cleanup
* cleanup
* add event
* fix mock
* bump
* bump opendbc
* update refs
* return reader
3 years ago
Adeeb Shihadeh
37fc027e98
controlsd: fix soft disable while overriding ( #24178 )
3 years ago
HaraldSchafer
f54e724b5d
Body cleanup + 100Hz locationd ( #24168 )
...
* use PID
* 100hz on the branch
* Better defaults
* fix int clip
* More cleanup
* Fix pid comments
* only notcar gets 100hz
* cleanup
* fix tests
* ignore
* update refs
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
3 years ago
HaraldSchafer
634f7cebef
Make PI into a PID ( #24151 )
...
* Make PI into a PID
* Cast like before
3 years ago
Adeeb Shihadeh
162e47456c
bump cereal
3 years ago
Adeeb Shihadeh
1ea66ee244
controlsd: fix long press set speed increment ( #24161 )
3 years ago
Willem Melching
fb344021aa
update camera CRC alert text ( #24156 )
3 years ago
Willem Melching
1848050fd9
add cameraFrameRate alert ( #24152 )
...
* add cameraFrameRate alert
* bump cereal
3 years ago
Willem Melching
eaa5819211
commIssueAvgFreq: separate alert for avg freq check ( #24150 )
...
* commIssueAvgFreq: separate alert for avg freq check
* bump cereal
* bump cereal
* bump cereal
* freq_ok separate from alive
* bump cereal to master
* update_ref
* fix profiler
3 years ago
George Hotz
7dd71cc63d
body: control with joystick ( #24143 )
...
* control with joystick
* slow it down
* always joystick for not car
* clean ups
* not stateful
* move submaster
* only if we aren't in test mode
* update refs
* double ki speed, update ref
* this ref
Co-authored-by: Comma Device <device@comma.ai>
3 years ago
Lukas Petersson
65fca83abe
Latency logging 2 ( #24058 )
...
* msg_order and gantt
* frameId in long/lat planner
* track frame id
* controls frame id
* graph tracked events
* graph json
* cloudlog timestamp
* c++ cloudlog
* add frame id
* bug fixes
* bug fixes
* frame id visionicp
* bug fixes and debug level
* timestamp log placement
* print timestamps in table
* translate events
* more logging
* bug fixes
* daemon boardd
* print logs with boardd
* more timestamp logs
* cleanup
* remove publish logs
* bug fix
* timestamp received
* timestamp received
* bug fixes
* use json lib
* ignore driver camera
* prep for new timestamp pipeline
* bug fix
* read new pipeline unfinnished
* read new pipeline
* bug fix
* add frame to controlsstate
* remove controlsstate
* print
* cleanup
* more cleanup + bug fix
* clock build issue
* remove unused imports
* format durations
* increase speed
* pr comments fixes
* conflicts
* set MANAGER_DAEMON for boardd
* clean script code
* bug fix + argparse
* remove rcv time
* bug fixes
* print without tabulate
* fix pre-commits
* plot gnatt
* color bug fix
* read without timestampextra
* bump panda
* mono time instead of frame id
* finnish script
* clean unused
* clean unused logging
* monotonic + json fixes
* del test
* remove whilelines
* bump laika
* cleanup
* remove deps
* logs nicer strings
* remove plotting from scirpt
* reset pipfile
* reset pipfile
* nicer strings
* bug fix
* bug fix
* pr comments cleaning
* remove plotting
* bug fix
* new demo route
* bump opendbc and panda
* cereal master
* cereal master
* script less komplex
* assertions
* matplotlib
* readme
* Update README.md
* graph html
* design fixes
* more code design
* Update common/logging_extra.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* whitespace
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Update tools/latency_logger/latency_logger.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* pr comments
* bug fix
* readme + env once
* clean swaglog
* bug fix
* Update tools/latencylogger/README.md
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* revert
* revert
* clean swaglog with error
* remove typo file
* revert graph
* cereal
* submodules
* whitespaces
* update refs
Co-authored-by: Bruce Wayne <batman@workstation-openpilot2.internal>
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
3 years ago
Shane Smiskol
d7a708d6da
tests: add overriding to state machine test ( #24131 )
...
* add overriding to state machine test
* overriding should consider soft disable too
3 years ago
Shane Smiskol
f0ac80806e
controls: add overriding to active states ( #24129 )
3 years ago