* read the accel from the submaster outside of the loop.
* const max_idx
* remove data copy and converting from list to vector
* correct name is len
* fix drawing last point
* add comment, remove right_points
* fix
---------
Co-authored-by: Shane Smiskol <shane@smiskol.com>
* add accel
* debugging
* use uiPlan for acceleration
* draw on same frame, ui color enhancements
* adjustments
* not needed
* add back alerts and wide cam
* use linear accel -> saturation (red -> green transition is more gradual, should be easier to understand)
* 1.5x was good from the non-linear previous commit
* fix crash?
* revert draw on same frame
* bump lightness add lightness mod with comment for future use (reverting in next commit)
* revert (but keep lightness bump)
* max accel isn't blueish (#3DFF3D)
* clean up
* revert lightness
* remove experiment
* try a different domain
* doesn't work
This reverts commit 7a398b0392.
* clean that up
* actually should be 0.75
* some clean up
* debug timing
* fix
* debug
* round
* revert wide
* not used
* clean up
* remove slow qDebug
* this too
* draw max constant points, ensure we draw first and last
* clean up
* more clean up
* draft
* Revert "draft"
This reverts commit 59db097611.
* Revert "Revert "draft""
This reverts commit ee86c385b3.
* simplify
* clean that up
* and all that
* and more
* aaaand that
* aaaand that
* track vert is created in update_line_data, it us the sum of two equal
len lists
* keep debugging stuff around
* keep debugging stuff around
* remove prints
* rm that
* moreee
* use existing helper 😄
* clean up
* make it const
* F
---------
Co-authored-by: Bruce Wayne <harald.the.engineer@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* cameraview: Scale the glViewPort by devicePixelRatio()
This fixes an issue seen in Cabana on a "hidpi" system with Wayland where
devicePixelRatio() != 1 and the video doesn't take up the full widget area.
On the recommended Ubuntu 20.04 install I wasn't able to reproduce, because
devicePixelRatio() was always equal to 1 even with scaling to 200% or 300%. It
might be different if "Fractional Scaling" is enabled in GNOME (I couldn't make
that option work in mv WM.)
Was going to enable just for Linux, but it appears to also be recommended for
Retina MacOS:
https://doc.qt.io/qt-5/scalability.html#high-dpi-scaling-on-macos-and-ios
... so have worked from the assumption that glViewport() always takes dimensions
in device pixels, never the "device independent pixels" of Qt.
* Update selfdrive/ui/qt/widgets/cameraview.cc
* Update selfdrive/ui/qt/widgets/cameraview.cc
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* auto detect available streams
* no switch if wide cam not available
* clear frames before getAvailableStreams
* warning
* clear at same time
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* setup: specific error state for non-executable file
* Result -> DownloadResult
* complete -> finished
* rename widgets to be more consistent
* fix typos
* fix setCurrentIndex
This appears to have different behaviour on device than on PC (off by
one)
* load fonts
* copy
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Revert "load fonts"
This reverts commit e8756598ed99aea39ef5721453e97920a494051c.
* font family
* undo
* less widgets more better
* font size
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* 10s lat
* Full length MPC
* redfine N
* Leave controls the same for now
* Updates
* use long plan in lat plan
* interp plan
* simplergit add selfdrive/controls/plannerd.py selfdrive/controls/
* expand to 10s
* revert this
* fix linter
* vizualize
* fix long test
* typo
* cleanup
* compiles
* unused
* unused
* bump cereal
* bump cereal
* use model if no uiplanm
* update replay
* update ref commit
* bump cereal to master
* will draw
* gradient
* bg
* add sense of depth
* refactor
* cleanup
* fix endpoint
* clean up
* use array
* 1 matmul
* lives in modeldata
* standstill only
* remove bad pts
* do less math
* smooth
* kind
* fix d
* lineswidth
* fade in and out
* hide
* quick
* gray out
* fix joints
* offset
* rest icon
* clean up
* circle as state
* longlat
* new design
* gap and g
* scaledown, fix jts and unlock not standstill
* width
* different
* intermediate
* sand
* motion effect
* vis
* fix bg
* clean up
* t
* btn_size
* small speedup
* sligh
* clean up
* facelift
* match .2
* .4 is good
* size
* no ss
* rhd compat
* less filt
* more line
* engaged
* not white
* drop prop
* this is fine
* independent falg
* sg
* dont look like hitman
* cleanup
* little more
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* ui: tap experimental mode icon to toggle
After experimental mode has been enabled for the first time (confirmed),
it can be toggled by tapping the engage-ability/experimental mode icon
in the upper right.
Closes#27002
* replace with QPushButton
* fixes
* cleanup