Commit Graph

147 Commits (master)

Author SHA1 Message Date
Adeeb Shihadeh 058724e61d
agnos 1.3 (#21924)
* agnos 1.3

* update updater

Co-authored-by: Comma Device <device@comma.ai>
2021-08-13 13:57:45 -07:00
Adeeb Shihadeh 3193396969
tici: set amplifier config after exiting power save (#21920) 2021-08-13 00:46:54 -07:00
Adeeb Shihadeh 589f82c766
agnos 1.2 (#21847) 2021-08-04 11:10:05 -07:00
Dean Lee fefc70b4ca
hw.h: move Hardware-related paths to namespace Path (#21826)
* refactor getenv and path

* apply review
2021-08-04 13:29:03 +02:00
Adeeb Shihadeh c545dc6e14
update agnos (#21813) 2021-07-30 17:36:05 -07:00
Adeeb Shihadeh b55d709376
update agnos (#21775)
* update agnos

* update manifest
2021-07-29 20:00:11 -07:00
Adeeb Shihadeh 060592e34a
only show updater UI if necessary (#21787)
* only show updater UI if necessary

* cleanup

Co-authored-by: Comma Device <device@comma.ai>
2021-07-29 18:12:37 -07:00
Adeeb Shihadeh 6bc5566340 fix unused 2021-07-29 17:21:08 -07:00
Comma Device 56d682831b fix updater UI repaints 2021-07-29 17:12:12 -07:00
Adeeb Shihadeh 14d26d6d89
agnos updater UI (#21776)
* start agnos updater UI

* wifi

* progress

* sometimes things fail

* fix wifi

* in launch script

* fwd

* fwd stderr

* update that

* release files

Co-authored-by: Comma Device <device@comma.ai>
2021-07-29 15:57:58 -07:00
sshane f48064c4d7
implement display power (#21731)
* implement display power

* FB_BLANK_POWERDOWN

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-07-28 14:26:58 -07:00
Adeeb Shihadeh bb507dc8fe
agnos 0.23 (#21740)
* agnos 0.23

* bump
2021-07-27 02:08:34 -07:00
robbederks ec9b7833fa
do not update splash partition anymore (#21727) 2021-07-26 16:35:04 -07:00
robbederks cebddc94c4
Tici sound improvements (#21722)
* tune amp config and add EQed sounds

* fix release files

* bump up max

* cleanup

* more volume

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-07-26 16:28:41 -07:00
Adeeb Shihadeh 19f7cabcd1
agnos 0.22 (#21633)
* agnos 0.22

* stagign

* update
2021-07-17 14:52:50 -07:00
Willem Melching f4d87cecf7
agnos.py: retry swap (#21608)
* retry until success

* try this

* redirect stderr

* also check positive

* add logging

* f string
2021-07-15 16:11:10 +02: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 45d4f8301b
hardware: only create dbus objects when needed (#21576)
* only create dbus objects when needed

* fix typo

* use cached_property
2021-07-13 16:22:22 +02:00
Adeeb Shihadeh 21c7981919
fix agnos updater bug + type hints (#21566)
* add type hints

* fix bug

* more hints
2021-07-12 15:22:44 -07:00
Adeeb Shihadeh b0e3c35edd
agnos 0.21 (#21559)
* agnos 0.21

* update

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-07-12 17:33:45 +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 266d1bdeac
agnos 0.20 (#21488)
* agnos 0.20

* prod image
2021-07-06 10:32:10 -07:00
Willem Melching 7c6bf89e04
tici: flash bootloader partitions from manifest (#21399)
* move swapping to python

* only create downloader if needed

* typo

* number

* add sanity check

* boot full check to test

* manifest is required argument

* implement full hash check

* off by one

* new manifest

* only write tag for system

* bump splash

* review comments part 1

* trigger update

Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
2021-06-30 14:20:58 +02: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 050a89e598
tici: differentiate ethernet and tethering (#21391)
* differentiate ethernet

* fix tethering

* cleanup

Co-authored-by: Comma Device <device@comma.ai>
2021-06-23 15:55:51 -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
Adeeb Shihadeh 687560fc98
agnos 0.19 (#21365) 2021-06-21 15:39:13 -07:00
Dean Lee e4e669bb0f
add space after function name and if statement (#21225) 2021-06-11 10:17:52 +02:00
Josh Smith 77321dbac4
Add type hints, small cleanups (#21080)
* improve tools.lib.kbhit and tools.sim.lib.keyboard_ctrl

* unpack more efficiently

* minor improvements

* agnos.py match spec better

* manual_ctrl test missing queue arg

* fix incorrect type annotation

* queues are generic

* varname reuse resulting in incorrect type inference

* bytes().hex() rather than bytes.hex(bytes())

* a bit of type hinting stuff
2021-06-03 12:21:04 +02:00
Willem Melching 57591ed3aa
Agnos 0.18 (#20977) 2021-05-20 18:18:37 +02:00
Willem Melching 7a8c7505d0 add modem state to NetworkInfo 2021-05-20 14:49:59 +02:00
Willem Melching 9aff4b657e
agnos 0.17 (#20966)
* agnos 0.17

* update launch env
2021-05-19 14:49:39 +02:00
Adeeb Shihadeh ffc3a6b8d8
agnos 0.16 (#20957)
* agnos 0.16

* update manifest
2021-05-18 19:38:33 -07:00
Willem Melching e8641f6430
Add engineering output to deviceState.networkInfo (#20948)
* Add engineering output to deviceState.networkInfo

* update cereal
2021-05-18 14:08:08 +02:00
Willem Melching b4af541877
Agnos 0.15 (#20944)
* agnos 0.15

* update launch env
2021-05-18 13:03:36 +02:00
Willem Melching def141571c get_network_info: check response length 2021-05-17 23:08:20 +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
Willem Melching 12f17dc2f4
Agnos 0.14 (#20826) 2021-05-06 11:52:02 +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 9edda6fbc1
tici: offline big cluster while offroad (#20668)
* tici: offline big cluster while offroad

* shuffling

Co-authored-by: Comma Device <device@comma.ai>
2021-04-12 23:06:24 -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
Adeeb Shihadeh 32d317239a
let GPU sleep while offroad (#20640)
* better script

* let adreno sleep

* remove

Co-authored-by: Comma Device <device@comma.ai>
2021-04-09 17:27:35 -07:00
Willem Melching 9790c6d0b6
agnos 0.13 (#20635)
* agnos 0.13

* update launch env
2021-04-09 15:49:14 +02:00
Adeeb Shihadeh 399ac30250
agnos 0.12 (#20608)
* agnos 0.12

* update

* bump version
2021-04-06 22:13:29 -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
Dean Lee 98e55996f6
Params: python-like interface (#20506)
* rebase master

* delete outdated test_params.c

* putBool & more robust getBool

* putBool(SshEnabled)
2021-03-30 12:54:59 +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 936d9da567
agnos 0.11 (#20461)
* agnos 0.11

* actual kale support
2021-03-24 15:29:38 -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
Adeeb Shihadeh f1da1f9cb2
Qt UI: scale volume with speed (#20441)
* Qt UI: scale volume with speed

* for all hw

* way too loud for tici

* set volume

* volume

* swap
2021-03-22 19:51:44 -07:00
Adeeb Shihadeh c17d5217d0
agnos 0.10 (#20437) 2021-03-22 16:15:17 -07:00
Adeeb Shihadeh e547a97216
Qt UI: SSH keys (#20430)
* rename

* toggle control

* SSH toggle

* hw

* qcom

* lines

* fix that

* start refactoring

* adding keys

* hacky remove

* alerts

* fix qcom ssl

* use the same widgets everywhere

* clean up

* more cleanup

* little more

* bigger

* fix tethering toggleg
2021-03-22 03:52:28 -07:00
Adeeb Shihadeh bf7f8b3da5
agnos 0.9 (#20363)
* agnos 0.9

* agnos 0.9
2021-03-15 19:49:28 -07:00
Adeeb Shihadeh d6beffd4d1 fix setting brightness on tici 2021-03-10 23:10:54 -08:00
Adeeb Shihadeh d45550c424
UI HW Abstraction layer (#20301)
* start cpp hw abstraction layer

* cleanup

* only set brightness on change

* confirmation dialogs

* add to release files

* fix tici brightness

* using percentage now

Co-authored-by: Comma Device <device@comma.ai>
2021-03-10 22:51:50 -08:00
Adeeb Shihadeh 2d79ccb9ad fix static analysis CI 2021-03-09 17:49:15 -08:00
Comma Device f126118bc0 power monitoring script 2021-03-09 17:09:25 -08:00
Adeeb Shihadeh cd86f94ec7
agnos 0.8 (#20267)
* agnos 0.8

* bump required version

* update
2021-03-07 03:08:36 -08:00
Adeeb Shihadeh 2162d8d665
agnos 0.7 (#20249)
* agnos 0.7

* update system
2021-03-05 19:05:59 -08:00
Adeeb Shihadeh 59ea5eade9 fix tici sound card check 2021-03-04 11:57:43 -08:00
Willem Melching ff1cd3de1e needs to be int 2021-03-04 13:25:50 +01:00
Willem Melching 0d02e85873 set brightness, catch exceptions 2021-03-04 13:19:30 +01:00
Willem Melching 0d635bd59d tici fix ambient temperature zone 2021-03-01 14:04:25 +01: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 5b74b101e3 update agnos 2021-02-19 14:05:55 -08:00
Adeeb Shihadeh d169914674
agnos 0.6 (#20077)
* updates for agnos 0.6

* timezone

* bump version
2021-02-18 18:14:34 -08: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
Willem Melching cf3cd54b68
Qt ui: set timeout on all dbus interfaces in wifiManager (#20090)
* set timeout on all dbus interfaces in network

* fix hardcoded timeout

* lower timeout in thermald
2021-02-16 15:57:01 +01:00
Willem Melching 53bb7e3e10
Agnos v0.5 (#20023) 2021-02-05 19:54:46 -08:00
Adeeb Shihadeh cfb0390183
move agnos manifest to selfdrive/hardware (#19889) 2021-01-30 18:31:28 -08:00
Adeeb Shihadeh c95c4df51d
don't reflash agnos update if already flashed (#19944)
Co-authored-by: Comma Device <device@comma.ai>
2021-01-27 17:10:54 -08:00
grekiki 7408569c1b
Add Github SSH keys (#19879) 2021-01-27 12:07:17 +01:00
Willem Melching fe91b8a1b4
OS Updater improvements (#19914)
* Clear hashes before swapping

* add retry logic

* better retry logic

* actually fail on retries exceeded
2021-01-25 15:52:07 +01: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 8d9be50bcc
uninstall from qt offroad (#19538)
* more offroad

* implement uninstall

* just uninstall for now
2020-12-18 23:06:40 -08:00
Adeeb Shihadeh 97b2eae01f tici: implement sound check 2020-12-18 15:00:12 -08:00
Willem Melching cd6f26664c Add timeout to dbus calls 2020-12-18 14:06:49 +01:00
Willem Melching dbd7b10bae Add exception handlers to dbus network stats 2020-12-18 13:42:35 +01: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
Adeeb Shihadeh 220853730d
manager cleanup (#2634)
* start cleanup

* add uninstall to hw abstraction layer

* cleanup

* litte more

* don't build at import time

* fix tests

* don't build by default

* sync
2020-12-17 11:45:41 -08:00
Adeeb Shihadeh 8674b023ba
HW abstraction layer (#19530)
* start hw refactor

* move that

* pins

* put that back
2020-12-16 21:30:23 -08:00