George Hotz
2a6ffaf71d
nv12: encoderd avoids a full frame copy ( #24519 )
...
* rgb to nv12
* nv12 works (w memcpy)
* correct now
* no copy
* fix nv12 with fast debayer
* reverts of unused stuff
* ui use nv12
* comment out thumbnails for now
* rebase fix
* dm read nv12
* model read nv12
* fix ffmpeg encoder
* thumbnails from nv12
* replay to nv12
* python framereader support nv12
* remove hardcoded frame/buffer sizes
* fix build
* ffmpeg encoder fix buffers
* small cleanup
* reduce power usage test
* fix cpu usage test
* fix snapshot
* fix loggerd test
* bump cereal
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Joost Wooning <jwooning@gmail.com>
old-commit-hash: ea5b8cdfb1
3 years ago
Gijs Koning
6a53db981b
Simulator: Speed up process by removing second camera ( #24679 )
...
* simulator: support running wide camera only
* proper frame id
* use param name that makes more sense
* do some cleanup
* Update tools/sim/bridge.py
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: b5aed2bf67
3 years ago
Willem Melching
2c343d2fe3
navd: rewrite in python ( #24621 )
...
* navd: start python rewrite
* use enum
* send empty instruction packet
* parse banner
* cleanup
* switch to coordinate class
* add segment transition logic
* add recompute logic
* cleanup old navd code
* split out helpers
* cleanup release files
* fix typo
* fix docs
* add typing to helpers
* small fixes
* move outside of ui
* get last pos from param
* add ui restart detection
* check running
* send route
* set navInstruction to invalid with no active route
* whitespace
* do not overwrite response and use ratekeeper
* reuse params object
* remove navd exception
old-commit-hash: e72d6b5689
3 years ago
Shane Smiskol
a11084a6c6
UI: draw map with uiUpdate signal ( #24632 )
...
* draw map with same uiUpdate signal as onroad window
* fix
* fix
* fix
* test
* test
* clean up
* clean up
* clean up
* draw instantly when dragging
* self explanatory
* remove line
* fix spacing
* see if we call ui'c sm->update before mapwindow
* Revert "see if we call ui'c sm->update before mapwindow"
This reverts commit e5dcd70013
.
* sort includes
old-commit-hash: fb4b4773a5
3 years ago
Adeeb Shihadeh
402a0800dd
athena: remove redirect detection for old prime ( #24662 )
...
This worked on old magenta, but doesn't work on new magenta
or blue prime.
old-commit-hash: e38b93fc31
3 years ago
Shane Smiskol
8d83408ace
UI: draw camera on same frame from modelV2 ( #24335 )
...
* draw camera on same frame from modelV2
* fix reversing
* optimze
* sleep shorter
* heavy debugging
* clean up
* fix ui hang
* try this
* more generic implementation
* add unused flag back
* draw latest frames when camerad is coming up with no modeld
* only get modelV2 once
* fix drawing
* conflate, reduce buffer, and remove special case when starting
* make tests pass
* remove comments
* frame_id is a uint32_t
* not sure why passing to cameraview causes overflow
* ternary, not too complicated
* change to size
* rename to frame
* use unique_ptr
* Revert "use unique_ptr"
This reverts commit 955842d951
.
* Assert buffer size
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* use one deque with pairs and uint32_t
* formatting
* frame offset
* Revert "frame offset"
This reverts commit a2cff8a2d5
.
* use array
* add prints
* Revert "add prints"
This reverts commit d6978746e5
.
* clean up
* this handles all cases
* we want to clip
* fixes going backwards when replay or modeld lags multiple frames, then skips multiple frames
fixes going backwards when replay or modeld lags multiple frames, then skips multiple frames
* fix rare case where camera is behind model
simpler comment
* draw latest frames if we start with no model, then hang on current frame until model catches up
fix
* store if it's updated
* accurate comment
* reset to latest on connect and showevent
* better order
* use quint32 for sending signal function
* use empty
* draft
* kinda works
* works
* one line
* debug
* clean up
* revert this
* to preserve behavior, think we need to poll these
* revert
* no timeout when modeld is not alive
* Update selfdrive/ui/qt/onroad.cc
* changes from other PR
* see if we're drawing dup model or camera frames
* looks good, just need to clean up
* debug
* clean up
* clean up
* revert these changes
* fix
* pretty simple, test on device
* clean up
* revert this
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: c10a2ef2e4
3 years ago
Adeeb Shihadeh
dea5b1fbe0
define new prime types
...
old-commit-hash: ab7c653cc5
3 years ago
Adeeb Shihadeh
f4675fc260
Merge common/ and selfdrive/common ( #24556 )
...
* Merge common/ and selfdrive/common
* fix that
* fix version
* fix unit tests
old-commit-hash: cb8885cffb
3 years ago
Willem Melching
860487c4b7
ui: fix cameraview widget on MacOS after YUV changes ( #24506 )
...
old-commit-hash: aac7248a01
3 years ago
Adeeb Shihadeh
5e42de3e36
body: opt-out logging ( #24423 )
...
* body: opt-out logging
* wait a bit
* little better
* fix that too
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 2466233b1c
3 years ago
Willem Melching
1ccab5f034
ui: fix HUD drawing order ( #24419 )
...
old-commit-hash: e8892481ab
3 years ago
Willem Melching
44a92a53d0
cameraview.cc: set alignment to 1 when copying texture ( #24418 )
...
old-commit-hash: 3fc01ec15a
3 years ago
Willem Melching
43b558f6db
map.cc: fix crash on older route with missing liveLocationKalman values
...
old-commit-hash: 9307fe434c
3 years ago
Adeeb Shihadeh
9424f67e19
body: opt-in logging ( #24416 )
...
old-commit-hash: 670126cbf1
3 years ago
Adeeb Shihadeh
98e1937b9d
ui: new notcar battery design ( #24412 )
...
* ui: new notcar battery design
* if charging
* cleanup
* remove that
* slower
* real colors
* relative from left
* fix that
old-commit-hash: 043a309d67
3 years ago
Adeeb Shihadeh
b35ac8b532
UI: add battery percent to body ( #24401 )
...
* UI: add battery percent to body
* little smaller
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 061b18805e
3 years ago
Joost Wooning
3783eb811f
UI: remove unused lock and fence ( #24355 )
...
old-commit-hash: 7ac92938d2
3 years ago
Willem Melching
2a5eae5a56
ui: combine OnroadHud into NvgWindow ( #24369 )
...
* ui: combine OnroadHUD and NVGWindow
* draw hud first
* cleanup
* removed commented line
* fix text rendering
* increase cpu usage
old-commit-hash: a3cfa444d3
3 years ago
Willem Melching
0817a5aaef
ui: only open map pane when route is not empty ( #24352 )
...
old-commit-hash: bff0db566b
3 years ago
Adeeb Shihadeh
35e073a22e
Revert "onroad UI: show negative speed ( #23987 )"
...
This reverts commit cac807daf9e39f982db2a856403a50a67622b992.
old-commit-hash: de56544531
3 years ago
Joost Wooning
31f9e8af0f
UI: remove memcpy on frame receive ( #24318 )
...
* UI: remove frame memcpy
* fix freezing
* fix onroad test
old-commit-hash: f84fdc86bb
3 years ago
Joost Wooning
c3bebf3e19
UI: use YUV stream instead of RGB ( #24317 )
...
* UI: use YUV stream instead of RGB
* cleanup
* cleanup
old-commit-hash: 43f43b1c64
3 years ago
Adeeb Shihadeh
8eb8cf95ec
Revert "UI: remove RGB buffer usage ( #24298 )"
...
This reverts commit 2a13d8446cd19340bfb67f14470b7c35f643e8b8.
old-commit-hash: 13e1c0b339
3 years ago
Joost Wooning
e0c973fe70
UI: remove RGB buffer usage ( #24298 )
...
* ui: use yuv buffer
* cleanup
* fix watch3
* replay always send yuv
* fix drawing of path
* fix onroad test
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: b9907e86b2
3 years ago
Adeeb Shihadeh
5a9644261f
remove comma two support ( #24248 )
...
* remove comma two support
* cleanup release files
* little more
* more libs
* no more gralloc
* add snpe back
old-commit-hash: 5c48e7bc86
3 years ago
Shane Smiskol
96ef36dcb4
ui: adjust laneless design ( #24246 )
...
* tune design
* adjust
* adjust
* fix and compromise!
* fix sl
old-commit-hash: fdeb590ae6
3 years ago
Shane Smiskol
4d820e1096
UI: new laneless design ( #24169 )
...
* stash
* Revert "stash"
This reverts commit f0019010e28ffb6d70b3c84666572f30c22077c9.
* new laneless ui
* clean up
* always draw lane lines
* no compensation
* make sure it's long enough
* debug time
* tune design
* tune design 2
* correct scaling with new updated curve hue
* debug time
* full test
* revert test
* move yellow back a bit
old-commit-hash: 998cd7fa20
3 years ago
Adeeb Shihadeh
6371a16f4e
UI: double click to switch between body and onroad views ( #24214 )
...
* UI: double click to switch between body and onroad views
* fix that
* Update selfdrive/ui/qt/home.cc
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 639255bd10
3 years ago
Brett Sanderson
58771d8bdd
UI: improved disengage on gas toggle description ( #24132 )
...
* Update settings.cc
Should be depressed as standard in automotive industry.
Pressed implies state change from down -> up, depressed means the state is down
* Update selfdrive/ui/qt/offroad/settings.cc
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 61d987f630
3 years ago
Shane Smiskol
474ba19c81
Add Disengage on Accelerator Toggle ( #23977 )
...
* Squashed commit of the following:
commit 953bcf0ecf8d03f0fec9ce0d5442cc660ae2347d
Merge: b4198608d efd04715e
Author: Shane Smiskol <shane@smiskol.com>
Date: Fri Apr 1 19:58:06 2022 -0700
Merge remote-tracking branch 'upstream/master' into disengage-on-gas
commit b4198608dac9595bfeb9443f95cd6c5d385cd62d
Merge: 24f90b2c8 0e983562d
Author: Shane Smiskol <shane@smiskol.com>
Date: Fri Apr 1 14:32:54 2022 -0700
Merge remote-tracking branch 'upstream/master' into disengage-on-gas
commit 24f90b2c8d6ae509c0776b6e33b743467aa08dee
Author: Shane Smiskol <shane@smiskol.com>
Date: Thu Mar 31 14:07:52 2022 -0700
revert changes and get ready for override
commit aa514df6b5e8431f0faa07f6b25eb5cb6c9f2749
Author: Shane Smiskol <shane@smiskol.com>
Date: Wed Mar 30 20:52:24 2022 -0700
temporary
commit c874e10c2555968c683f629c4582ab22e51d431f
Author: Shane Smiskol <shane@smiskol.com>
Date: Wed Mar 30 00:30:13 2022 -0700
move gasPressed to controlsd
commit fe670439dff5bc6dfc5963d79ca2febe0c5920c7
Merge: 49d3b6d11 c78701e47
Author: Shane Smiskol <shane@smiskol.com>
Date: Wed Mar 30 00:15:48 2022 -0700
Merge remote-tracking branch 'upstream/master' into disengage-on-gas
commit 49d3b6d1162893fa94b2294152f0718eeb4698ed
Merge: 475b27e74 3e819bc5a
Author: Shane Smiskol <shane@smiskol.com>
Date: Mon Mar 28 13:06:08 2022 -0700
Merge remote-tracking branch 'upstream/master' into disengage-on-gas
commit 475b27e74fd6479f1d148e9ded1eca6ee476865c
Author: Shane Smiskol <shane@smiskol.com>
Date: Thu Mar 24 20:24:59 2022 -0700
update SAFETY.md
commit 0798eadb82749e12ecbaa86f4e57b21bd3dbc7e8
Author: Shane Smiskol <shane@smiskol.com>
Date: Thu Mar 24 17:52:06 2022 -0700
⛽ ➡️ 🔋
bump
commit d2b64b89cf8d7265bc90848b4e3a2276c9a4cb78
Author: Shane Smiskol <shane@smiskol.com>
Date: Thu Mar 24 16:19:34 2022 -0700
these changes will be in border PR
these changes will be border PR
commit bed31e63de2244c161729773978fef8a9246ddb5
Merge: 491417640 603e07793
Author: Shane Smiskol <shane@smiskol.com>
Date: Thu Mar 24 16:17:31 2022 -0700
Merge remote-tracking branch 'upstream/master' into disengage-on-gas
commit 49141764098e3a701ff123ead52de4656b31db4d
Merge: 9291e9f00 46ed8bb8e
Author: Shane Smiskol <shane@smiskol.com>
Date: Wed Mar 23 19:00:26 2022 -0700
Merge remote-tracking branch 'upstream/master' into disengage-on-gas
commit 9291e9f0045780669b2ffa7f08fb10373c03b070
Merge: 2aed64157 2c947f193
Author: Shane Smiskol <shane@smiskol.com>
Date: Fri Mar 18 19:03:13 2022 -0700
Merge remote-tracking branch 'upstream/master' into disengage-on-gas
commit 2aed64157d6e9dc993d103a2c6abf7e643410562
Author: Shane Smiskol <shane@smiskol.com>
Date: Fri Mar 18 19:03:03 2022 -0700
Revert "send pre-enable state when gas is pressed"
This reverts commit 8d82e697dc2efade307413e767d14b56b4d2d079.
commit a219defe5342efa731a957b2ff4fd86292c1f239
Author: Shane Smiskol <shane@smiskol.com>
Date: Thu Mar 17 12:50:46 2022 -0700
bump cereal
commit 8d82e697dc2efade307413e767d14b56b4d2d079
Author: Shane Smiskol <shane@smiskol.com>
Date: Wed Mar 16 22:40:13 2022 -0700
send pre-enable state when gas is pressed
formatting and it's out
forgot one
allow gas press
show toggle
revert changes
revert changes
commit 5eb4d1ab1b77ac65bdd901f692ebfb848d5187ca
Merge: bad1bdc74 d0ef25959
Author: Shane Smiskol <shane@smiskol.com>
Date: Wed Mar 16 22:29:43 2022 -0700
Merge remote-tracking branch 'upstream/master' into disengage-on-gas
commit bad1bdc7428c5d8a4a765b259da504f0ade84424
Author: Shane Smiskol <shane@smiskol.com>
Date: Tue Mar 15 23:03:56 2022 -0700
clean up a bit
commit 7516ed9b786536a07f00a92b9c1742ca252a01d1
Author: Shane Smiskol <shane@smiskol.com>
Date: Tue Mar 15 22:55:09 2022 -0700
these are null checks right now
commit 408f5f1d633521b29b08d966c9b387fa79dff0d6
Author: Shane Smiskol <shane@smiskol.com>
Date: Tue Mar 15 22:51:14 2022 -0700
should work
commit be1978e29c03d8843cf073cc9ddf84020fd2b378
Author: Shane Smiskol <shane@smiskol.com>
Date: Tue Mar 15 22:36:16 2022 -0700
stash
commit f0bd4c47e9d27061c6cd3b88765a7c10995f42db
Author: Shane Smiskol <shane@smiskol.com>
Date: Tue Mar 15 22:26:24 2022 -0700
this was flipped
commit d5b6e30389a727e8559331acd706422e1b246f60
Merge: 820b19894
c814c1383
Author: Shane Smiskol <shane@smiskol.com>
Date: Tue Mar 15 22:25:49 2022 -0700
Merge remote-tracking branch 'upstream/master' into disengage-on-gas
commit 820b198949
Merge: 91763f9ff
6d2483ff9
Author: Shane Smiskol <shane@smiskol.com>
Date: Mon Mar 14 23:39:34 2022 -0700
Merge remote-tracking branch 'upstream/master' into disengage-on-gas
commit 91763f9ff4
Author: Shane Smiskol <shane@smiskol.com>
Date: Thu Feb 24 20:15:26 2022 -0800
add icon from jozef 🔥
commit 1885c9e2ba
Merge: 1f591736a
eae207a84
Author: Shane Smiskol <shane@smiskol.com>
Date: Thu Feb 24 20:08:07 2022 -0800
Merge remote-tracking branch 'upstream/master' into disengage-on-gas
commit 1f591736a2
Merge: 465811f0b
ebf5b27a7
Author: Jason Wen <47793918+sunnyhaibin@users.noreply.github.com>
Date: Sat Feb 12 10:24:29 2022 -0500
Merge branch 'master' into disengage-on-gas
commit 465811f0b4
Author: Jason Wen <haibin.wen3@gmail.com>
Date: Fri Feb 11 11:20:32 2022 -0500
Add param to process replay
commit 0344363a53
Merge: 700efcb3f
1175355b7
Author: Jason Wen <47793918+sunnyhaibin@users.noreply.github.com>
Date: Fri Feb 11 11:07:31 2022 -0500
Merge branch 'master' into disengage-on-gas
commit 700efcb3f4
Author: Jason Wen <haibin.wen3@gmail.com>
Date: Fri Feb 11 11:04:39 2022 -0500
Add param to unsafeMode
commit 220ce272fe
Author: Jason Wen <haibin.wen3@gmail.com>
Date: Fri Feb 11 10:54:16 2022 -0500
Add param to unsafeMode
commit d273bb78ac
Author: Jason Wen <haibin.wen3@gmail.com>
Date: Fri Feb 11 10:52:22 2022 -0500
Resolve conflicts
commit 1a85afd60c
Author: Jason Wen <haibin.wen3@gmail.com>
Date: Fri Feb 11 10:51:50 2022 -0500
Resolve conflicts
commit e3be32afc2
Author: Jason Wen <haibin.wen3@gmail.com>
Date: Fri Feb 11 10:51:08 2022 -0500
Resolve conflicts
commit f27203af3a
Author: Jason Wen <haibin.wen3@gmail.com>
Date: Wed Jan 19 00:30:09 2022 -0500
Add param to process replay
commit 04c0ad1a54
Author: Jason Wen <47793918+sunnyhaibin@users.noreply.github.com>
Date: Wed Jan 19 00:28:49 2022 -0500
Update interfaces.py
Co-authored-by: Willem Melching <willem.melching@gmail.com>
commit 99cf13caeb
Author: Jason Wen <haibin.wen3@gmail.com>
Date: Sat Jan 15 00:03:38 2022 -0500
Fix missing params lib
commit 2230254ca7
Author: Jason Wen <haibin.wen3@gmail.com>
Date: Fri Jan 14 23:38:46 2022 -0500
Disengage on gas toggle
commit 87475e02cb
Author: Jason Wen <haibin.wen3@gmail.com>
Date: Fri Jan 14 23:24:00 2022 -0500
Disengage on gas toggle
* bump
* use ALTERNATIVE_EXPERIENCE
* or it
* de-bump
* update refs
* update refs!
* you can just ctrl+click ALTERNATIVE_EXPERIENCE!
* already have a params
* update text
old-commit-hash: f1f40c117a
3 years ago
Adeeb Shihadeh
78bb03345e
better support non-car robots ( #24106 )
...
* better support non-car robots
* bump cereal
* update refs
old-commit-hash: e40c36f22b
3 years ago
Adeeb Shihadeh
1ce647b0a6
UI: body support ( #24079 )
...
* body ui template
* faces
* abs
* not raw
* auto switch
* check that
* no smoosh
* cmath
old-commit-hash: b51deb97d1
3 years ago
George Hotz
05be126142
sidebar: the word SEARCHING didn't fit
...
old-commit-hash: f3d390bdfa
3 years ago
Willem Melching
619b88c1f4
api.cc: expose error type in requestDone signal ( #24064 )
...
* put error in requestDone
* only check in tools
old-commit-hash: 34a8a5ea76
3 years ago
Shane Smiskol
d2f8c085c0
Training guide updates ( #24033 )
...
* add new images
* update boxes
* copy updates and fix checkmark spacing
* update wide images and boxes
* tune path and smaller triangle
* tune bounding boxes
* clean up
* same triangle as c3
* revert panda
* optimize images
* Revert "revert panda"
This reverts commit f66aac85a0
.
* add comment
* add new step18
* final fixes
* pixel perfect
old-commit-hash: 405ecbced3
3 years ago
Adeeb Shihadeh
9f2a58e9c4
UI: better lag logging ( #24042 )
...
* UI: better lag logging
* remove print
old-commit-hash: 67e3a2c39a
3 years ago
Shane Smiskol
769c76a773
ui: repaint toggles after offroadTransition ( #24038 )
...
* repaint after offroadTransition
* Update selfdrive/ui/qt/widgets/controls.h
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 4802c864d5
3 years ago
Igor Biletskyy
8db72d15f0
onroad UI: show negative speed ( #23987 )
...
* show negative speed
* remove ()
old-commit-hash: 62087a6368
3 years ago
Gijs Koning
cedd8abc05
Rename RGB vision streams to match YUV streams ( #23961 )
...
* Renaming VISION_STREAM_RGB_.. to match yuv names like VISION_STREAM_ROAD
VISION_STREAM_RGB_BACK -> VISION_STREAM_RGB_ROAD
VISION_STREAM_RGB_FRONT -> VISION_STREAM_RGB_DRIVER
* little more
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 57b6fdc17a
3 years ago
Lee Jong Mun
247dff5621
ui: white color define ( #23930 )
...
old-commit-hash: 0b47800e74
3 years ago
royjr
388ae5e59e
UI: remove redundant condition ( #23918 )
...
old-commit-hash: 82bc052dc6
3 years ago
Willem Melching
7e12817e02
MacOS: ensure 1:1 rendering on HiDPI screens ( #23860 )
...
old-commit-hash: ca8d4e417e
3 years ago
Adeeb Shihadeh
6ca0269f47
same check
...
old-commit-hash: 95da470795
3 years ago
Adeeb Shihadeh
b695ffbfdb
UI: fix power buttons disable logic ( #23774 )
...
old-commit-hash: 00d469dbc9
3 years ago
Willem Melching
3de449a993
nav: set settings stack based on uiState.prime_type ( #23770 )
...
* nav: set settings stack based on uiState.prime_type
* also show on success
old-commit-hash: f8c81103fc
3 years ago
Willem Melching
06add8928d
nav: handle route responses with duplicate points ( #23769 )
...
old-commit-hash: 14f7a78251
3 years ago
Willem Melching
5d55924fac
ui: fix onroad transition with active nav ( #23757 )
...
old-commit-hash: e76ef93a83
3 years ago
Lee Jong Mun
c5e11d7491
missing optional include ( #23749 )
...
old-commit-hash: ab9fb0541d
3 years ago
Willem Melching
30a0b40b5d
ui: configure tethering based on prime type ( #23733 )
...
* Store prime type in param
* set tethering metric based on prime type
* update existing connections
* returning zero is fine
* always set
* add callback on activate
* call systemctl
* match server enum
* add delay
* assume field is there
* snake case
old-commit-hash: 4e4cb07297
3 years ago
Dean Lee
fab73e6e9f
remove trailing whitespaces ( #23716 )
...
old-commit-hash: 786152f0f1
3 years ago