* OffroadHome: move experimental mode button to right column
* OffroadHome: replace DriveStats with PrimeAd when no prime
* SetupWidget: remove PrimeAd
* SetupWidget: tweaks to fit smaller space
* UI: add WiFiPromptWidget
* WiFiPrompt: update using network type
* add WiFiPromptWidget to offroad home
* reduce spacing to fit vertical space
* WiFiPromptWidget: open Wi-Fi settings
* no longer necessary
* cleanup
* shrink PrimeUser widget and increase Setup Wi-Fi font size
* correctly resize widget when stack index changes
* layout tweaks
* debug
* spacing
* slightly improved style
* helps -> help
* .
old-commit-hash: 4f815db141
* horribly messy
* bit simpler
* is this right?
* simpler and should work?
* used to be int/frames, but added easing so treat as float
* end slow (start fast)
* little faster
* clean up
* not needed
* try ease in/ease out and fix
* remove debugging print
* fix
* revert to previous curve
* based on speed
* not right
* fix
* fix
* this kinda works
* Revert zoom by speed
Revert "this kinda works"
This reverts commit 48aa30b945148b8eb79fbe33eb58e3fc3a6a7009.
Revert "fix"
This reverts commit 4ff2d33486231727d7cd68d366342c2273e3a315.
Revert "fix"
This reverts commit 15b22f8e8284eb017000856abb05b5e8973a6c0e.
Revert "not right"
This reverts commit 378b9965e14250c57ed39e1976de60d89054c2c8.
Revert "based on speed"
This reverts commit 1f7bfa5d73a2dee3740096da64eda24b33288b51.
Revert "Revert "not right""
This reverts commit 1beeb402534a755208d19771eb4a2afdc69b8739.
* better curve
* revert
* use constants and fixes
* up here too
* feels more intuitive to make zoom_transition=1 be zoomed in
* rm line
* fix
* cmt
* better handling
* better name
* zoom if ANY other stream is requested
* Update selfdrive/ui/qt/widgets/cameraview.cc
old-commit-hash: 26064196d0
* 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>
old-commit-hash: 2ec14c2065
* 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>
old-commit-hash: 884e36bc9d
* 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>
old-commit-hash: fbcd0821c9
* 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>
old-commit-hash: d5375af2f5
* 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>
old-commit-hash: 79e6910106