Igor Biletskyy
603ad435be
add function to list connected pandas to panda.cc ( #21989 )
...
* add list() to panda.cc
* std:size instead of sizeof
* refactor usb init
* change serial length to 26 to get null terminated
* safer char to string
* forgot variable
* initialize descriptor array
* ...
* move init usb out of class
Co-authored-by: Willem Melching <willem.melching@gmail.com>
4 years ago
Igor Biletskyy
fc56ae70ee
Add argument to Panda to connect by serial number ( #21905 )
...
* Add list() to panda.cc
* add default
* change var names
* comments
* advices
* revert
* ...
* ..
* connect by serial
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
4 years ago
Adeeb Shihadeh
f04d6a9b3f
log on startup when panda heartbeat is lost ( #21151 )
...
* log when heartbeat lost
* bump panda
* bump panda
* add to pandaState
* move that
4 years ago
Dean Lee
0495426535
Cleanup includes ( #20925 )
...
* remove #include <pthread.h>
* remove #include<stdbool.h> for cc files
* remove #include<iostream>
4 years ago
Adeeb Shihadeh
e694f0b4d6
boardd: set can and pandaState valid flags ( #20899 )
...
* boardd: set can and pandaState valid flags
* add event
* bump cereal
* consistency
4 years ago
Dean Lee
7222d0f20d
Cleanup selfdrive/ includes ( #20822 )
...
* cleanup include path
* continue
* format includes
* fix testraw.cc
* remove include path from SConstruct
* regroup
* rebase master
* almost done
* apply review
* rename FileReader.xx to filereader.xx
* rename Unlogger.x->unlogger.x
* rename FrameReader.xx -> framereader.xx
* apply reviews
* ui.h
* continue
* fix framebuffer.cc build error:mv util.h up
* full path to msm_media_info
* fix qcom2 camerad
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Willem Melching
34328ba305
Remove panda set power functions ( #20712 )
...
* remove panda set power functions
* removed
4 years ago
Willem Melching
3c23226edc
verify safetyParam read back from PandaState ( #20384 )
...
* verify safetyParam read back from PandaState
* update ref
* bump panda
4 years ago
Adeeb Shihadeh
dd74f09eab
turn pigeon off when going offroad ( #20296 )
...
* cleanup
* power off pigeon
* comment
Co-authored-by: Comma Device <device@comma.ai>
4 years ago
Adeeb Shihadeh
312b681a46
cereal cleanup part 2 ( #20092 )
...
* car stuff
* thermal
* Revert "car stuff"
This reverts commit 77fd1c65eb
.
* panda state
* camera stuff
* start deg
* most is building
* builds
* planner + controls run
* fix up paramsd
* cleanup
* process replay passes
* fix webcam build
* camerad
* no more frame
* thermald
* ui
* paramsd
* camera replay
* fix long tests
* fix camerad tests
* maxSteeringAngle
* bump cereal
* more frame
* cereal master
4 years ago
Adeeb Shihadeh
000bd226aa
Cereal cleanup ( #20003 )
...
* start cleanup
* fan speed
* cleanup dm
* fix cereal
* hwType -> pandaType
* update refs
* update refs
* bump cereal
* freeSpacePercent
* cereal master
4 years ago
Dean Lee
0b75a85adc
Panda: use 'std::atomic<bool> connected' to ensure thread-safety ( #19954 )
4 years ago
Dean Lee
c4215d8476
Panda: refactor get_firmware_version, return std::optional<std::vector> ( #19896 )
...
Co-authored-by: Willem Melching <willem.melching@gmail.com>
4 years ago
Dean Lee
96cc633d91
panda: refactor get_serial, return std::optional<std::string> ( #19895 )
4 years ago
Dean Lee
b0c0de5b66
Fix panda: dangling pointer problem in can_receive ( #19892 )
...
* refactor can_receive
* still send empty msg
4 years ago
Dean Lee
5594b8f3cb
Panda: replace pthread_mutex with std::mutex ( #19909 )
4 years ago
Shane Smiskol
5eea86cbf4
Abstract set_unsafe_mode function to Panda ( #2431 )
...
* Abstract set_unsafe_mode function to panda.cc
* whoops
* use uint16_t
5 years ago
Willem Melching
502cc665e0
Pigeon abstraction layer ( #1977 )
...
* pigeon abstraction layer
* Fix string literals
* more generic pigeon class
* add TTYpigon
* nicer tty error handling
* close tty fd on pigeon delete
* pigeon receive return std::string
* use sizeof
* max receive size to prevent infinite loop
* remove namespace
* add unistd include for usleep
* fix is pigeon
* Handle tty error in opening
* fix printing binary strings with dump.py
* fix pigeon build on macos
* Handle errors seperately
Co-authored-by: Comma Device <device@comma.ai>
5 years ago
Willem Melching
80acb32825
Panda abstraction layer in boardd ( #1919 )
...
* 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
5 years ago