Commit Graph

12534 Commits

Author SHA1 Message Date
Lukas Petersson 3ea92f6cd3 Latencylogger optimization (#24166) 2022-04-13 13:50:57 -07:00
Willem Melching 0b2b1f3e56 updated: reduce data usage (#24204)
* reduce updated data usage

* Update selfdrive/updated.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-04-13 13:48:38 -07:00
Adeeb Shihadeh c810198815 Subaru: remove rest of CAN fingerprints (#24195) 2022-04-13 11:48:14 -07:00
Gijs Koning e0845752e3 Fix camera error description (#24202)
* Fix camera error message

* Shorter
2022-04-13 09:56:37 -07:00
Shane Smiskol 5159878389 fix regen: specify frame timestamps for modeld (#24200)
* grab main frames when not using extra

* the actual fix
2022-04-12 23:07:33 -07:00
Adeeb Shihadeh 49c2164814 add alert for CAN bus timeout (#24162)
* add alert for CAN bus timeout

* add alert

* set in interface

* cleanup

* cleanup

* add event

* fix mock

* bump

* bump opendbc

* update refs

* return reader
2022-04-12 22:58:34 -07:00
Shane Smiskol 3ff14adbd6 Subaru: add missing Impreza fw versions (#24194)
* add missing impreza fw versions

* these are duplicate

* this fw version flipped on the 5th for michael and never switched back
2022-04-12 17:15:27 -07:00
Shane Smiskol 9f3245fea7 regen: use setup_env from process replay (#24197)
* use setup_env from process replay

* rm line
2022-04-12 16:36:02 -07:00
George Hotz 9318e02a52 Power draw test (#24196)
* power draw test

* power draw measure

* fix cam power draw

* no star import

* fix static

Co-authored-by: Comma Device <device@comma.ai>
2022-04-12 15:33:27 -07:00
Shane Smiskol f3bcbb1b50 car docs test: check car name (#24193) 2022-04-12 12:45:31 -07:00
George Hotz dab978083b loggerd: broadcast encoder data (#24177)
* encode data try 1

* fix pc build

* low quality compressed streamer with pyav

* nvidia streamer

* timestamp support

* fix latency measurement

* refactor

* camerastream updates

* fix linter

* compressed to vipc, clean

* remove print

* touchups

Co-authored-by: Comma Device <device@comma.ai>
2022-04-12 12:08:50 -07:00
Shane Smiskol e8faf9f985 Honda: resolve controls mismatch due to interceptor thresholds (#24173)
* make panda and openpilot thresholds match

* Revert "make panda and openpilot thresholds match"

This reverts commit dfcbd2058784de809564ada41e4cfbbfca7afe77.

* make panda and openpilot thresholds match

* remove interceptor scaling, compare int value

* remove honda exception

* bump panda

* bump opendbc

* add segment to check controls mismatch

* bump submodules
2022-04-12 11:20:55 -07:00
Shane Smiskol 85c714e350 test_models: support for specifying segment (#24185)
* support for specifying segment

* revert

* formatting

* revert

* Fix mypy

* raise exception if specified segment isn't available

oh, ndog param wasn't being set

* easier to read

* add to exception
2022-04-11 22:03:23 -07:00
Lukas Petersson 7034888cdb latency logger usable in testing closet (#24183) 2022-04-11 16:44:24 -07:00
mitchellgoffpc 25fdc95ea8 CALMODEL frame is dead 2022-04-11 16:33:24 -07:00
Adeeb Shihadeh c1388636a2 comma three: correctly set initial EPS bearer settings for AT&T sim cards (#24175)
* 3g sunset

* only for blue prime

* pass

* full att code

Co-authored-by: Comma Device <device@comma.ai>
2022-04-11 15:33:58 -07:00
Adeeb Shihadeh 37fc027e98 controlsd: fix soft disable while overriding (#24178) 2022-04-11 10:50:00 -07:00
Adeeb Shihadeh cf6c0ef19a tici IRQ tuning (#24170)
* first pass

* move that back

* move that

Co-authored-by: Comma Device <device@comma.ai>
2022-04-11 10:49:27 -07:00
Robbe Derks 863fed8fec Panda interrupt load (#24180)
* bump panda

* add to pandaState

Co-authored-by: Comma Device <device@comma.ai>
2022-04-11 12:35:14 +02:00
Adeeb Shihadeh fcf657763d nav: better reroute backoff policy (#24179)
* nav: reduce max reroute backoff

* remove that too
2022-04-10 20:53:07 -07:00
George Hotz cc8430b668 broadcast encode idx packets (#24176)
Co-authored-by: Comma Device <device@comma.ai>
2022-04-10 15:12:58 -07:00
HaraldSchafer f54e724b5d Body cleanup + 100Hz locationd (#24168)
* use PID

* 100hz on the branch

* Better defaults

* fix int clip

* More cleanup

* Fix pid comments

* only notcar gets 100hz

* cleanup

* fix tests

* ignore

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-04-09 15:22:29 -07:00
Adeeb Shihadeh 69368cce54 bump opendbc 2022-04-08 22:11:27 -07:00
Jason Wen 6214991d98 Hyundai: Car Port for Tucson Diesel 2019 (#24082)
* Add car port: Hyundai Tucson Diesel 2019

* SCC + LKAS trims only

* Add test route

* Update CARS.md

* remove from legacy safety mode

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2022-04-08 11:32:18 -07:00
Shane Smiskol 0f61a388c3 GM: resolve cruise faults (#24167)
* these should be enabled

* bump panda

* bump

* allow in pre-enabled state

* bump panda

* add comment

* bump and update refs

* bump panda

* bump panda
2022-04-07 20:44:09 -07:00
ZwX1616 720adbc49f DM: reduce model error on dsp by another 3.5x (#24159)
* a8236e30

* match

* update model ref
2022-04-07 16:53:06 -07:00
Lukas Petersson fecaac8eda latencylogger graph design (#24165)
* latencylogger graph design

* Update tools/latencylogger/latency_logger.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* quotes

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-04-07 13:18:26 -07:00
HaraldSchafer 634f7cebef Make PI into a PID (#24151)
* Make PI into a PID

* Cast like before
2022-04-07 11:34:45 -07:00
George Hotz 10d4766f76 camerad: cleanups, support running only one camera (#24157)
* support disabling the cameras

* disable instead of only. reduce camera startup time

* cleanups

* make all disables work

* add more logging to buffer creation

* make disable work

* disable on sensor probe failed

* tested, fix print

* tolerate sensor failure onroad

* enables should be honored in public methods only

* comments and whitespace

* debug starting sensor

* bring clear_req_queue into c++, add logging for error cases

Co-authored-by: Comma Device <device@comma.ai>
2022-04-07 10:43:14 -07:00
Adeeb Shihadeh 6c0fa7775c bump cereal 2022-04-06 22:27:29 -07:00
Adeeb Shihadeh 162e47456c bump cereal 2022-04-06 22:25:59 -07:00
Chris Souers 12ff38196d More Accord 2021 FW (#24154) 2022-04-06 22:06:26 -07:00
Chris Souers 7cea1ed6d9 Honda Bosch: fix undefined signal in can packing (#24155) 2022-04-06 22:04:45 -07:00
Adeeb Shihadeh 1ea66ee244 controlsd: fix long press set speed increment (#24161) 2022-04-06 22:03:40 -07:00
Adeeb Shihadeh 9ec0378842 bump opendbc 2022-04-06 21:57:26 -07:00
Willem Melching fb344021aa update camera CRC alert text (#24156) 2022-04-06 17:46:56 -07:00
Willem Melching e42ba704e3 panda: use PWM for camera strobe (#24149)
* bump panda; pwm-clock-source

* bump panda
2022-04-06 17:20:36 -07:00
Willem Melching 1848050fd9 add cameraFrameRate alert (#24152)
* add cameraFrameRate alert

* bump cereal
2022-04-06 17:11:39 -07:00
Willem Melching eaa5819211 commIssueAvgFreq: separate alert for avg freq check (#24150)
* commIssueAvgFreq: separate alert for avg freq check

* bump cereal

* bump cereal

* bump cereal

* freq_ok separate from alive

* bump cereal to master

* update_ref

* fix profiler
2022-04-06 16:43:32 -07:00
George Hotz 7dd71cc63d body: control with joystick (#24143)
* control with joystick

* slow it down

* always joystick for not car

* clean ups

* not stateful

* move submaster

* only if we aren't in test mode

* update refs

* double ki speed, update ref

* this ref

Co-authored-by: Comma Device <device@comma.ai>
2022-04-06 11:31:31 -07:00
Adeeb Shihadeh 84aff56de6 jenkins: add new devices (#24144) 2022-04-06 10:34:46 -07:00
Willem Melching 03257bb0d8 camera processing time: float -> double 2022-04-06 10:08:44 -07:00
Willem Melching b379fca0ae route.cc: include <array> 2022-04-06 07:34:11 -07:00
Igor Biletskyy 102738e4e0 body: add battery percentage and charger status to signals and opendbc (#24145)
* bump opendbc

* add signals

* bump opendbc
2022-04-06 00:07:36 -07:00
Shane Smiskol c8f5b21744 Clean up CarInterface.apply and CarControllers (#24060)
* do tesla

* parentheses

* Do Chrysler

* Make sure Hyundai long never actuates when long inactive

.

* clean up Hyundai

* more clear

* formatting

* Stock sets these to zero

* fix params

* move jerk logic into CC

clean up
2022-04-05 23:38:45 -07:00
George Hotz 596417da37 update ref commit for body tune change 2022-04-05 21:40:13 -07:00
Lukas Petersson 65fca83abe Latency logging 2 (#24058)
* msg_order and gantt

* frameId in long/lat planner

* track frame id

* controls frame id

* graph tracked events

* graph json

* cloudlog timestamp

* c++ cloudlog

* add frame id

* bug fixes

* bug fixes

* frame id visionicp

* bug fixes and debug level

* timestamp log placement

* print timestamps in table

* translate events

* more logging

* bug fixes

* daemon boardd

* print logs with boardd

* more timestamp logs

* cleanup

* remove publish logs

* bug fix

* timestamp received

* timestamp received

* bug fixes

* use json lib

* ignore driver camera

* prep for new timestamp pipeline

* bug fix

* read new pipeline unfinnished

* read new pipeline

* bug fix

* add frame to controlsstate

* remove controlsstate

* print

* cleanup

* more cleanup + bug fix

* clock build issue

* remove unused imports

* format durations

* increase speed

* pr comments fixes

* conflicts

* set MANAGER_DAEMON for boardd

* clean script code

* bug fix + argparse

* remove rcv time

* bug fixes

* print without tabulate

* fix pre-commits

* plot gnatt

* color bug fix

* read without timestampextra

* bump panda

* mono time instead of frame id

* finnish script

* clean unused

* clean unused logging

* monotonic + json fixes

* del test

* remove whilelines

* bump laika

* cleanup

* remove deps

* logs nicer strings

* remove plotting from scirpt

* reset pipfile

* reset pipfile

* nicer strings

* bug fix

* bug fix

* pr comments cleaning

* remove plotting

* bug fix

* new demo route

* bump opendbc and panda

* cereal master

* cereal master

* script less komplex

* assertions

* matplotlib

* readme

* Update README.md

* graph html

* design fixes

* more code design

* Update common/logging_extra.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* whitespace

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* Update tools/latency_logger/latency_logger.py

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* pr comments

* bug fix

* readme + env once

* clean swaglog

* bug fix

* Update tools/latencylogger/README.md

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>

* revert

* revert

* clean swaglog with error

* remove typo file

* revert graph

* cereal

* submodules

* whitespaces

* update refs

Co-authored-by: Bruce Wayne <batman@workstation-openpilot2.internal>
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2022-04-05 21:05:45 -07:00
Willem Melching e7f23ceca2 uploader: azure returns 401 for files already uploaded (#24141) 2022-04-05 20:09:05 -07:00
Igor Biletskyy 7908fb8829 body: add debug ECU for git hash logging + fw version (#24128)
* non-essential ECU for logging

* bump cereal

* debug ECU

* match_fw_to_car_exact

* comment

* version instead of board date

* add old compatible value

* update_refs
2022-04-05 18:24:06 -07:00
Willem Melching 714efe828a athena.upload_handler.upload_start log retry count (#24139) 2022-04-05 17:57:01 -07:00