Igor Biletskyy
285addeef2
Revert "boardd: new class USBDevice ( #23015 )"
...
This reverts commit 4061f50da3
.
2021-12-16 17:11:45 -08:00
Dean Lee
4061f50da3
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>
2021-12-16 16:53:48 -08:00
Robbe Derks
bb7208f4c3
add check for restoring almanac, and clear like suggested in the datasheet ( #23153 )
...
Co-authored-by: Comma Device <device@comma.ai>
2021-12-08 14:13:56 +01:00
Mayfield
5246f0231e
enable wshadow ( #22756 )
...
* enable wshadow (#22714 )
* fix replay
* more build fixes
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-11-02 17:08:53 +01:00
Robbe Derks
21c4bfc7be
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>
2021-10-28 11:23:19 +02:00
Dean Lee
f02c8d0e2c
Handle EINTR for all syscalls that can return it ( #21948 )
2021-08-31 16:22:56 -07:00
Dean Lee
e4e669bb0f
add space after function name and if statement ( #21225 )
2021-06-11 10:17:52 +02:00
Dean Lee
ee46672d3c
Passing arguments by reference ( #21205 )
2021-06-09 14:09:02 +02:00
Dean Lee
c53cb5d570
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
2021-06-08 13:46:22 -07:00
Willem Melching
ea5141d909
Store almanac on ublox poweroff ( #20967 )
...
* Store almanac on ublox poweroff
* send current UTC time
* move message building to ublox_msg.h
2021-05-20 11:43:03 +02:00
HaraldSchafer
e5f93ef142
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
2021-05-14 15:23:27 -07:00
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>
2021-05-08 22:15:17 -07:00
Willem Melching
f7e276fcce
pigeon init add max retry count
2021-04-15 16:49:09 +02:00
Willem Melching
a163daf5e0
Improve robustness of ublox init procedure ( #20685 )
...
* improve ublox init robustness
* cleanup
* only log if running at 1hz
* not needed
2021-04-15 14:11:53 +02:00
Willem Melching
4dd4b12140
Ubloxd cleanup ( #20637 )
...
* clean out locationd/test
* get rid of ubloxd_main
* remove ubloxd_test.cc
* less includes
2021-04-09 18:01:24 +02:00
Adeeb Shihadeh
dd74f09eab
turn pigeon off when going offroad ( #20296 )
...
* cleanup
* power off pigeon
* comment
Co-authored-by: Comma Device <device@comma.ai>
2021-03-09 22:48:27 -08:00
robbederks
99d58193e4
implement ublox MON_HW2 message ( #19962 )
...
* implement MON_HW2 message
* didn't mean to remove this
2021-02-03 13:09:44 +01:00
Dean Lee
91504176e4
Don't call function in assert ( #19997 )
2021-02-02 13:18:11 +01:00
Dean Lee
b06da51892
Pigeon::receive: reserve 4kb+64b for std::string ( #19951 )
...
* receive: reserve 4kb+64b for std::string
* fix bug
2021-02-01 16:22:16 +01:00
Dean Lee
4ac08ce05e
TTYPigeon::send : delete unnecessary temporary variables ( #19898 )
...
Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-01-26 17:33:53 +01:00
Dean Lee
b1660cf585
pigeon: use const reference for std::string parameter ( #19886 )
2021-01-25 20:48:24 -08:00
Dean Lee
595830135b
merge utilpp.h into util.h ( #19710 )
2021-01-10 14:57:32 -08:00
Adeeb Shihadeh
87950eb312
setup clang tidy ( #19533 )
...
* setup clang tidy
* config
* some cleanup
* little more
* remove that
* fix qcom build
2021-01-05 12:50:23 -08:00
Dean Lee
c1cf0882bd
Replace usleep with util::sleep_for ( #19643 )
...
* replace usleep with sleep_for
* sleep microseconds
* sleep nanoseconds
* Trigger Build
2021-01-04 18:03:11 +01:00
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>
2020-08-13 10:10:50 +02:00