* nerf highlights
* prioritize less noise
* no overhead
* make focus easier
* cant finetune under high gain
* add some comments
* inspired by xx mindset
Co-authored-by: Comma Device <device@comma.ai>
* fix setting core affinity
* dmonitoringd doesn't need rt priority
* android only gets two cores
* model and planner get core 2
* log missed cycle count
* neos update
* prod image
* revert NEOS changes
* still need this
* equalize performance on three threads
* need to request first
* clean up indexing
* obsolete
* handling skips and drops
* clean up repeated chunks
* use main frame id
* oneshot
* real skip check
* move to test
* should be cropped H here
Co-authored-by: Comma Device <device@comma.ai>
* use custom MessageBuilder from cereal
* use MesageBuilder.toBytes
* bump cereal
* unused
* another one
* fix ui msg
Co-authored-by: deanlee <deanlee3@gmail.com>
* add Rect struct
* simplify layout calculation by using viz_rect
* fix
* add whitespace
* use the correct value for vwp_w
* correct vwp_w again
* rebase
* dd
* use cpu for now on tici
* pin to core 5
* fix driver view
* probably wrong
* correct this time
* RHD too
Co-authored-by: Comma Device <device@comma.ai>
* reduce paramsd cpu
* reduce calibrationd cpu usage
* calibration_helpers was mostly unused
* more calibration cleanup
* update refs
* fix thresholds in CPU test
* dockerize carla + openpilot
* separate dockerfile
* bring back CI dockerfile
* cleanup bridge
* add op docker build and start script
* build container in CI
* fix camerad hack
* remove most magic numbers from bridge.py
* openpilot-sim docker build and run scripts
* fix dmonitoring hacks
* revert controlsd hacks
* clean up build scripts
* singular
* fix path
* fix image name
* modify sim readme
* sim readme and start script changes
* dockerfile with working opengl
* working opengl + passing panda build_st in docker
* fix bug in sim docker file
* bugfix sim docker file
* bugfix all op-sim docker issues
* modify readme + run script
* IT DRIVES
* clean this up
* more cleanup
* cleanup docker stuff
* more cleanup
* start with openpilot-base
* install carla python package
* Script is not in lib
* chmod
* everything should be running in docker now, the code may not be nice though
* works locally...
* rhdChecked is deprecated
* Checkout using git lfs when building sim container
* try to pass the tests
* pull latest docker
* gps should not throw an error on openpilot launch in bridge.py
* fixed a coding style error
* Only start ubloxd in car
* fixed more style problems
* revert typo
* Use enviromental variable to prevent errors in a simulator
* Remove unused import
* Attempt to fix missing enviromental variable
* fix typo
* less work for users, auto tmux engagement
* less work for users, auto tmux engagement
* fix check for nvidia
* clean up nvidia check
* remove typo, shorted dockerfile
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Bruce Wayne <batman@workstation-eu-gregor.eu.local>
Co-authored-by: Gregor Kikelj <gregor1234567890@gmail.com>
Add test routes for CX9 and Mazda3
CX9: "10b5a4b380434151|2020-08-26--17-11-45"
Mazda3: "74f1038827005090|2020-08-26--20-05-50"
Signed-off-by: Jafar Al-Gharaibeh <to.jafar@gmail.com>
* move android into own dir
* fix name
* maybe this works? qt ui doesn't work on mac
* fix that
* pc sound works
* fix pc build
* lowercase
* that needs to be real_arch
* split into classes
* fix typo in lib
* Fix cycle alerts
* Add qt multimedia libs to install scripts
* Add ui/android folder
* Fix android build
* Raise exception if sound init fails
* add missing return
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
* should only count after the check
* include no dcam
* no need to copy
* run with both param
* independent idx
* not break test if no device
* remove unused
* EON D is half
* needs test for qcamera too
Co-authored-by: Comma Device <device@comma.ai>
* cause error
* revert for now
* decrease font by 10 pts
* remove unnecessary () for class ;)
* move exit button closer to right corner
* 70% transparency for black background
* cause error
* well that's not right
* try showing more lines
* actually show last three lines
* forgot to join
* debug what we can leave out
* show last four files
* revert
* show 3 lines and one extra for last erroring line
* increase by 5 points
* move text left a bit
* fix
* fix
* two more lines
* add double indentation for formatting
* remove indentation of file lines
* fix
* fix
* try this
* try this
* make lines shorter
* clean up error code in manager
* try one more
* reduce lines altered in PR
* four is good
* this actually isn't required anymore
* can move more left
* and increase size
* slightly less
* slightly less
* try a different error
* try last three with negative
* revert to 75
* fix
* clean up
* remove path hiding
* revert offsets
* revert
* refactor vision
* don't show slow frame message when in preview mode
* change draws to uint32_t
* set vision_seen=false after destroy
* remove vision_connect_thread
* refactor ui_update
* seelp 30ms when vision is not connected
* remove should_swap
* call ui_update_sizes before ui_draw
* rebase
* start bigger UI refactor
* don't need the touch fd
* fix qt build
* more cleanup
* more responsive
* more refactor
* fix for pc
* poll for frames
* lower CPU usage
* cleanup
* no more zmq
* undo that
* cleanup speed limit
* fix sidebar severity for athena status
* not aarch64
Co-authored-by: deanlee <deanlee3@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
* sensors_qcom cleanup
* include vector and map
* abstract sensor init
* use a set
* add to relase files
* fix this up
* no ui changes
* cleanup
Co-authored-by: Comma Device <device@comma.ai>
* fix wasted cycles in locationd and dmonitoringd
* bump cereal
* calibrationd
* Revert "calibrationd"
This reverts commit 580051a33b.
* this is cleaner
* calibrationd
* paramsd is driven by liveLocationKalman
* only log params once a minute
* stricter CPU usage test
* revert locationd for now
* revert calibrationd too
* revert thresholds
* add modeld and required calibd procs to uiview to display lane lines when debugging
* send radarState with empty message to show model path
* make uiview.py executable
* read rhd from param
* don't need that anymore
* fix build
* bump cereal
* read param from camerad too
* add read_db_bool helper
* bump model replay ref commit, IsRHD wasn't set
* remove unused UI code
* these params aren't used anymore
* this is cleaner
* remove one more timeout
* read that from carParams
* only android needs pm
* fix that
* fix that
Co-authored-by: Comma Device <device@comma.ai>
* Systemd logcatd infrastructure
* This should work
* Cleanup
* Split
* More compact and cleanup
* Add to ubuntu setup package list
* Run logcatd on all non pc platforms
* hardware abstraction class
* De Morgan
* Rename pc hardware class
* Fix sound card in controlsd
* Pc get sim info
* fix hardware in test
* two more
* No more random imei on android
* no randomness on android
* Need to return something that looks like imei for registration to work
* Return proper network strength
* Unused import
* Bug fixes + gpsd is only android
* tici sensord: WIP
* add sensor constants
* rename files
* base class
* init sensors
* publish something
* dont leak memory
* try reading from accel
* Accel works
* add time and sensor source
* Update release files
* If we want low BW we want 125hz
* this should run gyro as well
* add filter on gyro
* also filter accel data
* Add i2c files
* cast makes macos unhappy
* Same outputs as android sensord
Co-authored-by: Tici <robbe@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
* loggerd test
* delete afterwards
* add ccc
* fix pylint
* cleanup rotation test
* this works
* bump tolerance
* clear the data after test
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
* qt ui boilerplate
* this kinda works
* cleanup
* render inside other widget
* cleanup
* more cleanup
* Not needed
* Handle click
* Draw at 20Hz
* create paint.hpp
* move stuff around
* update sidebar
* Draw vision
* this works again
* add clickable settings button
* Only collapse sidebar when started
* always use qt on linux
* fix width
* scrollable area
* talk to NetworkManager
* code to add a connection
* params toggles
* small cleanup
* add qt5 to dockerfile
* Qt on mac
* Add qt to release files
* fix macos build
* nore more ifdefs needed
* add icons
* make a bit nicer
* Hide scrollbar
Co-authored-by: Comma Device <device@comma.ai>
* remove read_model
* remove structs for c-capnp
* remove duplicate #define from modeld
* add function fill_path_points
* fix Indentation
* use MODEL_PATH_DISTANCE instead of 192
* fix type
use validLen
* rename left_path_points&right_path_points to xxx_lane_points
* wip, ready to test
* tweaks
* fix
* fix
* fix power monitoring
* fix param writing
* no forced charging on high voltage
* reset capacity on reboot
* don't shutdown unless started seen
* fix unused var warning
* fix linting errors
* time is always valid
* QCOM gate
* Local params
* decimate saving
* fix linting
* rename param
* Log car battery capacity
* fix put_nonblocking
* Added some unit tests
* Add test to docker test list
* fix precommit
* cleanup
* run tests in CI
* bump cereal
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* alert when update fails more than 10 times
* bring over offroad alert refactor from other branch
* and we have tests
* use it in snapshot
* bump apk
* don't show exceptions on release branches
* only write when changed
* why does delete use so much cpu
* clean that up
* little more
* Add preglobal Forester and Outback
* Tests and values cleanup
* Update units in carstate
* Remove ()
* Add OUTBACK_PREGLOBAL_2018 to non_tested_cars
* Add replay route for OUTBACK_PREGLOBAL_2018
* Car port Genesis G70
* Car port G70
* rebase
* update G70 car port
* Update README.md
* no space
* rebase mistake
* Update values.py
* Update values.py
* Update values.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Add support for Subaru Legacy 2015-18
* syntax fix
* Add Legacy 2018 FPv1
* Add Subaru Ascent from upstream
* Use GLOBAL_CAR and LEGACY_CAR lists
* Change LEGACY_2015 to LEGACY_PREGLOBAL
* Add LEGACY_CAR to carstate
* Change LEGACY_2015 to LEGACY_PREGLOBAL in test_car_models
* Add missing SafetyModel to Ascent
* Use GLOBAL_CAR and LEGACY_CAR to set safetyModel
* Change LEGACY_CAR to PREGLOBAL_CARS, remove GLOBAL_CAR
* Fix PREGLOBAL_CARS in carstate and subarucan
* Minor cleanups
* Add accelCruise button event
* Change Preglobal Driver Torque limit to match Global
* Match comments to upstream
* Use Steer_Warning and Steer_Error_1 only for Global
* Change mph units to match upstream values
* Increase Preglobal brakePressed threshold to 2
* Add DashcamOnly to LEGACY_PREGLOBAL
* Fix typo in variable name
* Update README, add create_preglobal_steering_control
* cleanup carcontroller
* cleanup values
* missed that one
* Update STEER_STEP
* Update STEER_MAX
* Add preglobal signal frequency checks
* remove PREGLOBAL_CARS from subarucan
* Remove whitespace
* Use common frequency checks
* cleanup carstate
* cleanup subarucan
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* refactor exit handling
* test update
* more reliable?
* better
* init git in CI
* testy tester
* CI should work
* test overlay reinit
* only one
* still need to fix loop test
* more patience
* more patience in CI
* no ping in CI
* this is cleaner
* need to run these in jenkins
* clean up
* run in jenkins
* fix test file path
* it's a git repo now
* no commit
* reinit
* remove duplicate
* why not git
* la
* git status
* pythonpath
* fix
* no CI fro now
* check overlay consistent
* more tests
* make more changes in the update commit
* sample
* no k
* add missing chrysler can parser checks
* toyota
* toyota cam
* toyota freqs
* chrysler freqs
* doors
* just chrysler for now
* update refs
* update again
* update for new DBC update
* update to new DBC
* Ioniq uses SCC12. Ioniq EV lim uses FCA11
* update elect gear to EV_PC5 signal
* remove 'alt' from label
* revert
* update name to ev_pc5_gears
* update name to use_ev_pc5_gears
* Update values.py
* Update carstate.py
* bump opendbc
Co-authored-by: xps-genesis <65239463+xps-genesis@users.noreply.github.com>
* run car model unit tests in parallel
* remove refs to deleted file
* run with coverage
* that wasn't necessary
* as builder
* need a new route for this one too
* start on panda abstraction layer
* handle bulk transfer in library
* Safety model abstraction
* Abstract hw type into library
* Handle disconnect
* RTC stuff
* Fan control
* Health
* Panda fw version
* Read serial
* Power saving
* Power mode
* Cleanup pigeon thread init
* Rename safety setter variable name
* Remove comment
* Unused global cleanup
* malloc -> new
* whitespace
* Use std::thread
* Use std::thread for safety setter
* Cleanup igntion_last global
* Heartbeat
* logd
* More global cleanup
* Put back sleep
* ir pwr
* Always broadcast health
* init struct with zeroes
* Fix eon build
* fix race condition
* fix Adeebs comments
* abstract can send and receive
* I like this more
* rewind less
* bump rednose
* falling off windshield detectopr
* adjust thresholds
* this is a soft disable now
* move that
* process replay fixes
* update refs
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* add a minimal uiview file with alias from selfdrive/ui
* make ui_debug executable
* minimize uiview.py; remove os and functions. the processes exit normally when ctrl+c'ing out of the loop
* violating E401 here, save 1 more line
* kill on exit
* forgot signal
* new record! 15 lines
* add comments and declare some common variables. don't need to redefine the messages every loop
* start with radar interface
* car interface
* panda safety rx check
* check panda safety inits
* check NO_RADAR_SLEEP in all radar interfaces
* sonata 2019 and kia optima should use hyundai legacy safety
* check radar errors
* check radar can errors
* real fingerprint
* run in CI
* it shoud pass now
* ignore old openpilot msgs
* ensure safety mode is set
* sort can msgs
* filter out openpilot msgs
* Change carstate signals to use feature-subaru-long dbc
* Add Conventional_Cruise signal to carstate
* Fix Conventional_Cruise signal source
* Use Cruise_Cancel signal in subarucan
* switch to subaru-global-2020 opendbc branch
* Update release file
* bump opendbc
* switch panda to subaru-global-carstate branch
* bump panda
* bump opendbc
* revert submodules for upstream PR
* switch panda and opendbc to upstream
* bump opendbc
* add func usb_write&usb_read
* rename cnt to err
* pass in device handle
* use defines for flag values
* consistent spaces
Co-authored-by: Willem Melching <willem.melching@gmail.com>
* Revert "Fix modeld dropping frames if processing takes over 50 ms"
This reverts commit a8e7a187ca.
* track frame drop
* fix unused
* alert on frame drop perc
* reduce thresholds
* posenet is invalid on non-consecutive frames
* Refactor filter time constant
* Use vipc_dropped_frames for posenet valid check
* Actually set frame drop percentage
* Add explicit cast just to be sure
* Prevent frames dropped to go up to quickly on startup
* bump cereal
* reduce soft disable threshold to 1%
Co-authored-by: Willem Melching <willem.melching@gmail.com>
Us Palisade drivers love BSM as much as the Sonata drivers, maybe more because our blind spots are bigger...
Anyway, BSM is standard across all trims so it's safe to enable support
* enable Wunused, first pass
* unused stuff in snpe model
* these are used on phone
* handle sigint and sigterm in modeld
* fix phone build
* camera qcom
* QCOM build works
* delete unused camerad vars
Co-authored-by: Comma Device <device@comma.ai>
* start building release2 in CI
* build script
* bring over changes from test branch
* fix build release test
* remove references to test branches
* ucnomment push
* fix duplicate remove
* two commits for dashcam
* need the key
* separate scons cache by branch
* debug
* guess you can only call CacheDir once
* remove another call
* pass git branch and commit through
* copytree
* set CI
* WIP sound test
* it does something
* refactor
* phone only
* update release files
* test sound card init
* add to CI
* check writes
* increase time
* unused
* only build cereal
* small tolerance
Co-authored-by: Comma Device <device@comma.ai>
* let's see if this works
* fix build_release actions job
* does jenkins like this config
* separate jenkinsfile for release build
* fix devel build
* devel build should work
* always pass that for now
* run modeld replay
* release2 build will be a separate PR
* pass env to phone shell
* force checkout
* run on real jenkins eons
* add timeout
* rsync
* more timeout
* trailing slash
* fix branch detection
* debug
* not sure why paramiko doesn't pass it through
* newline
* CI_PUSH
* still not passing it
* test branch
* should be good now
* pull CPU usage test out of manager
* remove that
* add to release files
* cleanup
* executable
* this should work
* check if car started procs are running
* debug
* add min cpu usage
* remove debug prints
* adjust min cpu threshold
Co-authored-by: Comma Device <device@comma.ai>
* Add Hyundai BSM signals
to take advantage of BSM to block lane change when BSM active.
* bug, added LCA11 to canparser
previous check failed, fixed by adding LCA11 to canparser
* update refs
Co-authored-by: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com>
* Add initial Forester 2019 support
* Add dgranger15 Forester 2019 FPv1
* fingerprint syntax fix
* FPv1 syntax fix 2
* Add Forester 2019 to CAR
* fix indent
* Add Forester 2019 to test_car_models ignore list
* Update Forester 2019 steering tuning (dgranger15)
* Add Forester 2019 to README.md
* Change lists to single value
* Add test route for Forester 2019
* Remove model year
* Remove Forester model year in test_car_models
* Remove usernames, add Forester ACC speed mph unit value