Shane Smiskol
2624b4cb27
controlsState: add override state with grey border ( #24030 )
...
* Squashed commit of the following:
commit f0cf822666fb8f78a486d721fe474e8f37da6970
Author: Shane Smiskol <shane@smiskol.com>
Date: Mon Apr 4 17:24:00 2022 -0700
clean up
commit 4364bdb79b1b055daa7542267eb3f37740723fd4
Merge: d448664cf d4f330447
Author: Shane Smiskol <shane@smiskol.com>
Date: Mon Apr 4 17:21:41 2022 -0700
Merge remote-tracking branch 'upstream/master' into override-alert-type
commit d448664cfdacbdfd3c99f8e12d96f2ba7b24abb5
Author: Shane Smiskol <shane@smiskol.com>
Date: Mon Apr 4 17:20:44 2022 -0700
revert tests changes
commit 40ab8c2d912ccbeb12286ca272e3737656388ac8
Author: Shane Smiskol <shane@smiskol.com>
Date: Fri Apr 1 19:03:39 2022 -0700
sort
commit 5abd4448b420e91eda57e3c4edb6794893dab42f
Author: Shane Smiskol <shane@smiskol.com>
Date: Fri Apr 1 19:02:59 2022 -0700
bump cereal
commit fcffc42082b1460676554924461c63c881c31501
Author: Shane Smiskol <shane@smiskol.com>
Date: Fri Apr 1 19:02:25 2022 -0700
pass in CI
commit f47dd63bc597e18c05d2d9365eb996c13ec70c17
Author: Shane Smiskol <shane@smiskol.com>
Date: Fri Apr 1 12:06:00 2022 -0700
update refs
commit f1c54e16ccfa37f770b422ad77e2fc940f8ea7f2
Author: Shane Smiskol <shane@smiskol.com>
Date: Fri Apr 1 11:51:04 2022 -0700
move to tuple
commit bebafc6ed223a67e59daa7c2105f8cb28c4f9c5f
Merge: b0578dc54 0b9790dd2
Author: Shane Smiskol <shane@smiskol.com>
Date: Fri Apr 1 11:45:19 2022 -0700
Merge remote-tracking branch 'upstream/master' into override-alert-type
commit b0578dc54f9d943e0ab2182b0b79d076129468a7
Author: Shane Smiskol <shane@smiskol.com>
Date: Fri Apr 1 11:44:37 2022 -0700
make global variables of states in controlsd
make global variables of states in controlsd
commit 32b7e293e88f001ef44c9197dfc68b7240ae129e
Author: Shane Smiskol <shane@smiskol.com>
Date: Thu Mar 31 23:41:41 2022 -0700
test individual event types
fix
commit 1fbf66fc8ba7e5a0a25d34a1f30a2cb3ccb86a02
Author: Shane Smiskol <shane@smiskol.com>
Date: Thu Mar 31 23:03:09 2022 -0700
clean up
test state machine
test state machine
commit 33856bef69b1c2e637e58032b1358f275a6cd6bb
Author: Shane Smiskol <shane@smiskol.com>
Date: Thu Mar 31 22:59:05 2022 -0700
clean up
commit d64cd664980edd6cff0038379a5c3965409ebda0
Author: Shane Smiskol <shane@smiskol.com>
Date: Thu Mar 31 22:40:25 2022 -0700
test few more things
commit 72a3e57a9a8813b348a8ae9648e283983f7ba56b
Author: Shane Smiskol <shane@smiskol.com>
Date: Thu Mar 31 22:17:22 2022 -0700
default transitions
commit ce0051fde8296dab6417d9ef175fdf039d09a8f3
Author: Shane Smiskol <shane@smiskol.com>
Date: Thu Mar 31 22:05:21 2022 -0700
remove
commit 56de4f8a87e9b96dd99739772da1dddaa873ceb1
Author: Shane Smiskol <shane@smiskol.com>
Date: Thu Mar 31 22:05:15 2022 -0700
this way we can test any combo of event types
commit bdfd47738e5a3c0e22817047cc2d804ca0fe2785
Author: Shane Smiskol <shane@smiskol.com>
Date: Thu Mar 31 21:36:33 2022 -0700
add some state machine tests
commit 81a72d1773b204cc984fb0631ac30fb00555962d
Author: Shane Smiskol <shane@smiskol.com>
Date: Thu Mar 31 17:43:03 2022 -0700
update refs
commit 00018708714b156c29f963011a6193fa9028b308
Merge: fa97ffa67 d932cb067
Author: Shane Smiskol <shane@smiskol.com>
Date: Thu Mar 31 17:31:51 2022 -0700
Merge remote-tracking branch 'upstream/master' into override-alert-type
commit fa97ffa67eec1556b2b255ee68bdf46fc101596e
Author: Shane Smiskol <shane@smiskol.com>
Date: Thu Mar 31 17:30:23 2022 -0700
revert todo
commit b0dcd49b0b0254a4754ddc5ea61618246686327d
Author: Shane Smiskol <shane@smiskol.com>
Date: Wed Mar 30 00:07:11 2022 -0700
move back
commit ef12853ceed8c8aa37b16af406e510d172269226
Author: Shane Smiskol <shane@smiskol.com>
Date: Tue Mar 29 23:09:05 2022 -0700
bump cereal
commit 2658f557e2fac79563b74385b8676a659f31f7dc
Author: Shane Smiskol <shane@smiskol.com>
Date: Mon Mar 28 20:54:48 2022 -0700
fix
commit ed2db85acd34cd78017c6bae0db5df3356c2c19c
Author: Shane Smiskol <shane@smiskol.com>
Date: Mon Mar 28 20:47:18 2022 -0700
add alert to pass unit tests
commit dc970f55f5f69ecbca7095099bd50ff21ba02610
Author: Shane Smiskol <shane@smiskol.com>
Date: Mon Mar 28 20:26:18 2022 -0700
bump
commit e9a3c73d61590120cc5e5c16a3d1a0bbbd51e19d
Author: Shane Smiskol <shane@smiskol.com>
Date: Mon Mar 28 20:25:33 2022 -0700
normal
commit 4ecfbf18d5e6436f9be6bd3b1c4ea3bca8c1a572
Merge: 47e0ad3cb 8e34ddc70
Author: Shane Smiskol <shane@smiskol.com>
Date: Mon Mar 28 20:14:08 2022 -0700
Merge remote-tracking branch 'upstream/master' into override-alert-type
commit 47e0ad3cbe4fee81b7a6e4c284973c25b144ddf7
Author: Shane Smiskol <shane@smiskol.com>
Date: Thu Mar 24 10:50:34 2022 -0700
only rename
commit 8c46435630c1bfba5c5b911bc1d3c8d4b24c9fdd
Author: Shane Smiskol <shane@smiskol.com>
Date: Thu Mar 24 10:49:26 2022 -0700
bump cereal
commit eb48440843d6a4b09e1f34d8eb2ed4c7f7a8274c
Author: Shane Smiskol <shane@smiskol.com>
Date: Thu Mar 24 10:29:49 2022 -0700
fix
commit 231afe3e6f211e866216a557f2ec2787760d2607
Author: Shane Smiskol <shane@smiskol.com>
Date: Wed Mar 23 23:57:40 2022 -0700
clean up
commit 7a3f49db1bdb58c8ef59a9376306ef1157ba2e57
Author: Shane Smiskol <shane@smiskol.com>
Date: Wed Mar 23 23:57:10 2022 -0700
fix logic
commit eab4f8b46e6c22033ac4ae433b6ba94e6a4ff322
Author: Shane Smiskol <shane@smiskol.com>
Date: Wed Mar 23 21:05:05 2022 -0700
clean up
commit 51e189a27268364e051c6d9231ae6f181ec7f95b
Author: Shane Smiskol <shane@smiskol.com>
Date: Wed Mar 23 20:51:23 2022 -0700
override state testing
* clean up
3 years ago
Shane Smiskol
d4f330447a
controlsd: add state machine tests ( #24107 )
...
* Handle NO_ENTRY in PRE_ENABLED
* add test
* add preEnabled NO_ENTRY test
* stash
* test soft disable
* tuples
* remove overriding until it's merged in
* use Events class
* fix tests and split out
* don't rely on controlsd's counter
3 years ago
Adeeb Shihadeh
49498aa7b5
controlsd: no cruise speed while main off ( #24052 )
...
* controlsd: no cruise speed while main off
* probably more accurate
* update refs
3 years ago
Shane Smiskol
e91613bc62
update unsafeMode to alternativeExperience ( #23995 )
...
* update unsafeMode to alternativeExperience
* fix
* fix
* bump submodules
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
3 years ago
HaraldSchafer
dcece099ff
Add angular rates carcontroller packet ( #23980 )
...
* Controlsd: give carcontroller angular rates
* Update cereal
* Needs to be list
* Update refs
3 years ago
Shane Smiskol
5fe00fb773
Move gas/brake pedal event logic to controlsd ( #23850 )
...
* move some state machine logic to controlsd
move some state machine logic to controlsd
* same order
same order
* move unsafeMode up
* disable at standstill
* save last CS
save last CS
* do we need to copy at all?
* don't copy
* rename
* Update selfdrive/controls/controlsd.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Revert "Update selfdrive/controls/controlsd.py"
This reverts commit 10bb51a0f0
.
* Update refs
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
3 years ago
Adeeb Shihadeh
5c3f3e44bc
break up selfdrive.config ( #23959 )
...
* break up selfdrive.config
* add to release files
* fix import order
3 years ago
Shane Smiskol
629399a449
carControl: add long and lat active fields ( #23859 )
...
* proof of concept
* actuators packet describes which actuators are active
* bump cereal
* fixes
* not needed for this PR
* Do Toyota
* add back controlsState.active
* bump cereal
* rest of cars
* in actuators
* add active back
* which
* use controlsState.active for now
* will make an issue
* Update selfdrive/controls/controlsd.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* move local lat_active checks into CC.latActive
* remove redundant checks
* move comment
move comment
* fix joystick mode
* get enabled from carcontrol
* do standstill check in controlsd
* make sure we consider the gas press case for GM
* use CC.actuators
* fix
* capitalization
* Bump cereal
Bump cereal
* make intermediate actuators
* similar convention to before
* clean that up
* update refs
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
3 years ago
Willem Melching
37a8b09cad
lower model FCW + stock longitudinal threshold to -1.25m/s^2 ( #23915 )
3 years ago
Shane Smiskol
274885fc4d
controlsd: fix vCruise jumping on pcmCruise cars ( #23388 )
...
* clean up v_cruise_kph
fix
fix
* Revert "clean up v_cruise_kph"
This reverts commit 211b5c3dbe073414ef5c39b19d6d2c6e8de2cf0b.
* always update vCruise and don't init if pcmCruise
* revert change
* update refs
3 years ago
Adeeb Shihadeh
87849f93b1
better steer fault names ( #23890 )
...
* better steer fault names
* bump cereal
3 years ago
Shane Smiskol
2c7845fce0
Longitudinal control: interpolate longitudinal plan ( #23787 )
...
* interpolate longitudinal actuator delay
rename
* formatting
* interpolate v_target most importantly!
* fix interpolation and rename
* nicer setup
* left in from testing
* update refs
3 years ago
Adeeb Shihadeh
602f92fc0e
controlsd: only add startup event until initialized ( #23671 )
...
* controlsd: only add startup event until initialized
* update refs
* update again
3 years ago
Shane Smiskol
9de8f8cd8c
base LatControl class ( #21967 )
...
* base LatControl class, move sat check out of pid.py
clean up
clean up
* fix
* global variable for min control speed
* nicer name
* unify latcontrol class init arguments
* add to release files
* saturated if close to limit
* move angle mode saturation checks into class
* check_saturation function takes in current saturated status
undo
* apply latcontrol_angle's active checking to all controllers
* clean up
* move those back
* make abstract baseclass
* add test for saturation
* keep clip
* update ref
* fix static analysis
Co-authored-by: Willem Melching <willem.melching@gmail.com>
3 years ago
Shane Smiskol
31d147dca2
controlsd: verify unsafe mode consistency ( #23563 )
...
* add unsafe mode check to controlsd
bump submodules
forgot to add to health_t struct
bump
ahh forgot to set it!
bump
bump
clean up
clean up
bump
* fix ordering
* move to end
* unsigned
Co-authored-by: Willem Melching <willem.melching@gmail.com>
3 years ago
Adeeb Shihadeh
e50efd7671
controlsd: remove redundant condition
3 years ago
Adeeb Shihadeh
3e9cb7fa12
remove community features toggle ( #23214 )
...
* remove community features toggle
* bump cereal
* little more
* update refs
3 years ago
Willem Melching
d3d10e014a
Ensure controlsd can engage again in process replay ( #23556 )
...
* hacks to make process replay engage again
* dont change that
* enable engagement check again
* chmod +x
* first working regen
* proper logMonoTime
* fix video framerate consistency
* mpc is valid again
* proper alive checks
* revert loggerd change
* ensure engaged in regen, fix managerState, peripheralState
* ubloxRaw is unused
* add submaster config for gm
* regen all services we can run without HW
* fix loggerd
* loggerd: matroska without the extension
* update ref
3 years ago
Adeeb Shihadeh
59894a6666
clear no entry alerts if engaged ( #23559 )
...
* clear no entry alerts if engaged
* fix test
3 years ago
Dean Lee
5cd103c3d4
controlsd: remove extra space ( #23553 )
3 years ago
Adeeb Shihadeh
c6b892fe58
shutdownd is non essential
3 years ago
Dean Lee
fd042a5924
controlsd: cleanup parsing android log ( #23421 )
...
* cleanup parse android log
* global CSID_MAP
* use generator express
* cleanup
* no walrus
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
3 years ago
Dean Lee
48b6dfa15d
controlsd: check self.enabled out of the any() ( #23507 )
3 years ago
Dean Lee
a186bcc9f1
cleanup iterate keys in dictionaries ( #23497 )
3 years ago
Robbe Derks
1a54d7f6ae
Ignore statsd for running process check ( #23483 )
3 years ago
Dean Lee
67af095692
controlsd: check all_valid only if not initialized ( #23437 )
...
* check all valid in if statement
* apply review
3 years ago
Dean Lee
2d08f8b318
controlsd: save lat_plan.dPathPoints to local variable ( #23462 )
3 years ago
Dean Lee
b2beb5e6ba
controls: check contents in tuple instead of list ( #23463 )
3 years ago
Dean Lee
09a835916b
optimize alertmanager ( #23433 )
3 years ago
Dean Lee
e0338fd77b
controlsd/state_transition: remove redundant check in elif ( #23428 )
3 years ago
Dean Lee
0357cf2af0
controlsd: remove duplicate event relayMalfunction ( #23392 )
3 years ago
Dean Lee
960e0cf6a7
controlsd/publish_logs: follow capnp best practices ( #23372 )
...
* follow follow capnp best practices
* cleanup
3 years ago
Adeeb Shihadeh
1e41f4723b
CAN receive error is a comm issue ( #23362 )
3 years ago
Ewout ter Hoeven
332f568a82
Pyupgrade 3.6: Update syntax with Python 3.6+ features ( #23305 )
...
Updated Python code with Python 3.6+ features:
- utf-8 encoding is now the default (PEP 3120)
- Replace list comprehensions by Generator Expressions (PEP 289)
- Replace yield loop by yield from (PEP 380)
- Remove the (object) subclass when defining a class
- Replace the IOError alias by OSError (PEP 3151)
- Define sets with curly braces {} instead of set()
- Remove "r" parameter from open function, which is default
Co-Authored-By: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com>
Co-Authored-By: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com>
Co-authored-by: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com>
Co-authored-by: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com>
3 years ago
HaraldSchafer
cf466222f6
Road Roll Compensation Rebased ( #23251 )
...
* first commit
* update refs
3 years ago
Willem Melching
4f1eb4278a
Log actuators after applying rate limits in CarController ( #23230 )
...
* return actuators from carcontroller
* log it
* pass to latcontrol
* chrysler
* gm
* honda
* more brands
* rest of the brands
* gm cleanup
* hyundai cleanup
* update ref
* rename field
* fix subaru
* add types
* more subaru fixes #23240
* consistent whitespace
* bump cereal
3 years ago
Adeeb Shihadeh
7f618b16bf
increase cruise mismatch threshold
3 years ago
Adeeb Shihadeh
8068df0b2a
alerts: escalate soft disable alert near disengagement ( #23198 )
...
* alerts: escalate soft disable alert if resulted in disengagement
* show 0.5s before disengagement
3 years ago
Adeeb Shihadeh
07b971d473
alerts: handle min duration properly ( #23191 )
...
* alerts: handle min duration properly
* add active
* tests
* cleanup test
* update refs
3 years ago
HaraldSchafer
8f3bc4872f
Less sensitive torque saturated warning ( #23003 )
...
* Less sensetive torque saturated warning
* better comment
3 years ago
Adeeb Shihadeh
2a72e2a514
add offroad alerts for car unrecognized ( #22934 )
...
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Chris McCammon <chrismccammon123@gmail.com>
3 years ago
Adeeb Shihadeh
d8a5c415cd
Revert "add offroad alerts for car unrecognized"
...
This reverts commit fb1e8ce086
.
3 years ago
Adeeb Shihadeh
fb1e8ce086
add offroad alerts for car unrecognized
3 years ago
Adeeb Shihadeh
833399e941
alerts: make soft disables an orange alert ( #22925 )
3 years ago
Adeeb Shihadeh
db92006dc0
CI: skip cruise mismatch check for can replays
4 years ago
HaraldSchafer
a04114f68c
Give car interface roll and pitch ( #22891 )
...
* Give car interface roll and pitch
* fixup
* whitespace
4 years ago
Adeeb Shihadeh
035bc0c20f
controlsd: alert on cruise mismatch for >1s ( #22841 )
...
* controlsd: alert on cruise mismatch for >1s
* bump cereal
* update refs
* bump allowed soundd cpu
* bump cereal
4 years ago
Adeeb Shihadeh
385f3c5387
controls: don't wind up while EPS is faulted or below min steer speed ( #22739 )
...
* controlsd: don't wind up while EPS is faulted
* also check if above min steer speed
* car params
4 years ago
Robbe Derks
585c16cd2a
Multipanda support ( #22402 )
...
* squash all PR commits for easy rebase
* merged all panda rx can into one message
* fix buffers in can_send
* more cleanup and minor fixes
* fix even more stuff
* fix non-allocated send buffer
* make connecting more robust
* fix bus offset
* fix controls_mismatch?
* simplify mismatch check
* C++ style struct
* fix connect loop
* update ref
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago
Adeeb Shihadeh
f2b48a1803
always show lane lines on HUD ( #22693 )
...
* always show lane lines on HUD
* update refs
4 years ago