* prepare a test for valgrind by fixing linter issues
* something went wrong
* Try update cereal
* Not working, fixing replay_learning.py
* Testing
* Testing
* Working now
* More logs, a bit of cleaning, still no idea how this works
* Ok got 10% cleaning done
* trying some stackOverflow code
* Lots of cleaning
* wip
* Delete valgrind_testing.py
* Delete replay_learning.py
* Add to CI, cannot fail though
* Add to CI, cannot fail though
* Now the unit test should fail
* Dump valgrind output in case of a failure
* fix subrepos
* fix subs
* hopefully fixes every issue that we have
* wait for message confirmation
* Revert "wait for message confirmation"
This reverts commit ad7ba280ec.
* fix local issues
* Revert "fix local issues"
This reverts commit 4498df21df.
* attempt 3 to fix things
* untested function extraction
* refactor
* add valgrind task
* add delay and BASEDIR
* Make test not fail, it is not designed for that
* fix subrepositories
* fix tests
* Real fix now :)
* scons
* ... stupid CI
* fix valgrind CI
* Update test.yaml
* Update test.yaml
* Update test.yaml
* add valgrind logs as file
* remove delays
* kill process more reliably
* rename action
* small cleanup
* fix casting to int in case of large leaks
Co-authored-by: Willem Melching <willem.melching@gmail.com>
* compile flag for cython
* fix more setups
* bump cereal
* reenable mac build
* don't let that fail the build
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* loggerd:refactor rotate encoder
* change notify_all to notify_one
* finish
* cancelWait
* start front_encoder_thread on need
* rebase master to resolve conflict
* tici qcam works, but
* ifs are ugly
* synced rotate off frame ids
* only start counting frames after modeld alive
* typo
* fix some bugs
* never over rotate
* works
* missing space
* zero frame count tolerance
* lol
* add back omx race protection
* not need that
* not to confuse different locks
* playing with locks is playing with fire
* tici now has qcam
* size is overrated
* make cppcheck happy
* fall back if no camera
* warn
* missing condition
* first is freestyle
* no stream id before connecting
* wait for increment
* first will be imperfect
* wait is futile
* block frames when writing state
* just log write time
* exit loops when exit
* tici qcamera
* fixed
* add atomics
* incl
Co-authored-by: deanlee <deanlee3@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
* run loggerd tests in jenkins
* fast
* check segs on the fly
* missing import
* wait for dir
* no thread
* relax FILE_SIZE_TOLERANCE
* cleanup
* unused
* set ci flag
* wait longer for first seg
* fix race condition with setting RecordFront
Co-authored-by: ZwX1616 <zwx1616@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
* pre-reqs for honda bosch longitudinal control
* openpilot_longitudinal_control -> radar_disabled
* fix chrysler test
* review feedback
* little cleaner
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* git ping
* cleanup overlay init
* separate update available check from fetch
* cleanup setting params
* only fetch neos update on android
* move that
* type hints
* lightweight update check with git ls-remote
* git fetch dry run
* cleanup
* 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