Commit Graph

52 Commits (master)

Author SHA1 Message Date
George Hotz 814741dafe
thermald: use named thermal zones (#23936)
* thermald: use named thermal zones

* remove print

* and for c2

Co-authored-by: Comma Device <device@comma.ai>
2022-03-14 14:45:50 -07:00
Adeeb Shihadeh 4c766934be
reduce shutdownd CPU usage (#23723)
* reduce shutdownd CPU usage

* sync

Co-authored-by: Comma Device <device@comma.ai>
2022-02-07 18:50:54 -08:00
Adeeb Shihadeh 2372f4d6db remove debug prints 2022-02-04 23:32:39 -08:00
Adeeb Shihadeh 62e0bd5f0d
NEOS 19.1 (#23707)
* NEOS 19.1

* add logging

* new manifest

* prod bucket

Co-authored-by: Comma Device <device@comma.ai>
2022-02-04 22:54:12 -08:00
Adeeb Shihadeh 6a9514570c
NEOS 19 (#23586)
* NEOS 19

* prod manifest
2022-01-21 00:12:33 -08:00
Adeeb Shihadeh a4f4d4c2cd androidd: track system_server too 2022-01-20 14:37:15 -08:00
Adeeb Shihadeh fc8d402713 androidd cloudlogs are errors 2022-01-19 23:48:02 -08:00
Adeeb Shihadeh 610b99fd68
Log android system shutdown to param (#23520)
* Log android system shutdown to param

* comment

Co-authored-by: Comma Device <device@comma.ai>
2022-01-13 22:40:35 -08:00
Robbe Derks 842ba8e5e6
C2 detection (#23439)
* two detection

* fix CI

* catch all

* gotta catch em all
2022-01-10 13:13:52 +01:00
Adeeb Shihadeh 8a229826cf androidd: reduce cloudlog spam 2021-12-13 17:42:15 -08:00
Vehicle Researcher 29a8fe272c fix pmic temp scale on comma two 2021-11-29 13:41:48 -08:00
George Hotz 6462ced209
thermald: track power usage / pmic temps (#23013)
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-11-23 16:08:20 -08:00
Adeeb Shihadeh 7c611cd711 flush progress print from agnos and neos updaters 2021-10-16 14:13:17 -07:00
Adeeb Shihadeh d708b5b546
thermald: log screen brightness (#22570)
* thermald: log screen brightness

* bump cereal
2021-10-15 17:19:45 -07:00
Adeeb Shihadeh 5b641379ae
phonelibs -> third_party (#22477)
* git mv to third_party

* find and replace

* fix release tests

* update pre-commit

* update tici bins

* update eon bins

Co-authored-by: Comma Device <device@comma.ai>
2021-10-07 16:32:44 -07:00
Adeeb Shihadeh 493e32431c
only run get_nvme_temps on C3 (#22464)
* only run get_nvme_temps on C3

* temperatures

* fix imports

Co-authored-by: Comma Device <device@comma.ai>
2021-10-06 20:32:22 -07:00
Robbe Derks 6117c7ce81
Log modem temps on Tici (#22281)
* log max modem temp

* not sure what happened here

* fix this

* make modem temps a list

* this is not needed

Co-authored-by: Comma Device <device@comma.ai>
2021-09-21 14:40:05 +02:00
Adeeb Shihadeh b3705ede5e
Unify neos/agnos updaters (#22109)
* start moving neos updater

* downloading

* ui

* move recovery

* resuming

* add verification

* fix up launch

* test

* update updater

* fix mypy

* fake updater

* review suggestions

* more tests

* abc

* update bin

* raise

Co-authored-by: Comma Device <device@comma.ai>
2021-09-10 17:03:54 -07:00
Adeeb Shihadeh c8ca56dddd
android health daemon (#21965)
* androidd

* three strikes

* better logging

* persistent

* add to release files

* cleanup

* no cpu usage

* colon

Co-authored-by: Comma Device <device@comma.ai>
2021-08-19 16:00:05 -07:00
Willem Melching a7aa22253b
Athena getNetworks method (#21597)
* add iwlist scan

* return using athena

* add lte

* add last one too

* unused

* add release files

* more compact

* typo

* remove debug code

* different file

* array

* rebase mistake
2021-07-14 16:16:45 +02:00
robbederks cbae2899df
Tici: amplifier config (#21596)
* amplifier config on boot

* add to release

* another spot

* add debug when running separately

* rename for clarity
2021-07-14 15:53:39 +02:00
Willem Melching fb8f0ac092
cloudlog modem version (#21562)
* log modem version

* whitespace
2021-07-12 15:52:09 +02:00
Adeeb Shihadeh 3adfd1d53b
clamp gpu usage to fix thermald crash (#21548) 2021-07-10 22:29:38 -07:00
Adeeb Shihadeh a6efe9a6b7
remove modem logging (#21497) 2021-07-06 13:51:45 -07:00
Adeeb Shihadeh 4f019cebc8
log GPU usage on NEOS (#21440)
Co-authored-by: Comma Device <device@comma.ai>
2021-06-29 16:02:56 -07:00
Willem Melching ad7f0207ac
Log gpu usage (#21404)
* Log gpu usage

* 100 total

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-06-29 13:55:18 -07:00
Adeeb Shihadeh 8ac7ee6bc6
cleanup eon hw abstraction layer (#21396)
* cleanup eon hw

* handle none from getprop
2021-06-24 01:06:19 -07:00
Adeeb Shihadeh 1da3ab42dc
diag logging (#21360)
* rat

* log max power

* cloudlog

* no print

Co-authored-by: Comma Device <device@comma.ai>
2021-06-23 23:53:22 -07:00
Adeeb Shihadeh 54c2292b41
log network info on neos (#21375)
* log network info on neos

* log earfcn

* cleanup

* capn

* cleanup

Co-authored-by: Comma Device <device@comma.ai>
2021-06-22 17:15:18 -07:00
Dean Lee e4e669bb0f
add space after function name and if statement (#21225) 2021-06-11 10:17:52 +02:00
Willem Melching f6cf350d3a
thermald: fetch more detailed network info (#20928) 2021-05-17 13:10:08 +02:00
Comma Device 6ffc183359 fix dmonitoring build after include cleanup 2021-05-08 23:30:35 -07:00
Dean Lee 7222d0f20d
Cleanup selfdrive/ includes (#20822)
* cleanup include path

* continue

* format includes

* fix testraw.cc

* remove include path from SConstruct

* regroup

* rebase master

* almost done

* apply review

* rename FileReader.xx to filereader.xx

* rename Unlogger.x->unlogger.x

* rename FrameReader.xx -> framereader.xx

* apply reviews

* ui.h

* continue

* fix framebuffer.cc build error:mv util.h up

* full path to msm_media_info

* fix qcom2 camerad

Co-authored-by: Comma Device <device@comma.ai>
2021-05-08 22:15:17 -07:00
Willem Melching ab319d4f54
Replace ifdef with hw abstraction layer (#20843)
* Replace ifdefs with hardware abstraction layer (#20801)

* add type to class hadwareXXX

* replace ifdefs with hardware layer

* continue

* continue

* new function get_driver_view_transform

* full path to hw.h

* fix build error setup.cc

* apply review

* fix typo

* fix deprecated error:replace deprecated fromPath with new

* fix build error

* Fixes after ifdef clenaup (#20842)

* inheritance doesnt work with static

* fix debayer

* small cleanup

* Update selfdrive/camerad/cameras/camera_common.cc

* Update selfdrive/ui/qt/offroad/settings.cc

* Update selfdrive/common/modeldata.h

* flip conditions

* fix comment

Co-authored-by: Dean Lee <deanlee3@gmail.com>
2021-05-06 14:39:05 +02:00
Willem Melching 3a95d3ccaa Revert "Replace ifdefs with hardware abstraction layer (#20801)"
This reverts commit 757d2923d2.
2021-05-06 12:29:30 +02:00
Dean Lee 757d2923d2
Replace ifdefs with hardware abstraction layer (#20801)
* add type to class hadwareXXX

* replace ifdefs with hardware layer

* continue

* continue

* new function get_driver_view_transform

* full path to hw.h

* fix build error setup.cc

* apply review

* fix typo

* fix deprecated error:replace deprecated fromPath with new

* fix build error
2021-05-06 11:41:46 +02:00
Adeeb Shihadeh 1786d04239
handle unregistered devices (#20728)
* handle unregistered devices

* cleanup

* no uploader or athena

* clean up
2021-04-22 21:03:57 -07:00
Adeeb Shihadeh b0bd123445
tici power saving (#20644)
* start power saving

* set power save in thermald

Co-authored-by: Comma Device <device@comma.ai>
2021-04-12 01:40:58 -07:00
iejMac 27ebd334dc
close android activities when settings is closed (#20604)
* close android activities

* new line

* only if activity is launched

* fix
2021-04-06 19:35:09 -07:00
Willem Melching 7372b9bba5 Revert "Add device_type to class Hardware (#20535)"
This reverts commit 9922688f8b.
2021-03-30 17:36:04 +02:00
Dean Lee 9922688f8b
Add device_type to class Hardware (#20535)
* add device_type to HadWare class

* always wake on PC

* use cereal::InitData::DeviceType
2021-03-30 16:13:49 +02:00
Adeeb Shihadeh a2084c2a60
filter out touches while in android activity (#20515)
* filter touches while in android activity

* only check after launching activity

* move to hw abstraction layer

* little cleanup

* remove print

Co-authored-by: Comma Device <device@comma.ai>
2021-03-28 03:53:03 -07:00
Adeeb Shihadeh e76c80ffa1
APK purge (#20446)
* purge begins

* release files

* remove those

* no more android

* only qt

* text and spinner

* neos update script

* update sounds

* update cpu usage

* all done

Co-authored-by: Comma Device <device@comma.ai>
2021-03-24 14:30:41 -07:00
Adeeb Shihadeh 49748d5dc1
Qt UI: power saving (#20456)
* c2 power saving

* clean that up

* that works

* add to hw

* set power

* release files

* add that

* include hw base

* pc joins the party

* util

Co-authored-by: Comma Device <device@comma.ai>
2021-03-24 11:09:39 -07:00
Comma Device d72855ecb8 split 2021-03-24 10:12:09 -07:00
robbederks 4c243da019
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
2021-02-24 15:25:06 +01:00
robbederks 8ad1c793d1
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>
2021-02-23 17:04:10 +01:00
Adeeb Shihadeh 312b681a46
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
2021-02-16 21:39:32 -08:00
Adeeb Shihadeh c9679222ae
add device type to clouglog ctx (#19890)
* add device type to clouglog ctx

* remove is_eon

* str
2021-01-22 20:02:48 -08:00
Adeeb Shihadeh b276881fcd
agnos updater (#2600)
* agnos updater

* add manifest

* fix path

* get manifest from overlay

* update manifest

* remove merge markers

* add streaming decompressor

* dont need read all

* Unsparsify

* Fix output filename

* Optimization

* cleanup

* Small cleanup

* Read manifest from merged overlay

* Write hash at end of partition

* Sync before writing hash

* Write bytes in file

* add manifest with image sizes

* Fix manifest path

* File was closed already

* Format string

* Put raw hash

* Read hashes in launch script

* update launch script

* should be agnos version

* fix slot

* Make sure we clear the hash

* Verify partition size

* move updated

* Standalone flasher

* Don't rely on ordering

* Get path

* Debug log

* Download agnos

* Info is enough

* update manifest

* Remove f

* Check downloader return code

* Exit on wrong manifest

* Fix typos

* Set pythonpath before hardware init

* move agnos into hardware folder

* remove comments

* Fix abstractmethod

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2020-12-18 13:17:12 +01:00