Commit Graph

26 Commits

Author SHA1 Message Date
Dean Lee
90d97de74d add function read_db_bytes (#1662) 2020-06-09 13:46:49 -07:00
Willem Melching
19512315ff boardd: no conflate on sendcan (#1645) 2020-06-05 14:20:52 -07:00
Jason Young
68531b071c Reduce scheduler latency for realtime processes (#1638)
* WIP: reduce boardd and other lags

* Copypasta fault

* Silence spurious startup warning

Co-authored-by: Comma Device <device@comma.ai>
2020-06-05 17:09:41 -04:00
Adeeb
7666d99694 Remove common/messaging.h (#1635)
* remove common/messaging.h

* release files
2020-06-05 12:46:49 -07:00
Willem Melching
4cec8bcc30 Fix indentation in board.cc 2020-05-30 10:31:40 -07:00
Yahya Lmallas
3ddbb7fe5b Call to gmtime is potentially dangerous (#1598)
* Call to gmtime is potentially dangerous

* Revert "Call to gmtime is potentially dangerous"

This reverts commit cc531e4e1969f7a615230d8462f0be3258ba3378.

* Call to gmtime is potentially dangerous

* oops

* not a pointer

* Little identation fix
2020-05-30 10:06:29 -07:00
Willem Melching
ab5af232b2 Use C++ version of SubMaster and PubMaster (#1548)
* add PubMaster & SubMaster

remove 'delete msg'

remove headers

* use constructor to initial all submster

* modify drain sockets

* fix typo in ssconscript.remove lines

no checkValid in loggerd

last modify

handle_message:event->&event

fix type

remove heads

event to auto

* new interface

* api changed

* Revert "use constructor to initial all submster"

This reverts commit 73be7ea46250a325ce41d3a0445e34395a2ae692.

* change to new api

* revert loggerd

* dd

* use new PubSub api

* update to new interface

don't modify loggerd

reset panda

reset opendbc

remove empty lines

* switch to new pubMaster

* update to the new inteface

change

remove error code

. to ->

merge paramsd.cc

update panda

fix typo

simplify

fix typo

* Fix build

* always conflate

Co-authored-by: deanlee <deanlee3@gmail.com>
2020-05-21 16:04:33 -07:00
robbederks
71bebc4fca Ambient light calibration parameters on persist partition (#1429)
* WIP: light sensor persistent params

* fix params writing

* Persistent params argument in C params lib. Fixed symlink flow

* Removed debug prints

* fix boardd

* fix ui

* remove debug print
2020-05-08 19:39:18 -07:00
George Hotz
d5ca841b0f Revert "Bypass alignment related copy whenever possible (#1443)"
This reverts commit b225016628.
2020-05-04 09:54:05 -07:00
Erich Moraga
c30b3b9fc9 Line # 9 was a duplicate to # 5 (#1451)
Duplicate line...
#include <string.h>
2020-05-02 08:25:17 -07:00
Dean Lee
b225016628 Bypass alignment related copy whenever possible (#1443)
remove blank lines

add file messagehelp.h

remove blank line

simplify

after review
2020-05-01 19:21:00 -07:00
Willem Melching
02e474580e Release messaging sockets and context on shutdown (#1391)
* release resources when thread is done

* add white space

* add white space

Co-authored-by: deanlee <deanlee3@gmail.com>
2020-04-17 16:37:34 -07:00
Dean Lee
5967690499 fix build warning: libusb_set_debug is deprecated (#1383)
* fix build warning:libuse_set_debug is deprecated

* use enum LIBUSB_LOG_LEVEL_INFO(3)
2020-04-17 13:39:42 -07:00
Dean Lee
dd05d1df83 close usb handle after faile (#1352) 2020-04-13 15:10:47 -07:00
Willem Melching
7d54453f04 No hardcoded bitset size 2020-04-09 13:45:18 -07:00
Willem Melching
f718ceafd5 Populate health.faults from panda health packet 2020-04-09 13:43:00 -07:00
Willem Melching
64f6e0c1d1 Init mutex just to be safe 2020-04-08 14:09:24 -07:00
Willem Melching
7ea2524b6f openpilot support for panda nak (#1324) 2020-04-06 16:49:37 -07:00
Willem Melching
b16e11cde5 Boardd should always send health, even with no panda (#1322)
* dont go offroad when health times out

* always send health packet

* Handle disconnect in thermal

* Handle unplug in power monitoring

* Small cleanup

* Remove copied code

* Add mutex

* Can just use infinite timeout. It will still return if not connected
2020-04-06 16:01:42 -07:00
DeanLee
9bcd5faa70 Fix memory leak in boardd.cc (#1321)
* fix memory leak

* dd
2020-04-06 09:13:34 -07:00
George Hotz
858c992bda Disable Power Down option for desk devices (#1117)
* './params.py DisablePowerDown 1' to use

* fix issues
2020-02-18 11:48:04 -08:00
robbederks
d0c1f9a864 Added hw status to ublox test scripts and ubloxGnss packet (#1054)
* Added hw status to ublox test scripts and ubloxGnss packet

* Added extra config to boardd

* Implemented new ublox message handler in ubloxd

* Fixed debug text

* Added some explanation and cereal bump
2020-02-05 11:12:03 -08:00
Comma Device
58262bac9d use proper timeout on frontFrame to turn off IR leds 2020-01-30 15:52:27 -08:00
Willem Melching
4dac1128f1 Only ignition_last is global 2020-01-30 13:53:19 -08:00
Willem Melching
3a65206c8d Disable IR leds when no ignition detected 2020-01-30 13:42:40 -08:00
George Hotz
ef93a715e1 selfdrive/boardd 2020-01-17 10:51:01 -08:00