* 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
* 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
* 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
* 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
* 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
* move ui_draw_world to qt
* draw world if world_objects_visible is true
* cleanup
* cleanup includes
* continue
* cleanup
* cleanup
* enable multisampling on all devices
old-commit-hash: 20f571db3c
* 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: 5069852573
* Add navd folder
* prints route instructions to console
* broadcast NavInstuction without lanes
* show basic instructions and eta
* parse out lane info
* use swaglog
* clip distance on ui side
* draw lane directions
* show route
* add to process config
* add to release files
* small cleanup
* show route without gps
* pop open map on initial route
* fix error messages around no gps
* done
* make persistent process
* handle end of route
* clear route on offroad
* only one timer
* fix layout hacks
* explicit rendering at 20Hz
old-commit-hash: bef686f275
* 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: cca07c0c73
* 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: a034926264
* draw border in OnroadAlerts
* non transparent
* no scissor
* set video_rect to the full size
* fix header gradient
* Revert "fix header gradient"
This reverts commit f5565c19d5cabda22fe6b60af23dc26727ecd5bc.
* Revert "set video_rect to the full size"
This reverts commit c012db105a8cabd140971208431d83ae3592b70e.
* fix scissor
* fix header gradient
* set scissor box to video_rect when draw lines
* move up eta
* init alert_size to NONE
* remove glScissor
* cleanup
* rename draw_video_frame to draw_vision_frame
* remove space
* add comment
* move border to OnroadWindow
* cleanup signals
* fw declare MapWindow
* fix build err
* remove viz_rect
* fix build err
* continue
* cleanup
* text rect:no border
* use signals
* remove space
cleanup
* merge master
* fix map eta
* get bgColor from alerts
* update alerts in OnroadWindow
* add function clearAlert
* repaint border
* init bg color to STATUS_DISENGAGED
* no black frame
* cleanup
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: f0389f7e2d
* Qt logging through cloudlog
* sort imports
* rename to swaLogMessageHandler
* move to util
* info is high enough
* smaller diff
old-commit-hash: 54b6a9f121
* some common changes
* rename to joystick
* add alert and update controlsd to work with joystick
* update joystickd
* Update Joystick readme
* assume we have inputs
* only send gb or steer when engaged_toggle is true
* Update instructions
* fix --ip
* Easier to understand at a glance
* much better
* -a
* receive events and send msg in same loop
* always import
* Update selfdrive/controls/lib/events.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Update selfdrive/controls/lib/events.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* combine logic and clean up
* use argparse
* outdated, and use normal class
* rm
* bit of a refactor
* refactor part 2 / 3
* much better (3 / 3)
* Simplify
* bump cereal and update readme
* capitalize
* Update tools/joystick/joystickd.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Update tools/joystick/joystickd.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* make joystick abstraction class clearer
* use interp, clearer without comments
* no need to use apply_deadzone
* more explicit
* define btns and axes once
* split function by use_keyboard again, but simpler
* we can use handle_button as a reset function
* need to flip sign
* remove
* invert axes map for kb, easier to read the button mapping
* apply changes from review
* new lateral log for debug mode
* bump
* add saturated
* static alert
* joystick_mode
* conditionally subscribe
* Update selfdrive/controls/controlsd.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* move params instantiation
* Spoof active and enabled
* Only allow car to engage
* no startup alert if joystick
* Update controlsd.py
* Should be orange not enabled, green enabled
* no more button states
* should work
* blue
* submaster conflates, so only send when we have an update
* final change
* remove msg
* clean up a bit
sort of clean up
clean up a bit
remove msg
* this was right
* Apply suggestions from code review
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* lowercase
* suggestions from code review
* forgot laptop
* bump to latest
* fixes
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: vanillagorillaa <31773928+vanillagorillaa@users.noreply.github.com>
old-commit-hash: ae77f693a2