Commit Graph

76 Commits

Author SHA1 Message Date
Willem Melching 2363927341 Change wwan power command (#20874)
old-commit-hash: 4ca0edda97
2021-05-11 16:58:45 +02:00
Adeeb Shihadeh 88434dc9e4 add CLEAR_ON_IGNITION param type (#20810)
old-commit-hash: b4447993c1
2021-05-04 11:32:40 -07:00
Adeeb Shihadeh 9aa9d33f92 rate limit offroad mem logging
old-commit-hash: 8fb26b95e9
2021-04-28 00:09:03 -07:00
Adeeb Shihadeh 13dbb65b98 clear scons cache more aggressively
old-commit-hash: 42af09b15b
2021-04-27 19:16:03 -07:00
Adeeb Shihadeh 8708cf5577 make memory usage cloudlog an event
old-commit-hash: 83e8ccb4ef
2021-04-27 11:27:43 -07:00
Adeeb Shihadeh ea01368644 log for high offroad memory usage
old-commit-hash: 4f02b4386c
2021-04-25 17:48:37 -07:00
George Hotz 26c0d9dd24 log /sys/kernel/debug/regulator/pm8994_s11/voltage (#20727)
old-commit-hash: b88aa6b57f
2021-04-22 12:02:12 -07:00
robbederks 27f3e0f801 add lower limit to prevent triggering on power loss (#20720)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 13a6e3c68f
2021-04-21 13:15:44 +02:00
Adeeb Shihadeh e5be410cd5 lte toggle (#20683)
old-commit-hash: 2eac604993
2021-04-14 21:19:06 -07:00
Adeeb Shihadeh 4fef6d01a6 tici power saving (#20644)
* start power saving

* set power save in thermald

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b0bd123445
2021-04-12 01:40:58 -07:00
Adeeb Shihadeh 18a27c6b43 reduce STATUS_PACKET logging frequency to every 10 minutes
old-commit-hash: 14295e9203
2021-04-08 22:50:11 -07:00
Willem Melching 8f4a445171 add putBool/getBool wrappers to cython params class (#20611)
* add putBool/getBool wrappers to cython class

* use new API

* some more puts

* fix mockparams arguments

* add get_bool to MockParams

* typo
old-commit-hash: ae094042ad
2021-04-07 15:36:37 +02:00
Willem Melching a77f55fad0 Remove oneplus fan support (#20520)
old-commit-hash: 2a5d8b6f74
2021-03-29 14:37:52 -07:00
Willem Melching cd4b0b7e7a CPR3 logging only on C2
old-commit-hash: 611446edd4
2021-03-29 12:01:28 +02:00
Adeeb Shihadeh 4325858931 log cpr voltages (#20519)
old-commit-hash: f89818b2d9
2021-03-28 21:22:31 -07:00
Greg Hogan 183d9f98a1 log to file and send through athena (#20250)
* log to file and send through athena

* rename logging level

* pass thru log formatter

* logMessage is TEXT

* send queue always strings

* switch to xattr and lower priority queue

* enable cloud logging for devices

* time or size based log rotation

* basename -> dirname

* remove HARDWARE.get_cloudlog_enabled

* fix errors

* fix another exception

* xattrs need to be bytes

* sending works

* cleanup files at start

* add id and adjust formatting

* do not send active log file

* better names

* separate log formatters

* fix formatter super init

* fix log file order

* ensure file always has file formatter

* i see why there was no formatter

* apply same formatting to cpp log msgs

* apply same formatting to cpp log msgs

* update queue names in tests

* strip deprecated keys in STATUS_PACKET

* strip DEPRECATED from dict recursively

* athena log queue test

* instanceof instead of type

* isinstance instead of type

* use super

* remove logentries

* last_scan param unused

* comment about special log msg attr names

* add dict_helpers.py to release files

* use monotonic time and counter for log rotation

* update for adjusted log file naming

* use monotonic clock for tracking last log file scan
old-commit-hash: 3d48bd934d
2021-03-25 13:30:09 -07:00
Willem Melching 192cb1c698 only do hardware supported check if PandaState is not None (#20385)
old-commit-hash: 0072f71fb4
2021-03-17 14:19:55 +01:00
Adeeb Shihadeh e80ea20b34 only show EON charge alert on EONs
old-commit-hash: 8c207d3cd5
2021-03-08 17:00:58 -08:00
Adeeb Shihadeh 9df9ea6439 default this on
old-commit-hash: 167fa565c0
2021-03-01 12:14:29 -08:00
Adeeb Shihadeh 2cf71c7751 add file to disable lte while onroad (#20163)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: f7019a6a2c
2021-02-25 21:10:10 -08:00
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
2021-02-24 15:25:06 +01:00
Greg Hogan 088a6d1c5b fix pylint errors
old-commit-hash: 7cc0999aeb
2021-02-23 13:58:58 -08:00
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
2021-02-23 17:04:10 +01:00
Adeeb Shihadeh 35f9355fcc fix apk after cereal cleanup (#20098)
* actually a percent

* update apk

* update refs
old-commit-hash: f28673e8b5
2021-02-19 12:19:29 -08:00
Adeeb Shihadeh 05eb44115e cereal cleanup part 2 (#20092)
* car stuff

* thermal

* Revert "car stuff"

This reverts commit 77fd1c65ebd01abfa8493ae12c9e6b14f7ada976.

* 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
2021-02-16 21:39:32 -08:00
Adeeb Shihadeh 829ab2dff3 fanSpeedRpmDesired -> fanSpeedPercentDesired
old-commit-hash: 4ace476f14
2021-02-11 17:00:26 -08:00
Adeeb Shihadeh af95c26b26 remove gpsd (#20027)
old-commit-hash: fe7f3f0ec6
2021-02-10 16:39:39 -08:00
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
2021-02-03 19:57:30 -08:00
Adeeb Shihadeh 02788f3a0e skip dashcam3 build for now
old-commit-hash: 449e60cb82
2021-02-01 21:14:02 -08:00
Adeeb Shihadeh 6a01983000 few fixes from LGTM
old-commit-hash: 758794dec5
2021-01-16 14:23:06 -08:00
Willem Melching bd9b1eb62f Fix battery voltage reading (#19699)
* tici: correct battery voltage

* read current

* use current too
old-commit-hash: 0cdb9e8658
2021-01-08 17:21:58 +01:00
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
2020-12-29 22:32:03 -08:00
Adeeb Shihadeh 91fc6d21a0 don't go onroad if internet needed (#19572)
old-commit-hash: 41b31a1756
2020-12-21 15:13:20 -08:00
Adeeb Shihadeh b950cab874 HW abstraction layer (#19530)
* start hw refactor

* move that

* pins

* put that back
old-commit-hash: 8674b023ba
2020-12-16 21:30:23 -08:00
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
2020-12-02 15:20:57 +01:00
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
2020-11-20 19:25:12 -08:00
Willem Melching 67249ef8aa Stricter check on date for RTC time sync (#2582)
* More strict check on time

* Also update thermald
old-commit-hash: ff65dc1401
2020-11-20 11:47:39 +01:00
Adeeb Shihadeh 46519c7eb4 don't show unspported alert with no health packet
old-commit-hash: 30112f9add
2020-11-08 15:22:27 -08:00
Adeeb Shihadeh f25cec394e grey panda is unsupported (#2458)
old-commit-hash: 47c21f10f5
2020-11-03 19:56:25 -08:00
Willem Melching fb8d03d9e1 only log startup blocked on conditions changed (#2382)
old-commit-hash: 77d9a68f5d
2020-10-21 15:14:29 +02:00
Adeeb Shihadeh 4af9ea276b prevent snapshot while onroad (#2366)
* prevent snapshot while onroad

* fix offroad check
old-commit-hash: 4c4b53beda
2020-10-20 14:04:18 -07:00
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
2020-10-15 15:47:38 +02:00
Adeeb Shihadeh 8eeaea6cce fix not going onroad on clean dashcam install (#2280)
old-commit-hash: 81763a18b5
2020-10-06 11:10:45 +02:00
vanillagorillaa bb9f55844f Typo: thershold -> threshold (#2230)
old-commit-hash: c35af4b619
2020-09-25 22:50:55 -07:00
Willem Melching c26ae3dcb5 Get power usage from current sensor (#2192)
old-commit-hash: 73a2067be3
2020-09-18 12:25:55 +02:00
Willem Melching 22295ce570 Wait 5 minutes after offroad before changing thresholds (#2113)
old-commit-hash: 4891d3787a
2020-09-01 11:25:04 +02:00
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
2020-08-26 14:57:17 +02:00
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
2020-08-24 16:56:29 +02:00
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
2020-08-24 14:17:41 +02:00
Adeeb Shihadeh a219cc17e9 clip carBatteryCapacity to 0
old-commit-hash: 2476ea213c
2020-08-19 12:34:49 -07:00