Adeeb Shihadeh
2cf71c7751
add file to disable lte while onroad ( #20163 )
...
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: f7019a6a2c
4 years ago
robbederks
2db03fdbe2
Turn up brightness a little when UI crashes ( #20142 )
...
* implement ui check and brightness set in thermald
* fix bugs
* only set once
* duh
* forgot factor for tici
old-commit-hash: 4c243da019
4 years ago
robbederks
0f73681f8d
Fix tici powerdown and add support for forcing ( #20132 )
...
* also shutdown on tici
* force powerdown
* bump panda
* abstract out shutdown and thermal config
* add comment on tici shutdown
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 8ad1c793d1
4 years ago
Adeeb Shihadeh
35f9355fcc
fix apk after cereal cleanup ( #20098 )
...
* actually a percent
* update apk
* update refs
old-commit-hash: f28673e8b5
4 years ago
Adeeb Shihadeh
05eb44115e
cereal cleanup part 2 ( #20092 )
...
* car stuff
* thermal
* Revert "car stuff"
This reverts commit 77fd1c65eb
.
* panda state
* camera stuff
* start deg
* most is building
* builds
* planner + controls run
* fix up paramsd
* cleanup
* process replay passes
* fix webcam build
* camerad
* no more frame
* thermald
* ui
* paramsd
* camera replay
* fix long tests
* fix camerad tests
* maxSteeringAngle
* bump cereal
* more frame
* cereal master
old-commit-hash: 312b681a46
4 years ago
Adeeb Shihadeh
829ab2dff3
fanSpeedRpmDesired -> fanSpeedPercentDesired
...
old-commit-hash: 4ace476f14
4 years ago
Adeeb Shihadeh
af95c26b26
remove gpsd ( #20027 )
...
old-commit-hash: fe7f3f0ec6
4 years ago
Adeeb Shihadeh
966945880b
Cereal cleanup ( #20003 )
...
* start cleanup
* fan speed
* cleanup dm
* fix cereal
* hwType -> pandaType
* update refs
* update refs
* bump cereal
* freeSpacePercent
* cereal master
old-commit-hash: 000bd226aa
4 years ago
Adeeb Shihadeh
02788f3a0e
skip dashcam3 build for now
...
old-commit-hash: 449e60cb82
4 years ago
Adeeb Shihadeh
6a01983000
few fixes from LGTM
...
old-commit-hash: 758794dec5
4 years ago
Adeeb Shihadeh
5bbe4f3d52
manager tests + make all processes exit cleanly ( #19595 )
...
* manager tests
* logcatd exits cleanly
* sigint
* boardd
* multiple dbus connections hangs for some reason
* clocksd proclogd
* network type from thermal
* fix tests
* fix android logcatd
* fix mac
* fix mac proclogd
* move on device athena tests
* build first
* build first
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ffa7e0cbdb
4 years ago
Adeeb Shihadeh
91fc6d21a0
don't go onroad if internet needed ( #19572 )
...
old-commit-hash: 41b31a1756
4 years ago
Adeeb Shihadeh
b950cab874
HW abstraction layer ( #19530 )
...
* start hw refactor
* move that
* pins
* put that back
old-commit-hash: 8674b023ba
4 years ago
robbederks
3209380a23
Move thermald hardware calls into HW abstraction layer ( #2630 )
...
* abstracted away hardware calls
* oopsie
* remove bugs
* remove bugs #2
* fix unit test
* removed print
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e64484aecd
4 years ago
George Hotz
6b32f79ae6
New settings for governors, +30% memory bandwidth ( #2590 )
...
* new settings for governors, +30% memory bandwidth
* CPU waste is better
* warm up frame_drop
* optional CORE arg for rtshield
* back off priorities of processes not critical to driving
* if it doesn't drive, it's not realtime
* err, resource. this should have been included
* reverse order to not spike
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 917eff8c30
5 years ago
Willem Melching
67249ef8aa
Stricter check on date for RTC time sync ( #2582 )
...
* More strict check on time
* Also update thermald
old-commit-hash: ff65dc1401
5 years ago
Adeeb Shihadeh
46519c7eb4
don't show unspported alert with no health packet
...
old-commit-hash: 30112f9add
5 years ago
Adeeb Shihadeh
f25cec394e
grey panda is unsupported ( #2458 )
...
old-commit-hash: 47c21f10f5
5 years ago
Willem Melching
fb8d03d9e1
only log startup blocked on conditions changed ( #2382 )
...
old-commit-hash: 77d9a68f5d
5 years ago
Adeeb Shihadeh
4af9ea276b
prevent snapshot while onroad ( #2366 )
...
* prevent snapshot while onroad
* fix offroad check
old-commit-hash: 4c4b53beda
5 years ago
Willem Melching
2fad3df58a
Add logs for why start was blocked ( #2312 ) ( #2346 )
...
* Add logs for why start was blocked
* adding wrapper and prev offroad alert state
* Small updates and fixes
Co-authored-by: Willem Melching <willem.melching@gmail.com>
* Moving to dict of startup conditions
* Fixing dict access
* add type for dict
* remove global
* Use cloudlog event
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Fix driverview and snapshot start
* not always log
* Cleanup update alerts
* Only ignition needs init
* Fix typing
Co-authored-by: Logan Lasiter <lasiterlogan@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: a1fd08c1e1
5 years ago
Adeeb Shihadeh
8eeaea6cce
fix not going onroad on clean dashcam install ( #2280 )
...
old-commit-hash: 81763a18b5
5 years ago
vanillagorillaa
bb9f55844f
Typo: thershold -> threshold ( #2230 )
...
old-commit-hash: c35af4b619
5 years ago
Willem Melching
22295ce570
Wait 5 minutes after offroad before changing thresholds ( #2113 )
...
old-commit-hash: 4891d3787a
5 years ago
Willem Melching
16fe1bb2ad
Hardware abstraction class ( #2080 )
...
* hardware abstraction class
* De Morgan
* Rename pc hardware class
* Fix sound card in controlsd
* Pc get sim info
* fix hardware in test
* two more
* No more random imei on android
* no randomness on android
* Need to return something that looks like imei for registration to work
* Return proper network strength
* Unused import
* Bug fixes + gpsd is only android
old-commit-hash: c7152d5419
5 years ago
Willem Melching
22e0a2474a
Pandad: turn on panda power ( #2073 )
...
* pandad turn on panda power
* Add gpio.py
* needs bytes
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 6bb2630eba
5 years ago
Willem Melching
cb21237c26
Thermald cleanup ( #2049 )
...
* Thermald cleanup
* no Temps, fix ui formatter
* Fix scaling
* Don't touch that
* typo
* Fix fan control
* Fix if
* change cereal
* Update comment
old-commit-hash: 9eb3d89ca2
5 years ago
Adeeb Shihadeh
a219cc17e9
clip carBatteryCapacity to 0
...
old-commit-hash: 2476ea213c
5 years ago
Adeeb Shihadeh
00e61c5f1e
add a sleep after cloudlog
...
old-commit-hash: 266ef886dd
5 years ago
Adeeb Shihadeh
83faaf2906
log when thermald shuts down device
...
old-commit-hash: a46d2f5b17
5 years ago
robbederks
bcaf2a36af
Car power integrator + power management refactor ( #1994 )
...
* wip, ready to test
* tweaks
* fix
* fix
* fix power monitoring
* fix param writing
* no forced charging on high voltage
* reset capacity on reboot
* don't shutdown unless started seen
* fix unused var warning
* fix linting errors
* time is always valid
* QCOM gate
* Local params
* decimate saving
* fix linting
* rename param
* Log car battery capacity
* fix put_nonblocking
* Added some unit tests
* Add test to docker test list
* fix precommit
* cleanup
* run tests in CI
* bump cereal
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 7555379b2b
5 years ago
Willem Melching
c52e3fe331
Force battery temperature to 0 on comma two
...
old-commit-hash: e909fddac0
5 years ago
Adeeb Shihadeh
017b084154
Alert when updated consistently fails ( #2013 )
...
* alert when update fails more than 10 times
* bring over offroad alert refactor from other branch
* and we have tests
* use it in snapshot
* bump apk
* don't show exceptions on release branches
* only write when changed
* why does delete use so much cpu
* clean that up
* little more
old-commit-hash: 8e63f06540
5 years ago
Willem Melching
6242e8351f
Lower max CPU temp to go onroad to 70 C
...
old-commit-hash: 10bfbaff8e
5 years ago
robbederks
4b2775add9
Dos ( #1795 )
...
old-commit-hash: df86c476c7
5 years ago
Willem Melching
f3b4091dfd
lower temperatures slightly until UI/modeld GPU interaction is improved
...
old-commit-hash: 3c5c8c2508
5 years ago
Willem Melching
4d4c3f021b
Cool down device before going onroad if CPU temp over 75 C ( #1688 )
...
* Block going onroad when temperatures are too high
* add relay check
old-commit-hash: 955d2aefdd
5 years ago
Willem Melching
f7308cca9e
Increase temperature range
...
old-commit-hash: c82fda995b
5 years ago
Adeeb
9027018368
Update Flake8 config ( #1624 )
...
* update flake8 checks
* add E502
* no whitespace warnings
* fix violations
* no W391
Co-authored-by: Jason Young <jason@comma.ai>
old-commit-hash: 367155168a
5 years ago
Adeeb
5e857427ba
Enable more flake8 checks ( #1602 )
...
* enable some more flake8 checks
* some more quick ones
* bump opendbc
* e401
* e711 e712
* e115 e116
* e222
* e301
* remove that
* e129
* e701 e702
* e125 e131
* e227
* e306
* e262
* W503
* e713
* e704
* e731
* bump opendbc
* fix some e722
old-commit-hash: d9bf9f0a40
5 years ago
William
798e1a8908
Shebang Fix ( #1477 )
...
* Shebang Fix
Per George's "I'd merge a PR replacing the 4 python3.7 with python3" on Discord. George updated Python to 3.8.2 for webcam tools, which broke manager from launching. Instead of chasing the exact version, it seems more reasonable to fall back to 3.
* More Python3.7's
old-commit-hash: aef01f4bdf
5 years ago
Willem Melching
a4e1d28f7a
Wait 5s before going offroad after panda disconnect ( #1406 )
...
* wait 10s before going offroad after panda disconnect
* Add cloudlog
* Typo
* 5 s
old-commit-hash: 2ea494ed52
5 years ago
ZwX1616
f90b956f47
RHD support for driver monitoring ( #1299 )
...
old-commit-hash: 133b1a20b4
5 years ago
Willem Melching
907a97f1ee
Don't use battery temperature to determine fan type ( #1331 )
...
* Don't use battery temperature to determine fan type
* Add cloudlog
* Init is_uno
old-commit-hash: 017b1f6770
5 years ago
Willem Melching
bea4addcc2
Boardd should always send health, even with no panda ( #1322 )
...
* dont go offroad when health times out
* always send health packet
* Handle disconnect in thermal
* Handle unplug in power monitoring
* Small cleanup
* Remove copied code
* Add mutex
* Can just use infinite timeout. It will still return if not connected
old-commit-hash: b16e11cde5
5 years ago
Willem Melching
3e9de54726
add low pass filter on cpu temp ( #1305 )
...
old-commit-hash: b497a01417
5 years ago
eFini
7d25d238a3
use put_nonblocking when possible ( #1288 )
...
* use put_nonblocking when possible
* revert uneeded changes
old-commit-hash: 106be23c4e
5 years ago
Andy
a1c67df499
Replace usages of datetime.now() with datetime.utcnow() ( #1267 )
...
old-commit-hash: 54f34abdb3
5 years ago
robbederks
4b7588e9ab
Power monitoring fix ( #1269 )
...
* Release lock after exceptions
* No pulsed measurement on uno
* Fix last_measurement_time=None while integrating when going offroad
* Also clear next pulsed measurement time
* Move around locks
* Locks are good now?
old-commit-hash: 905f6b1b77
5 years ago
Willem Melching
6c6df5486a
Small thermald cleanup
...
old-commit-hash: 65ad31a7e4
5 years ago