Commit Graph

143 Commits

Author SHA1 Message Date
Adeeb Shihadeh 88434dc9e4 add CLEAR_ON_IGNITION param type (#20810)
old-commit-hash: b4447993c10b36628cb72b58dba8104c9060bb7f
2021-05-04 11:32:40 -07:00
Adeeb Shihadeh 532d19427c bump cereal
old-commit-hash: 8a280fbb8eb433fbfe0fc43254c9cbdaceedbab6
2021-05-03 20:47:11 -07:00
Adeeb Shihadeh e09f7360e0 clear controls ready flag on falling edge of ignition (#20807)
old-commit-hash: 6954eb62595474d6f1e974f1cdcad72e79d1fe5d
2021-05-03 19:09:42 -07:00
Adeeb Shihadeh ec7913cbe5 delay controls start (#20761)
* delay controls start

* shouldn't need this stuff anymore

* only delay board

* bail after 2s

* fix loopback test

* fix process replay

* update refs

* bump cereal

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: f9a961f6fb69f36f8a113246920b2d71e6af8ae1
2021-04-30 13:55:17 -07:00
Willem Melching 1d79459667 Remove panda set power functions (#20712)
* remove panda set power functions

* removed
old-commit-hash: 34328ba3056557e2efc614ca35e8d04a480b6caa
2021-04-20 15:31:19 +02:00
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: a163daf5e024867d7301f4e20bea20fba4bb59ae
2021-04-15 14:11:53 +02:00
Adeeb Shihadeh 31d818b39a tici: offline big cluster while offroad (#20668)
* tici: offline big cluster while offroad

* shuffling

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 9edda6fbc1e4030e2e86ec7041d81c39cd27c8a0
2021-04-12 23:06:24 -07:00
Willem Melching 811746959e tici: move real-time processes to high-performance cores (#20634)
old-commit-hash: 8ede1b30aab2a4bfb628aef6a24714865388f1fa
2021-04-09 13:41:43 +02:00
Comma Device 854273a57e boardd: log slow hwmon reading
old-commit-hash: 28a5db2e6a4de8e5bc55bf98e3e91de3827eb632
2021-04-09 00:13:01 -07:00
Willem Melching f77889a0d5 cloudlog on RTC read/write (#20536)
* cloudlog on RTC read/write

* log with correct offsets

* log old rtc time when updating

* compute dt

* fixes

* utc

* if more than 1
old-commit-hash: 301b75517913a75a1455d9bf0c8c6753aced351a
2021-03-30 11:29:58 -07:00
Dean Lee 405df8b165 Params: python-like interface (#20506)
* rebase master

* delete outdated test_params.c

* putBool & more robust getBool

* putBool(SshEnabled)
old-commit-hash: 98e55996f67aaaf715c941d417ae4d3b0187f388
2021-03-30 12:54:59 +02:00
Willem Melching c64d818341 use class AlignedBuffer (#20388)
* use class AlignedBuffer from cereal (#20343)

* AlignedBuffer

* move AlignedBuffer to cereal/messaging.hpp

* rename function aligned to get

* use overloaded function AlignedBuffer:: get(Message *)

* use AlignedBuffer

Co-authored-by: Dean Lee <deanlee3@gmail.com>
old-commit-hash: 0a88304e8d51ef8dac881ac9bb16d5de11f184a3
2021-03-17 14:43:23 +01:00
Willem Melching e3d92dc714 verify safetyParam read back from PandaState (#20384)
* verify safetyParam read back from PandaState

* update ref

* bump panda
old-commit-hash: 3c23226edc2d328c489cc01a0950e6e4748d26a1
2021-03-17 14:20:05 +01:00
Willem Melching d61654abc3 Revert "use class AlignedBuffer from cereal (#20343)"
This reverts commit df9e836779af0c145efc933b88bbc94f59f2b378.

old-commit-hash: e3ad952902ed38530b56b10f39dc67d7232fd28c
2021-03-16 20:21:03 +01:00
Dean Lee 4c02da3f0a use class AlignedBuffer from cereal (#20343)
* AlignedBuffer

* move AlignedBuffer to cereal/messaging.hpp

* rename function aligned to get

* use overloaded function AlignedBuffer:: get(Message *)
old-commit-hash: 7aa379e123aba70a4c36f95e69786a558892dc2d
2021-03-16 11:13:15 +01:00
Willem Melching 34d83b2ba1 ublox logs level logging.debug -> logging.info
old-commit-hash: 8573bdbf2fd3e761bd50a3a8fab051b21e586a0a
2021-03-15 12:53:54 +01:00
Willem Melching 297cc474b5 boardd.cc: lower log level of ublox timing issues
old-commit-hash: aaf9ceac4bd67a72edb2c532f17d2cc8e003436c
2021-03-15 12:14:30 +01:00
Willem Melching 651ea8f981 boardd: stricter ublox logging
old-commit-hash: 70d683261cf0db59edd663018544d15de411fe26
2021-03-10 14:50:26 +01:00
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: dd74f09eab0a488a122fec8ca4e5c883bf2f7494
2021-03-09 22:48:27 -08:00
Willem Melching 1e55a9b924 boardd: 0.9s timeout, only log no reset
old-commit-hash: d66661fa67783eda78fa51f529c91e61a4c21bbd
2021-03-09 17:54:40 +01:00
Willem Melching 4197ead742 boardd: increase CLASS_RXM timeout
old-commit-hash: 6884d7c9bd36aabb57c9f8d3a34d407031867b05
2021-03-09 17:28:19 +01:00
Willem Melching 0f4ba88dd2 boardd: remove check on CLASS_MON
old-commit-hash: fbdeee5738a5dee9dbbbcb3cdad4dee89646b519
2021-03-09 15:45:22 +01:00
Willem Melching 5de49edc10 board: respect 10 second ublox init time
old-commit-hash: fff5cde352dff35958c5209525d1dcc02b57d610
2021-03-09 12:05:16 +01:00
Willem Melching ee090e1981 Boardd: Track ublox message frequency and re-init (#20278)
* track message frequency

* also keep old reset trigger

* cleanup

* improve comments

* Add 10 seconds

* these are now signed

* also check ignition last

* cleanup

* correct include

* lower threshold

* dont clear map
old-commit-hash: 4fc81c2a08515b0eb3cd1afada05265724193de0
2021-03-09 11:49:58 +01:00
Dean Lee 2654277bc3 use cached buffer for FlatArrayMessageReader (#20233)
old-commit-hash: 12928cdae2e21f59211b19cfe40e432506576212
2021-03-08 11:02:21 +01:00
robbederks b13f6b4288 also shutdown on tici (#20130)
old-commit-hash: 35b43d2084e78724a4faff60ad91e84a361e630c
2021-02-22 15:46:22 +01:00
Adeeb Shihadeh 05eb44115e cereal cleanup part 2 (#20092)
* car stuff

* thermal

* Revert "car stuff"

This reverts commit 77fd1c65ebd01abfa8493ae12c9e6b14f7ada976.

* 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
old-commit-hash: 312b681a46b8153314a8420611b6479dd6f70dfc
2021-02-16 21:39:32 -08:00
Adeeb Shihadeh 829ab2dff3 fanSpeedRpmDesired -> fanSpeedPercentDesired
old-commit-hash: 4ace476f14bb73c354234c6bbedbc4ea0bf2d402
2021-02-11 17:00:26 -08:00
Dean Lee 31a811ca45 boardd: check do_exit in usb_retry_connect (#20007)
old-commit-hash: 2a935a2010a2ffb2ef3a35b1e49fdab8ef1dc10a
2021-02-08 12:01:12 +01:00
Adeeb Shihadeh 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: 000bd226aa9902da01e6010bf26762fca2c20df0
2021-02-03 19:57:30 -08:00
Dean Lee 0346652a66 move global connected_once into function static (#19999)
old-commit-hash: 13ea8b5fc9e7742eea4b1b2e0e036b12e0cdce6a
2021-02-02 14:39:19 +01:00
Dean Lee 11defbb77f pigeon_thread: ensure the pigeon->init() will not be called twice (#19963)
* ensure init is not called twice

* add space
old-commit-hash: 3fde3a5f7d924062d47ebe934af1865e43a08dc9
2021-01-31 12:55:11 -08:00
Dean Lee 2162aae01b pigeon_publish_raw: use capnp::Data::Reader instead of Builder (#19952)
old-commit-hash: b0c8ce486394f010bd031b9f22f6e0679aeed5a4
2021-01-30 19:16:21 -08:00
Dean Lee 6bd51543e5 boardd: remove global variables spoofing_started&fake_send (#19966)
old-commit-hash: 4d6584a315f172b62463ad64393624f81d61066a
2021-01-31 00:02:03 +01:00
Dean Lee 760b707597 boardd: refactor usb_connect, delete panda on failure (#19956)
old-commit-hash: dd3a2606765e51631034677df81b1513a74d503a
2021-01-29 13:10:56 +01:00
Dean Lee 24ffdd6183 Panda: refactor get_firmware_version, return std::optional<std::vector> (#19896)
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: c4215d8476219cca33f85adc5ce0a425891c62c5
2021-01-28 16:25:05 +01:00
Dean Lee 7194e5926e panda: refactor get_serial, return std::optional<std::string> (#19895)
old-commit-hash: 96cc633d915caf5fd5a8eeee196db55ca8277c91
2021-01-28 16:21:18 +01:00
Dean Lee 2f3ae6ba78 fix indentation (#19925)
old-commit-hash: 511bad6a9ffea248dce81631fb58b3d020a4117b
2021-01-26 14:43:37 -08:00
Dean Lee b16842b512 boardd: use setUbloxRaw to avoid memory alloc&copy in pigeon_publish_raw (#19884)
* use setUbloxRaw to avoid memory copy

* const std::string &dat
old-commit-hash: 0f8b5db8cefdd53c06ffd4867b8915d12f6e4603
2021-01-26 17:21:02 +01:00
Dean Lee c8935f44a1 Fix panda: dangling pointer problem in can_receive (#19892)
* refactor can_receive

* still send empty msg
old-commit-hash: b0c0de5b668ff5dbb4d1bf8e212d6136b77c162b
2021-01-26 16:04:38 +01:00
Dean Lee c1e97c00bb boardd: use std::atomic for ignition to ensure thread-safety (#19882)
old-commit-hash: 83003bdeac6ff082124b3e5a2f1fdda2644cb228
2021-01-22 15:26:27 -08:00
Dean Lee daf160a27c boardd: declare MessageBuilder close to usage (#19883)
old-commit-hash: 2df9736bb260b4efa1661d678395f630a0c4f407
2021-01-22 15:25:54 -08:00
Dean Lee 4c1919f41e merge utilpp.h into util.h (#19710)
old-commit-hash: 595830135bb79c8b23eb8339ae768ca7b6a822f8
2021-01-10 14:57:32 -08:00
Willem Melching bd9b1eb62f Fix battery voltage reading (#19699)
* tici: correct battery voltage

* read current

* use current too
old-commit-hash: 0cdb9e86583e4a7997a65bab0f785b2bf9311287
2021-01-08 17:21:58 +01:00
Dean Lee 5e557ed96d common exit handler (#19661)
* common signal handle

* fix typo

* rename to ExitHandler

* remove include signal.h

* remove include csignal

* rename variable exit to v

* rebase master
old-commit-hash: 86fe2d1697531bebdf5d0d83609e91ed4006f54b
2021-01-05 20:19:53 -08:00
Adeeb Shihadeh d89bb8b29c setup clang tidy (#19533)
* setup clang tidy

* config

* some cleanup

* little more

* remove that

* fix qcom build
old-commit-hash: 87950eb3127e175f0f2b0bb42440f5350c679369
2021-01-05 12:50:23 -08:00
Dean Lee bbfb751d69 Replace usleep with util::sleep_for (#19643)
* replace usleep with sleep_for

* sleep microseconds

* sleep nanoseconds

* Trigger Build
old-commit-hash: c1cf0882bd4e0fce5e1a581536f6a0e7afb640e6
2021-01-04 18:03:11 +01:00
Adeeb Shihadeh 5bbe4f3d52 manager tests + make all processes exit cleanly (#19595)
* manager tests

* logcatd exits cleanly

* sigint

* boardd

* multiple dbus connections hangs for some reason

* clocksd proclogd

* network type from thermal

* fix tests

* fix android logcatd

* fix mac

* fix mac proclogd

* move on device athena tests

* build first

* build first

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ffa7e0cbdb0859751685caae1321d3ccf732fed9
2020-12-29 22:32:03 -08:00
robbederks 0fe9e3adf6 Don't re-init pigeon while offroad (#2687)
* don't re-init pigeon while offroad

* we don't need this
old-commit-hash: 80dbda534218dec02d7530c8131afe840be49bd0
2020-12-03 17:54:46 +01:00
Willem Melching 67249ef8aa Stricter check on date for RTC time sync (#2582)
* More strict check on time

* Also update thermald
old-commit-hash: ff65dc1401681ca71f6449c5e059eb7a2fb2256c
2020-11-20 11:47:39 +01:00