f532819faf 
								
							
								 
							
						 
						
							
							
								
								Revert "boardd: new class USBDevice ( #23015 )"  
							
							... 
							
							
 
							
							This reverts commit 6965aa0b903060ab38aace31c15fefdc7a0429eb.
old-commit-hash: 285addeef2 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								49c35a70b5 
								
							
								 
							
						 
						
							
							
								
								boardd: new class USBDevice ( #23015 )  
							
							... 
							
							
 
							
							* USBDevice
* merge master
* rebase master
* add to fiels_common
* inline functions
* namespace
* init err
* remove nested if
* cleanup
* bump panda for branch
* change includes
* bump panda branch
* change name
* bump master panda
Co-authored-by: Igor Biletskyy <briskspirit@users.noreply.github.com>
Co-authored-by: Igor Biletskyy <bs@privacy.im>
old-commit-hash: 4061f50da3 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								0386f99c1f 
								
							
								 
							
						 
						
							
							
								
								boardd: add controls heartbeat ( #23185 )  
							
							... 
							
							
 
							
							* boardd: add controls heartbeat
* bump panda
* bump again
* bump panda
old-commit-hash: a793b949be 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								a0c6a65d09 
								
							
								 
							
						 
						
							
							
								
								panda: refactor can_send ( #22981 )  
							
							... 
							
							
 
							
							* refactor
* merge master
* fix
* move  down
* space
* merge master
* remove struct PacketWriter, use function
* Update selfdrive/boardd/panda.cc
less violations
* Update selfdrive/boardd/panda.cc
comment
* Update selfdrive/boardd/panda.cc
add comment to counter
Co-authored-by: Igor Biletskyy <briskspirit@users.noreply.github.com>
old-commit-hash: 827fae8faa 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								be3a376967 
								
							
								 
							
						 
						
							
							
								
								len_to_dlc make static ( #23120 )  
							
							... 
							
							
 
							
							old-commit-hash: e294e1620e 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								15bac98ad4 
								
							
								 
							
						 
						
							
							
								
								panda: refactor can_recv ( #22977 )  
							
							... 
							
							
 
							
							* refactor
* use macro
* rebase master
* fix incorrect chunk_len
* cleanup
* type fix
* lines
* while
Co-authored-by: Igor Biletksyy <bs@privacy.im>
old-commit-hash: 599c07e027 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								ce565323fd 
								
							
								 
							
						 
						
							
							
								
								boardd: split usbprotocol unittest and fix paren order in data length assert ( #23065 )  
							
							... 
							
							
 
							
							old-commit-hash: 65ca9be82a 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								9055f2df79 
								
							
								 
							
						 
						
							
							
								
								Extra check for tail_size length ( #23047 )  
							
							... 
							
							
 
							
							old-commit-hash: b2a018643f 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								327767f93f 
								
							
								 
							
						 
						
							
							
								
								Revert "boardd: be careful with paren order in assert"  
							
							... 
							
							
 
							
							This reverts commit c221485bd1eebbab87f6b5a579e66e10767fcdf8.
old-commit-hash: c6f62ebc4f 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								6475085095 
								
							
								 
							
						 
						
							
							
								
								boardd: be careful with paren order in assert  
							
							... 
							
							
 
							
							old-commit-hash: 50cd8588a2 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								a919e5721e 
								
							
								 
							
						 
						
							
							
								
								panda: add unit tests for usb protocol (pack/unpack) ( #22955 )  
							
							... 
							
							
 
							
							* prepare for unit tests
* add to selfdrive_tests.yaml
* test header
* test chunk count
* rename test function
* continue
* don't check chunks count
* test recv_can
* continue
* small cleanup
* merge master
* cleanup
* rename functions
* test different packet size
* fix operator precedence problem
* refactor unpack_can_buffer
* cleanup test
* cleanup unpack_can_buffer
* add test for multiple pandas
* rename to test_panda
* restore test_boardd
* rename to test_boardd_usbprotocol
* fix typo
* bus_offset = [0,4]
* change src
* use USBPACKET_MAX_SIZE
old-commit-hash: c77354009c 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								989270ac56 
								
							
								 
							
						 
						
							
							
								
								fix chunk buffer size ( #22969 )  
							
							... 
							
							
 
							
							old-commit-hash: edaf7d7604 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								1cf28894e6 
								
							
								 
							
						 
						
							
							
								
								panda: fix len_to_dlc always return 1 if len > 24 ( #22964 )  
							
							... 
							
							
 
							
							old-commit-hash: 57db99700c 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								433add3a02 
								
							
								 
							
						 
						
							
							
								
								boardd/can_recv_thread: improve caching for can_frame ( #22944 )  
							
							... 
							
							
 
							
							* better cache
* use emplace to remove copy&realloc
* rebase master
old-commit-hash: 841fb93def 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								8844b560d0 
								
							
								 
							
						 
						
							
							
								
								panda.cc: struct for CAN header, counter complexity, cleanup for readability ( #22956 )  
							
							... 
							
							
 
							
							* try struct
* can_send refactor
* cleanups
* Resize vector only when it is needed
* ...
* more cleanup
old-commit-hash: 47d0d717eb 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								34ad595349 
								
							
								 
							
						 
						
							
							
								
								panda.cc: add functions to set can and data speed ( #22920 )  
							
							... 
							
							
 
							
							old-commit-hash: 04e1a25881 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								1896097480 
								
							
								 
							
						 
						
							
							
								
								boardd: apply bus offset in can recv  
							
							... 
							
							
 
							
							old-commit-hash: 5ffb3e4347 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								841c20b412 
								
							
								 
							
						 
						
							
							
								
								New usb protocol for panda ( #22752 )  
							
							... 
							
							
 
							
							* first try
* move dlc_to_len
* panda switch to mailbox branch
* add bitstruct to pipfile
* bump panda and remove bitstruct
* few cleanups and fixes
* sanity check data.size == dlc_to_len
* check problem with test
* Revert "check problem with test"
This reverts commit b4855b7c12188d36d5d510e729344dab2cf21be9.
* clean
* revert Pipfile.lock
* that was an issue???
* fix crash
* ...
* include dlc_to_len from panda
* alph
* define macros for returned and rejected
* cleanup
* bump panda to current master
old-commit-hash: e293ccf016 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								dbe4641e04 
								
							
								 
							
						 
						
							
							
								
								Multipanda support ( #22402 )  
							
							... 
							
							
 
							
							* squash all PR commits for easy rebase
* merged all panda rx can into one message
* fix buffers in can_send
* more cleanup and minor fixes
* fix even more stuff
* fix non-allocated send buffer
* make connecting more robust
* fix bus offset
* fix controls_mismatch?
* simplify mismatch check
* C++ style struct
* fix connect loop
* update ref
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 585c16cd2a 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								39811d083f 
								
							
								 
							
						 
						
							
							
								
								boardd: reduce unnecessary allocations ( #22494 )  
							
							... 
							
							
 
							
							old-commit-hash: 2f1ab63920 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								6762c152de 
								
							
								 
							
						 
						
							
							
								
								boardd: fix context leak in init_usb_ctx ( #22472 )  
							
							... 
							
							
 
							
							old-commit-hash: 43d9478740 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								11066c6236 
								
							
								 
							
						 
						
							
							
								
								Split pandaState into peripheralState and pandaState ( #22385 )  
							
							... 
							
							
 
							
							* publish peripheralState from boardd
* refactor consumers
* rename thread
* peripheralState has panda type too
* add to process replay
* fix device build
* properly remove hardware unsupported alert
* latest peripheralState
* remove pandaState from thermal_monitor
* put that back
* add back harness check
* fix cloudlog
* needs pandaState
* Update selfdrive/thermald/tests/test_power_monitoring.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* dont conflate
* Update selfdrive/thermald/tests/test_power_monitoring.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* pigeon is peripheral
* cleanup
* less global
* comment
* move rtc to peripheral_control_thread
* better diff?
* whitespace
* get msg
* bump cereal
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: f4e2537b12 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								5afeb1e0a3 
								
							
								 
							
						 
						
							
							
								
								panda: call libusb_free_device_list before libusb_exit ( #22162 )  
							
							... 
							
							
 
							
							old-commit-hash: a077b8a566 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								9a1fa559ba 
								
							
								 
							
						 
						
							
							
								
								Panda::list: remove call to libusb_release_interface ( #22157 )  
							
							... 
							
							
 
							
							old-commit-hash: c61e7c7898 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								31adaa3906 
								
							
								 
							
						 
						
							
							
								
								panda: fix dev_list may be freed twice on failure ( #22161 )  
							
							... 
							
							
 
							
							old-commit-hash: 83cd67ddb5 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								7611b94e51 
								
							
								 
							
						 
						
							
							
								
								fix boardd reconnect loop ( #22081 )  
							
							... 
							
							
 
							
							* fix boardd reconnect loop
* add that back
old-commit-hash: 0e3462e051 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								2e1ea456f0 
								
							
								 
							
						 
						
							
							
								
								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>
old-commit-hash: 603ad435be 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								b82c83ccae 
								
							
								 
							
						 
						
							
							
								
								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>
old-commit-hash: fc56ae70ee 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								147b355dde 
								
							
								 
							
						 
						
							
							
								
								add space after function name and if statement ( #21225 )  
							
							... 
							
							
 
							
							old-commit-hash: e4e669bb0f 
							
						 
						
							4 years ago  
				
					
						
							
							
								 
						
							
							
								5609f32cee 
								
							
								 
							
						 
						
							
							
								
								Cleanup includes ( #20925 )  
							
							... 
							
							
 
							
							* remove #include <pthread.h>
* remove #include<stdbool.h> for cc files
* remove #include<iostream>
old-commit-hash: 0495426535 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								3fbeb1299e 
								
							
								 
							
						 
						
							
							
								
								boardd: set can and pandaState valid flags ( #20899 )  
							
							... 
							
							
 
							
							* boardd: set can and pandaState valid flags
* add event
* bump cereal
* consistency
old-commit-hash: e694f0b4d6 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								e333e4f189 
								
							
								 
							
						 
						
							
							
								
								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>
old-commit-hash: 7222d0f20d 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								532d19427c 
								
							
								 
							
						 
						
							
							
								
								bump cereal  
							
							... 
							
							
 
							
							old-commit-hash: 8a280fbb8e 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								1d79459667 
								
							
								 
							
						 
						
							
							
								
								Remove panda set power functions ( #20712 )  
							
							... 
							
							
 
							
							* remove panda set power functions
* removed
old-commit-hash: 34328ba305 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								865974a40b 
								
							
								 
							
						 
						
							
							
								
								turn pigeon off when going offroad ( #20296 )  
							
							... 
							
							
 
							
							* cleanup
* power off pigeon
* comment
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: dd74f09eab 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								05eb44115e 
								
							
								 
							
						 
						
							
							
								
								cereal cleanup part 2 ( #20092 )  
							
							... 
							
							
 
							
							* car stuff
* thermal
* Revert "car stuff"
This reverts commit 77fd1c65eb312b681a46 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								966945880b 
								
							
								 
							
						 
						
							
							
								
								Cereal cleanup ( #20003 )  
							
							... 
							
							
 
							
							* start cleanup
* fan speed
* cleanup dm
* fix cereal
* hwType -> pandaType
* update refs
* update refs
* bump cereal
* freeSpacePercent
* cereal master
old-commit-hash: 000bd226aa 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								35fe949cd8 
								
							
								 
							
						 
						
							
							
								
								fix panda: remove uninitialized err and check after ( #19974 )  
							
							... 
							
							
 
							
							old-commit-hash: edc2b3f67c 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								53957eec3f 
								
							
								 
							
						 
						
							
							
								
								Panda: add check for connected in usb_read ( #19957 )  
							
							... 
							
							
 
							
							old-commit-hash: c723bbd6be 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								24ffdd6183 
								
							
								 
							
						 
						
							
							
								
								Panda: refactor get_firmware_version, return std::optional<std::vector> ( #19896 )  
							
							... 
							
							
 
							
							Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: c4215d8476 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								7194e5926e 
								
							
								 
							
						 
						
							
							
								
								panda: refactor get_serial, return std::optional<std::string> ( #19895 )  
							
							... 
							
							
 
							
							old-commit-hash: 96cc633d91 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								f2ad4e28a6 
								
							
								 
							
						 
						
							
							
								
								remove legacy reset line support ( #19770 )  
							
							... 
							
							
 
							
							old-commit-hash: 8c31ab3cee 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								2f3ae6ba78 
								
							
								 
							
						 
						
							
							
								
								fix indentation ( #19925 )  
							
							... 
							
							
 
							
							old-commit-hash: 511bad6a9f 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								06b8f1042b 
								
							
								 
							
						 
						
							
							
								
								Panda: add can_send buffer caching ( #19910 )  
							
							... 
							
							
 
							
							old-commit-hash: 5c58a2618e 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								c8935f44a1 
								
							
								 
							
						 
						
							
							
								
								Fix panda:  dangling pointer problem in can_receive ( #19892 )  
							
							... 
							
							
 
							
							* refactor can_receive
* still send empty msg
old-commit-hash: b0c0de5b66 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								fe457a93d5 
								
							
								 
							
						 
						
							
							
								
								Panda: replace pthread_mutex with std::mutex ( #19909 )  
							
							... 
							
							
 
							
							old-commit-hash: 5594b8f3cb 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								4c1919f41e 
								
							
								 
							
						 
						
							
							
								
								merge utilpp.h into util.h ( #19710 )  
							
							... 
							
							
 
							
							old-commit-hash: 595830135b 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								bbfb751d69 
								
							
								 
							
						 
						
							
							
								
								Replace usleep with util::sleep_for ( #19643 )  
							
							... 
							
							
 
							
							* replace usleep with sleep_for
* sleep microseconds
* sleep nanoseconds
* Trigger Build
old-commit-hash: c1cf0882bd 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								c038a38f88 
								
							
								 
							
						 
						
							
							
								
								add legacy reset line support ( #2625 )  
							
							... 
							
							
 
							
							* add legacy reset line support
* clean up names
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 57cd8c38b7 
							
						 
						
							5 years ago  
				
					
						
							
							
								 
						
							
							
								2b9b7182d8 
								
							
								 
							
						 
						
							
							
								
								Abstract set_unsafe_mode function to Panda ( #2431 )  
							
							... 
							
							
 
							
							* Abstract set_unsafe_mode function to panda.cc
* whoops
* use uint16_t
old-commit-hash: 5eea86cbf4 
							
						 
						
							5 years ago