Commit Graph

166 Commits

Author SHA1 Message Date
Robbe Derks 58c99158a1 Make pandaState and safetyMode a list (#22454)
* wip: move to pandaStates

* bump cereal

* wip: SafetyMode struct

* move to safetyMode

* fix typo

* this can be None

* fix potential empty pandaStates list

* fix thermald

* fix controlsd

* rename safetyModes to safetyConfigs

* update process_replay

* fix test_models

* bump cereal
old-commit-hash: 91987f38d425e2a5dc61d09571933cffb9536113
2021-10-08 17:54:34 +02:00
Willem Melching a16e2fba2a ui: only update ignition when panda is connected (#22425)
old-commit-hash: 009e37e797425581c3f5cb787700a95a14a8a8f7
2021-10-04 14:11:32 +02:00
Adeeb Shihadeh 757e768d9f UI: show steering wheel icon while engaged or engageable
old-commit-hash: 78b97eaa3611e2bcf27f6363a1574c44bd42c760
2021-09-16 23:43:19 -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
Willem Melching b05eb4cac6 C3: increase brightness at night a little
old-commit-hash: 01e779ef2d9da40ea0675466054e4f4eb22eb2dd
2021-08-19 16:54:43 +02:00
Mitchell Goff b7b87efed9 Retuned desire model (#21919)
* New model: d8e7f76f-7bec-4a83-af00-c0fae792527f/950

* Updated process replay refs

* Updated model replay ref
old-commit-hash: 05b37552f3a38f914af41f44ccc7c633ad152a15
2021-08-12 21:06:26 -07:00
Willem Melching e6847fc2af Improve perceived display brightness (#21884)
* tweak light sensor function

* CIE 1931 compensation

* before filter

* C3 scaling

* C2 is also linear

* whitespace

* scaling and min brightness
old-commit-hash: 358cdaaefd71dbfebbe07a5e6aaa19e35fae1827
2021-08-11 10:27:22 +02:00
Harald Schafer 6695eaacd9 better name
old-commit-hash: 543a0c509dbdb17f6dfe20b7e5345a905adcf5bd
2021-08-10 11:00:35 -07:00
Dean Lee 0a445b571a fix lead2 not updated (#21895)
old-commit-hash: 339aa5e3f9779891aca92cb84dd40c7bbfa60f1c
2021-08-10 10:58:28 -07:00
HaraldSchafer 331eb5d553 Draw model leads (#21864)
* draw model not radar

* compiles

* wrong way
old-commit-hash: 276b00ccb805b8071db4352b406f39233c2c3867
2021-08-05 20:35:03 -07:00
arfy slowy 63b3d6024b fix: spelling typos (#21861)
* fix: typo spelling grammar

* revert

* Update selfdrive/locationd/calibrationd.py

* more revert

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d74def61f88937302f7423eea67895d5f4c596b5
2021-08-05 12:05:49 -07:00
Adeeb Shihadeh 82c9f6734b UI: maintain frequency before vipc is connected (#21704)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b13f5e632814c6ebb159a325331fd74da3a68066
2021-07-23 22:14:44 -07:00
Willem Melching 074f38171a Fix backlight filter dt and set ts to 10 sec (#21649)
old-commit-hash: 1cf8396e4c4f1c7024fe6febe4f9704f23721ca9
2021-07-19 10:37:24 +02:00
sshane 748adb4c63 ui: fix finish setup button (#21538)
old-commit-hash: c10d46d336d91b9eb1732477d58351022485ce11
2021-07-13 14:58:54 -07:00
Dean Lee c351c71641 ui/update_line_data: fix assert when max_idx = TRAJECTORY_SIZE-1 (#21543)
old-commit-hash: f554dc0ae624527234931946305a7d010e1230b0
2021-07-13 15:37:19 +02:00
Adeeb Shihadeh e24ff01513 sidebar: indicator for GPS fix (#21556)
* sidebar: indicator for GPS fix

* fix cutoff
old-commit-hash: a2f9259ebf2fb3c98dc560221e0f33f20955d825
2021-07-11 15:26:28 -07:00
Adeeb Shihadeh 468032d27e remove gps accuracy from sidebar
old-commit-hash: 8b6cf406abcb45496ca4f5d57291bde6e44c4910
2021-07-10 14:40:11 -07:00
Willem Melching e0378d41cb Refactor camerad exposure logging (#21506)
* simplify gain logging

* clean up metadata

* log grey fractions

* those are not used

* set grey fracs in message

* fix qcom
old-commit-hash: 47be6c751ec69d2f8957c9a1c6f7776a8bde4f7e
2021-07-08 15:22:00 +02:00
Adeeb Shihadeh 82731ecb31 UI: faster offroad transition (#21466)
old-commit-hash: 30683e62910125e8a35205a2e3ac8f958f84e4d1
2021-07-02 00:37:30 -07:00
Adeeb Shihadeh 5aa30638fe Fix UI crash when going onroad after onboarding (#21236)
old-commit-hash: d47b00b45a866bef088f51d1ff31de5885ab04e9
2021-06-11 16:17:53 -07:00
Dean Lee 147b355dde add space after function name and if statement (#21225)
old-commit-hash: e4e669bb0fc1a919dfb38800099f8e3ad52346f1
2021-06-11 10:17:52 +02:00
Dean Lee f70a79b838 Use C++ header files instead of C header files. (#21192)
* use cstring instead of string.h

* use cstdio instead of stdio.h

* remove inttypes.h

* use cstdlib instead of stdlib.h

* use cstdint instead of stdint.h

* #include <cstddef>

* cstdlib

* use cmath

* remove stddef.h

* use cassert

* use csignal

* use ctime

* use cerror

* rebase master
old-commit-hash: c53cb5d570adb82bc454fcabab458d7e7f09738c
2021-06-08 13:46:22 -07:00
Adeeb Shihadeh 78d65db218 limit icon flickering in UI (#21132)
old-commit-hash: 2ddfd829134effcf9420019a92984a3133a3f20b
2021-06-03 23:06:14 -07:00
Adeeb Shihadeh 56e9dbcf99 Qt driverview (#21063)
* CameraViewWidget

* continue

* cleanup

* mv DriverViewWindow to ui/qt/offroad

* write IsDriverViewEnabled in showEvent/hideEvnet

* sm.update(0) in onTimeout()

* CameraViewWidget

* use unique_ptr for vipc_client

* virtual draw

* fix viewport

* connected()->frameReceived()

* bg_colors use QColor

* fix draw

* rebase master

* whitespace

* apply reviews

* indent

* like onroad

continue

* white space

* continue

* show == false

* remove border

* use widget's size

* fix shadowed rect

* cleanup driverview

* fix transform

* remove video_rect

Co-authored-by: deanlee <deanlee3@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 9876723169ba0fd0c61169699caaa63246473e85
2021-06-01 20:59:41 -07:00
Willem Melching c0984ebb97 cleanup brightness params (#21066)
old-commit-hash: 93424ec6b4f1fb18db61e27877f28fa0357c5455
2021-05-28 15:45:41 +02:00
Willem Melching 6afdeb58f1 Compute on-road screen brightness based on camera exposure (#21024)
* Compute screen brightness based on camera exposure

* fix up scaling

* remove light sensor completely

* fix gain calculation

* cleanup

* remove comment

* bump offroad brightness
old-commit-hash: 23789c9d4ecbeb7a4b7cbecd0d5c231e303544ba
2021-05-26 12:21:11 -07:00
George Hotz 6922150ede Move MCLK from 24 -> 19.2 mhz + Add accuracy in sidebar (#20960)
* wip

* one day i'll flip that right

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: f43671c9878e2babc7c524a6f1476c571e8b900a
2021-05-18 22:37:33 -07:00
Willem Melching 60ac2dd4c0 Update visionIPC stream and intrinsic matrix when going onroad (#20947)
* Choose correct vipc stream when going onroad

* whitespace
old-commit-hash: ccdec0291d97da29c8b2d0edce579e0f9a5ab07d
2021-05-18 14:17:38 +02:00
Dean Lee 5609f32cee Cleanup includes (#20925)
* remove #include <pthread.h>

* remove #include<stdbool.h> for cc files

* remove #include<iostream>
old-commit-hash: 0495426535490e7d8d503af35ace7a20dc70a7bb
2021-05-17 10:31:31 +02:00
Dean Lee ebe3a39909 UI: remove duplicate capnp readers (#20855)
* refactor submaster

* rebase master

* CAPNP best pratice

* zero initialize

* vwp_w has not been initialized before UIState()

* no static

* rebase master

* Minimize refactoring

* cleanup

* remove gpsOk

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 533bc30c2e4ecac5e022f2ba4f3919842dfa0a1a
2021-05-14 22:47:06 -07:00
Adeeb Shihadeh eb79a7214e match nvg onroad alerts (#20854)
old-commit-hash: e06f9828eaf93fcbd9b0cdfbebc54b4197565fc5
2021-05-10 22:09:36 -07:00
Dean Lee e333e4f189 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>
old-commit-hash: 7222d0f20dc8edfe0d2f3417d1ce7c84fbd32805
2021-05-08 22:15:17 -07:00
Adeeb Shihadeh 7b8f164793 match nvg sidebar (#20847)
old-commit-hash: e1a58e62688190ab7a6db0b518a5ba77cbd0902c
2021-05-07 15:12:29 -07:00
Willem Melching 78bf4f5867 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>
old-commit-hash: ab319d4f54a53e1a0aa1c2c0d94d56a9acef8362
2021-05-06 14:39:05 +02:00
Willem Melching 39c18d4c5a Revert "Replace ifdefs with hardware abstraction layer (#20801)"
This reverts commit 9f2ad462f39f4c880f283b71bffbc9248a2b577d.

old-commit-hash: 3a95d3ccaae7168073410cd7d392a9564d9d45ba
2021-05-06 12:29:30 +02:00
Dean Lee e0282ced49 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
old-commit-hash: 757d2923d2bfcda620b252e21a348ac3f87f3a63
2021-05-06 11:41:46 +02:00
Adeeb Shihadeh 5d82a760db Qt onroad alerts (#20776)
old-commit-hash: f9072199571742f9e349990bb58540401a863f67
2021-05-04 23:23:00 -07:00
Adeeb Shihadeh 201e0777aa fix double DM sounds (#20811)
* fix double DM sounds

* debug script

* bool

* cleanup

* inf

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: b9f9e2dfdac2a5a95be376b7622337dcfdf2b020
2021-05-03 21:38:22 -07:00
Dean Lee 9a827fea20 c++ cleanup: standardize file extensions to .cc and .h (#20800)
* c++ cleanup: standardize file extensions to .cc and .h

* cleanup files_common
old-commit-hash: 81491dc57f5080c602a0be58dd5f9feba2fa31b9
2021-05-03 11:53:11 +02:00
Dean Lee 309a873e7d Qt: use new signal slot syntax (#20783)
* new signal slot syntax

continue

* continue
old-commit-hash: 4781598e1228b3f8707afa7237864f4cb4df9d71
2021-05-01 14:12:35 -07:00
Adeeb Shihadeh f5e6a0c9a0 Qt Sidebar (#20775)
* revive #19877

* looks like a sidebar

* more like a sidebar

* cleanup

* fix qcom2

* style

* that's the sidebar

* more space

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: db9319405b5a650627a45de78a81afaed4ae2128
2021-04-29 15:05:04 -07:00
Adeeb Shihadeh b263a8d934 UI: refactor GLWindow (#20764)
old-commit-hash: 140e6248e26cfa370ccdb13fda8edc4fae0321ca
2021-04-29 11:18:59 -07:00
iejMac 79b165ba7e ui update_sockets refactor (#20625)
* separate updates

* update

* no if

* no return

* fix
old-commit-hash: e6d210d5264a9bc6f3ebd459043262327887776c
2021-04-12 16:08:38 -07:00
Willem Melching 00b19b6351 ecam toggle (#20597)
* use ecam in ui

* needs reboot

* use in modeld

* typo

* effective FL is longer in center

* normalize zoom by focal dist

* read param before init

* make 2x as wide

* review comments

* more explicit

* fix camera offset

Co-authored-by: ZwX1616 <zwx1616@gmail.com>
old-commit-hash: 1fc7bcca43e9ef75d95ae8689e3b1cd8c4f8041e
2021-04-07 19:12:35 +02:00
Dean Lee 405df8b165 Params: python-like interface (#20506)
* rebase master

* delete outdated test_params.c

* putBool & more robust getBool

* putBool(SshEnabled)
old-commit-hash: 98e55996f67aaaf715c941d417ae4d3b0187f388
2021-03-30 12:54:59 +02:00
Dean Lee 8c09067b27 faster driverview start (#20507)
old-commit-hash: 32c4cf00c2d6bac059516cc44494808cf5a408ca
2021-03-30 11:51:18 +02:00
Adeeb Shihadeh 30f036680b Qt touchups (#20465)
* reduce minimum size

* clean that up

* consistent

* feels pretty good

* cleanup

* less laggy toggle

* openpilot

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7f56991b41c40a765125635919a91bca55815bd6
2021-03-24 21:18:12 -07:00
HaraldSchafer eae1fa481c New KL model + laneless toggle (#20454)
* New model: 0bf38240-6b55-42b0-bcfb-da08ff5cd0b9/650

* laneless baby

* hardcode model difference for now

* kale toggle

* kale emoji

* sensible description

* make clear it is not just for ui

* emojis dont work yet

* 9671a8fe-539f-4a04-a163-54571df21139/650

* new model

* only read param on rising edge of ignition

* update toggle text

* fix that

* update refs

Co-authored-by: mitchell <mitchellgoffpc@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 7ee79c99236f749d02a6779b006ee1ab187e0612
2021-03-24 01:10:31 -07:00
Willem Melching a8f562d8c3 Improve screen brightness by also using camera gain (#20357)
old-commit-hash: 8e14e17020d5cd55ab6f6f6178769ccb86c5bf80
2021-03-15 20:07:49 +01:00
Dean Lee 6a9fe9d0c5 ui.cc: fix update_lead segfault (#20351)
* fix update_lead crash

* Check for empty list in update_lead

* use rcv_frame

* update 2 leads in update_leads

* use std::optional
old-commit-hash: fb5873bb6d00b4f625e9ee0cd1767fe8805b2476
2021-03-15 13:53:22 +01:00