Adeeb Shihadeh
f4675fc260
Merge common/ and selfdrive/common ( #24556 )
...
* Merge common/ and selfdrive/common
* fix that
* fix version
* fix unit tests
old-commit-hash: cb8885cffb
3 years ago
Igor Biletskyy
f532819faf
Revert "boardd: new class USBDevice ( #23015 )"
...
This reverts commit 6965aa0b903060ab38aace31c15fefdc7a0429eb.
old-commit-hash: 285addeef2
3 years ago
Dean Lee
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
3 years ago
Robbe Derks
c9ef5b176e
add check for restoring almanac, and clear like suggested in the datasheet ( #23153 )
...
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: bb7208f4c3
3 years ago
Mayfield
43e1903073
enable wshadow ( #22756 )
...
* enable wshadow (#22714 )
* fix replay
* more build fixes
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 5246f0231e
4 years ago
Robbe Derks
a6a2693a1c
Pigeon (ublox) initialization fixes ( #22712 )
...
* add timeout to wait_for_ack
* fix ignition edge detection race condition
* local_ignition -> ignition_local
* gate power_save on !pigeon_active
* millis_since_boot
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 21c4bfc7be
4 years ago
Dean Lee
4c17c06799
Handle EINTR for all syscalls that can return it ( #21948 )
...
old-commit-hash: f02c8d0e2c
4 years ago
Dean Lee
147b355dde
add space after function name and if statement ( #21225 )
...
old-commit-hash: e4e669bb0f
4 years ago
Dean Lee
51cf285c31
Passing arguments by reference ( #21205 )
...
old-commit-hash: ee46672d3c
4 years ago
Dean Lee
f70a79b838
Use C++ header files instead of C header files. ( #21192 )
...
* use cstring instead of string.h
* use cstdio instead of stdio.h
* remove inttypes.h
* use cstdlib instead of stdlib.h
* use cstdint instead of stdint.h
* #include <cstddef>
* cstdlib
* use cmath
* remove stddef.h
* use cassert
* use csignal
* use ctime
* use cerror
* rebase master
old-commit-hash: c53cb5d570
4 years ago
Willem Melching
4d874a90ea
Store almanac on ublox poweroff ( #20967 )
...
* Store almanac on ublox poweroff
* send current UTC time
* move message building to ublox_msg.h
old-commit-hash: ea5141d909
4 years ago
HaraldSchafer
8559ab5ebd
Add ublox interference monitor ( #20911 )
...
* add interference monitor
* new thresholds
* correct labels
* always run for test
* new msg
* add flag
* Revert "always run for test"
This reverts commit b04b92ac2d
.
* add hw status flags
old-commit-hash: e5f93ef142
4 years ago
Dean Lee
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
4 years ago
Willem Melching
548722a954
pigeon init add max retry count
...
old-commit-hash: f7e276fcce
4 years ago
Willem Melching
07f89b2838
Improve robustness of ublox init procedure ( #20685 )
...
* improve ublox init robustness
* cleanup
* only log if running at 1hz
* not needed
old-commit-hash: a163daf5e0
4 years ago
Willem Melching
2d6d92402a
Ubloxd cleanup ( #20637 )
...
* clean out locationd/test
* get rid of ubloxd_main
* remove ubloxd_test.cc
* less includes
old-commit-hash: 4dd4b12140
4 years ago
Adeeb Shihadeh
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
4 years ago
robbederks
8156542312
implement ublox MON_HW2 message ( #19962 )
...
* implement MON_HW2 message
* didn't mean to remove this
old-commit-hash: 99d58193e4
4 years ago
Dean Lee
04adbaf8e1
Don't call function in assert ( #19997 )
...
old-commit-hash: 91504176e4
4 years ago
Dean Lee
6a04e4c06a
Pigeon::receive: reserve 4kb+64b for std::string ( #19951 )
...
* receive: reserve 4kb+64b for std::string
* fix bug
old-commit-hash: b06da51892
4 years ago
Dean Lee
7dc1f76057
TTYPigeon::send : delete unnecessary temporary variables ( #19898 )
...
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 4ac08ce05e
4 years ago
Dean Lee
6f8e6a8d73
pigeon: use const reference for std::string parameter ( #19886 )
...
old-commit-hash: b1660cf585
4 years ago
Dean Lee
4c1919f41e
merge utilpp.h into util.h ( #19710 )
...
old-commit-hash: 595830135b
4 years ago
Adeeb Shihadeh
d89bb8b29c
setup clang tidy ( #19533 )
...
* setup clang tidy
* config
* some cleanup
* little more
* remove that
* fix qcom build
old-commit-hash: 87950eb312
4 years ago
Dean Lee
bbfb751d69
Replace usleep with util::sleep_for ( #19643 )
...
* replace usleep with sleep_for
* sleep microseconds
* sleep nanoseconds
* Trigger Build
old-commit-hash: c1cf0882bd
4 years ago
Willem Melching
938ce91d02
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>
old-commit-hash: 502cc665e0
5 years ago