Commit Graph

323 Commits

Author SHA1 Message Date
Willem Melching 1ae492370d Add LastPowerDropDetected and create bootlog before clearing params (#23062)
* Add LastControlledShutdown and create bootlog before clearing params

* update param name

* sorting
old-commit-hash: 7c8044d2dbb2ce74c0c622b468caec185e590d48
2021-11-29 15:51:27 +01:00
Willem Melching 935ce9edad navd: render map into VisionIPC (#22800)
* navd: render simple map

* render route

* offscreen rendering

* cleanup

* more cleanup

* render into visionIPC

* rename class

* split position update from route update

* stop broadcast if not active

* gate vipc server behind flag

* add python library

* faster

* no vipc from python

* put behind extras

* only send when loaded

* add glFlush just to be sure

* cleanup settings into helper function

* function ordering

* broadcast thumbnails

* put behind param

* adjust zoom level

* add route to python bindings

* revert that freq change

* add logging if map rendering is enabled

* use rlogs if available

* bump cereal
old-commit-hash: 5069852573128f40dd0174eb1d0f3f983367863d
2021-11-26 14:38:02 +01:00
Adeeb Shihadeh 8731fc42b7 back to 0.8.12
old-commit-hash: a941a1040da3bcacca24f2eeee1745d7376d2394
2021-11-22 14:26:00 -08:00
Adeeb Shihadeh ab74f9a372 back to 0.8.11
old-commit-hash: f813ae3e1ab9118931587912ec2eb5a28d0eb8cb
2021-11-18 15:10:41 -08:00
Adeeb Shihadeh 2bcaee3678 add offroad alerts for car unrecognized (#22934)
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Chris McCammon <chrismccammon123@gmail.com>
old-commit-hash: 2a72e2a5140a7b02c3a13f167e91b4238a01eba0
2021-11-17 20:29:00 -08:00
Adeeb Shihadeh 74f4dfde27 bump to 0.8.12
old-commit-hash: 7d18e26ff1712027aa2f7a85ad5eb045295a15cf
2021-11-17 15:00:37 -08:00
Dean Lee 84097b29df watchdog_kick: non-allocating (#22892)
* non-allocating

* unpack

* call kick every second

* cleanup include
old-commit-hash: ca88a8769be47c8cd27d7290c53b7dfc3b55f0fd
2021-11-17 12:02:31 +01:00
Adeeb Shihadeh 8a66c54064 Revert "add offroad alerts for car unrecognized"
This reverts commit 2ffaadb4d2eaabf6e8d86423fbc25328e81dfff0.

old-commit-hash: d8a5c415cd73b50a3424a28f644466fee263e09c
2021-11-16 13:31:10 -08:00
Adeeb Shihadeh 08bfdb151b add offroad alerts for car unrecognized
old-commit-hash: fb1e8ce086ec5e2dc7b2150b62fdd99368eb7e66
2021-11-16 13:30:33 -08:00
Willem Melching bb8d0aa76d Move shutdown/reboot handling to manager (#22882)
* Move shutdown/reboot handling to manager

* more logging

* check enagaged

* Apply suggestions from code review

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 07ff72472636237d7c47addfce4d8bbbda98e9d2
2021-11-12 09:10:34 -08:00
Adeeb Shihadeh 29f6b5cb98 allow update snoozing (#22876)
* allow update snoozing

* not immediately visible

* dismiss and close

* grey button
old-commit-hash: e528e2e3e2760c52266b126a803a0f7bb872cf3d
2021-11-11 15:32:25 -08:00
Willem Melching 669ed5ff2b Put journal and nvme stats in bootlog (#22849)
* Run commands and put output in bootlog

* log nvme

* fix indent

* cereal without event

* use regular array
old-commit-hash: fa0cbe5d400aefaca17964100d2d16da33785d59
2021-11-10 16:07:22 +01:00
Willem Melching d6c860cb0a cache prime status in param (#22850)
old-commit-hash: 6ace88a0f1165bbbb076da063ae1a8872a6af27c
2021-11-10 16:05:49 +01:00
Dean Lee 2bbceb0b29 EGLImageTexture: pass nullptr to glTexImage2d in last argument (#22844)
old-commit-hash: b0f93652950d796ab41581544ecdb6f330ec3668
2021-11-09 18:49:48 -08:00
Dean Lee 6e027a8aa6 util.h: add unit conversion constants (#22813)
* Add unit conversion constants.

* move to common/util.h
old-commit-hash: e29cc1c2ee7b63c71a3a46d900a8f755bd0048a0
2021-11-08 10:19:34 +01:00
Dean Lee 6677f91e9d thneed/serialize: use funtions from clutil(#22760)
old-commit-hash: 177c3b89b62c5538fb36171906f091cfa4b9f975
2021-11-04 16:19:25 +01:00
Dean Lee 7ff2217c8b util: remove function to_hex (#22792)
old-commit-hash: ff33ca341382be19a4be9bd71b97af1b01b553c7
2021-11-04 16:18:01 +01:00
Willem Melching 19deb98bc3 wshadow: fix comma three build
old-commit-hash: 45c506bb17e51d4f8592f74c75b9adcffa681201
2021-11-02 17:27:34 +01:00
Dean Lee 950211e15f params: remove obsolete keys (#22769)
old-commit-hash: 6de66f283242214bef6f83aec3b5bc5599ed9d50
2021-11-01 14:32:55 -07:00
Dean Lee 40b2bb9f65 params: code cleanup (#22744)
* cleanup params

* apply review

* continue

* use c_str

* cleanup filelock

* don't check return code of close()

* remove call_once

* cleanup params_pyx

* cleanup comment
old-commit-hash: 2773ff5aceb8874a9319c819ec3707705a00604d
2021-11-01 11:22:34 +01:00
Dean Lee a602b4a1a0 util:: remove unused funtion base_name (#22759)
old-commit-hash: 8da3cd3cdd6fdf82960f393c79db6ce5098b3f44
2021-10-31 13:10:27 -07:00
Dean Lee ebffd5f3ad util: add safe write functions (#22160)
* add safe write functions

* log error

* bzfile safe_fopen&safe_flush

* update test_case

* trigger ci

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 652c42da2c6fa31168d5d299c959ab0c86799c4b
2021-10-29 13:23:31 +02:00
Robbe Derks dbe4641e04 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>
old-commit-hash: 585c16cd2aba6e2504c2427aaf1855b97035eb41
2021-10-29 13:04:26 +02:00
Dean Lee 0afe7d74bc util: add new function create_directories with unit tests (#21871)
* util::create_directories

* check bool ret

* don't assume mask

* rename with_umask to no_umask

* remove umask

* rebase master

* rebase master

* 0755
old-commit-hash: 1f39d8cee69cf28576cd9bd27ef52be57d44371e
2021-10-29 12:27:35 +02:00
Adeeb Shihadeh 4099783375 add sdcard support (#22703)
* generalize

* factory reset
old-commit-hash: f4c2398db4c2dacc690d4115c04c7afb98a52a08
2021-10-26 19:34:08 -07:00
Willem Melching 8a0c57433e navigation: use mapbox proxy server (#22660)
* use mapbox proxy

* remove MapboxToken param

* do not log jwt

* remove import

* move to staging url

* put has_prime in ui state

* logic was flipped

* Update selfdrive/ui/qt/maps/map.h
old-commit-hash: cca07c0c730eb6e0d8dab0bde099a2ed706d14de
2021-10-26 18:59:17 +02:00
Willem Melching c25d90772f bump version to 0.8.11
old-commit-hash: c30bd052c3086bdb743f886e7b578130e5c91010
2021-10-26 15:23:04 +02:00
Greg Hogan cab0fbed7e ModelDataRaw struct part 3 (#22639)
* lane lines and road edges

* roll back some changes to find what broke things

* rollback more changes to find issue

* fix order of lane line probs

* try outputs on stack again

* initialize output array
old-commit-hash: 755a0a63a2ff7d62ee3eef723a761548e4b437a5
2021-10-21 14:59:07 -07:00
Greg Hogan 0e89533b19 ModelDataRaw struct part 2 (#22554)
* model pose more struct

* constexpr seems useful

* more concise

* fix order

* seems more readable

* plan struct

* attempt to fix compiling on device

* fix constexpr errors on device

* fix rotation rate in log

* maybe this fixes compiling constexpr on device

* exp() cannot be used in constexpr on c2

* only copy what we actually log

* simplify pivot()

* fix setting position std

* see if this works

* try lambda again

* giving up on the lambda to select member

* fix position std

* fix param order
old-commit-hash: a7f36c9daf65f0642aa395c07c140d82bc2a7a1e
2021-10-19 19:04:01 -07:00
Adeeb Shihadeh 25cfa2b65a tici: affine loggerd to efficiency cores (#22581)
old-commit-hash: 84de248fa7cbee37ecb2fd6a9d4df50ba60a1e04
2021-10-18 13:21:24 -07:00
dlsp 1779243675 params: include optional header (#22553)
old-commit-hash: c6b210da0218e11087adb7f6308aef6912db4ba7
2021-10-14 13:09:51 -07:00
Mitchell Goff 075d7a85a0 Use TICI intrinsics by default on PC (#22546)
old-commit-hash: fd3fdea7b4f811038c3e1145d283b0f7e15a90f0
2021-10-13 12:44:36 -07:00
Willem Melching 1c5ffc32ea Change APN from settings (#22440)
* Change APN from settings

* subtext

* one function

* bring connection down and up

* fix adapter type

* trim input

* fix scrolling in scanning state

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d898841e87d548cd057a7546b1c28be36eab0f1a
2021-10-07 23:47:23 -07:00
Willem Melching 06e22360ae Add DisableRadar_Allow param and settings toggle (#22329)
old-commit-hash: 8c01ae5716b558039946c07e63d42d16094037d2
2021-09-23 17:19:47 -07:00
Willem Melching dd7e1bef52 params.cc: sort offroad params
old-commit-hash: 6dabefb68d8ae68ebd55f2a4eb2dbdb153523759
2021-09-23 16:47:00 -07:00
Willem Melching e6f16a7e56 sort params alphabetically
old-commit-hash: 36975a007159386262912b9cae101b358dd11a13
2021-09-23 16:46:02 -07:00
Adeeb Shihadeh cadba6f36c add booted onroad flag (#22318)
old-commit-hash: e9e490a72933e81a190d7d7bbb94661864270885
2021-09-22 22:25:08 -07:00
Adeeb Shihadeh 47a983fb00 updated: add persistent param for build date (#22237)
old-commit-hash: ed70c5aaf537d14ca870d30851172c7a5242b7d1
2021-09-14 20:24:41 -07:00
Willem Melching c3a226afbf Revert "ui: use C3 video sizes by default on PC"
This reverts commit 71484f14c0d13f9b3eb9bece3629726e834ea304.

old-commit-hash: abae4ef72c462eef55c8a35f14365ed8b94c2bcc
2021-09-14 11:48:34 -07:00
Willem Melching b85209979a ui: use C3 video sizes by default on PC
old-commit-hash: cf4cd3b6935f7d0fcfc35ef0e9ea4ec0aae7155f
2021-09-14 11:27:34 -07:00
Adeeb Shihadeh 9193e1afa1 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>
old-commit-hash: b3705ede5e9dbc29dcf5ea02bb257a8f576a0556
2021-09-10 17:03:54 -07:00
Adeeb Shihadeh c1a7b5dc06 bump version to 0.8.10
old-commit-hash: 0a75a6653754bdf320263ddccca0fd8087596e15
2021-09-08 15:07:55 -07:00
Dean Lee f4d8621be1 Qt/onroad: use CameraViewWidget (#21821)
* use CameraViewWidget

* no timer, updateFrame after frameSwapped

* use QOpenGLShaderProgram

* merge master

* remove that

* new function setStreamType

* continue

* remove showEvent

* cleanup

* cleanup

* little more

* fix black screen on startup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: a034926264cd1025c69d6ceb3fe444965f960b75
2021-09-08 13:13:27 -07:00
Adeeb Shihadeh 706542a7b2 nav: add button to clear current route (#22167)
* nav: add button to clear current route

* fix scroll

* retab

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: d5475ba9462ad9c6a18db05e96a4fa9d3bf9772a
2021-09-07 17:39:24 -07:00
Dean Lee b1cfdaa5d6 modeldata.h: cleanup ecam_intrinsic_matrix (#22135)
old-commit-hash: 31c743b40ec73815b0b99d99a5e9028a46679488
2021-09-06 15:12:27 -07:00
Dean Lee 48b7754ab5 fix: util::read_files_in_dir does not always return a correct result (#21883)
* fix bug

* use de->d_type==DT_REG

* Revert "use de->d_type==DT_REG"

This reverts commit ecb38c82305ea23bfec84284aa77be5b5c64957a.
old-commit-hash: 83710b14ee8cf043576dba8f3707fc585067167e
2021-09-01 15:10:59 -07:00
sshane 3150250f00 UI: roaming toggle (#21750)
* roaming toggle

* clean up

* only tici

* fix order

* move to wifiManager

* should be working

* clean up

clean up

* use map icon

* move to advanced settings

* clean up

* temporarily change home-only

* keep setting for now

* set both to defaults in case ui doesn't start

* knownConnections stores conn names

* Revert "knownConnections stores conn names"

This reverts commit 4466a029a38f8c89876fad3c221e95e8fc572ded.

* save lteConnectionPath instead

* use the if statement

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 6fad0055b464492d6457597116125f50155b74a3
2021-09-01 14:33:06 -07:00
Willem Melching 60e7e09127 Ensure that first segment starts with all cameras on the same frameId (#22096)
* test that segment starts with the same frame id

* improve test

* add sync logic

* atomic max

* review comments
old-commit-hash: a93271a518b466cd83699acd8598a0361ee9a02b
2021-09-01 14:28:50 -07:00
Dean Lee 4c17c06799 Handle EINTR for all syscalls that can return it (#21948)
old-commit-hash: f02c8d0e2c04e45ceeea9f2fe9851319d724a637
2021-08-31 16:22:56 -07:00
Dean Lee 8869697c49 Params: faster atomic clearAll (#21973)
* faster clearAll

* use unlink

* fsync_dir if removed > 0

* remove macro ERR_NO_VALUE

* always fsync

* keep call to unlink

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 383ff35790705ec3bbc8d36215fe1c2dde5edef3
2021-08-30 19:47:47 -07:00