Commit Graph

834 Commits

Author SHA1 Message Date
Willem Melching 0842e98ad8 fix #1762, add timeout on ubloxRaw receive 2020-06-23 15:26:25 -07:00
Willem Melching 99949cc27d ui, fix vision_seen when starting with camerad already running 2020-06-23 15:16:55 -07:00
ZwX1616 3aa99a01d7
recover EON/C2 AF (#1665) 2020-06-23 14:33:32 -07:00
VirtuallyChris a5ce72465b 2017 Lexus RX350 F Sport fw versions 2020-06-23 11:01:05 -07:00
Adeeb Shihadeh 51b7dc0e38 fix engage/disengage sounds 2020-06-23 10:50:24 -07:00
Thinh Nguyen 574724765f
Add firmware for 2020 RAV4 Hybrid TSS2 (#1764)
* Add firmware for 2020 RAV4 Hybrid TSS2

* Remove duplicate values
2020-06-23 09:01:46 -07:00
Adeeb Shihadeh b5efaef98a test for duplicate ECU firmware versions 2020-06-22 22:47:16 -07:00
Willem Melching 5e10efead1 Fix unsigned overflow in modeld frame age computation 2020-06-22 19:31:57 -07:00
Adeeb Shihadeh af22b282ff
Fix some alert sounds not repeating (#1763)
* fix sounds not repeating

* fix PC build

* 3 loop

Co-authored-by: Comma Device <device@comma.ai>
2020-06-22 19:22:02 -07:00
Comma Device d4e8785355 fix linter 2020-06-22 16:45:39 -07:00
Comma Device c3171e66b3 bring back cycle_alerts.py 2020-06-22 16:25:44 -07:00
Willem Melching bfeefb6fd3
Locationd: only process valid log messages (#1761) 2020-06-22 14:41:15 -07:00
Willem Melching 88f9266378
Make model packets invalid when frames are too old (#1759)
* make model packets invalid when frames are too old

* add frame numbers to cloudlog
2020-06-22 14:27:58 -07:00
Willem Melching 264015c584
cleanup no sensor data alert (#1760) 2020-06-22 14:27:07 -07:00
VirtuallyChris ddd6029a86
Add Civic hatch fw version (#1758) 2020-06-22 11:40:23 -07:00
Dean Lee a64f0119e0
Fix resource leak in visionbuf_free (#1699)
* fix resource leak in visionbuf_free

* add mmap_len to VisionBuf
2020-06-22 11:29:18 -07:00
Michael Honan be08124d80
Added firmware versions for RAV4 TSS2 Non-Hybrid (#1756) 2020-06-22 10:18:04 -07:00
Adeeb Shihadeh 3c461ca5cc
Add cppcheck as a pre-commit hook (#1646)
* add cppcheck as a pre-commit hook

* fix Dockerfile

* update precommit config

* exclude panda and opendbc
2020-06-19 20:39:34 -07:00
Adeeb Shihadeh cab96374c5 more generic alert text for wrongCarMode 2020-06-19 20:36:10 -07:00
Adeeb Shihadeh 968443c545
Alert when controls fails to start (#1750)
* alert when controls fails to start

* more friendly

* fix sound

* remove that

* just else

Co-authored-by: Comma Device <device@comma.ai>
2020-06-19 19:28:56 -07:00
Willem Melching a8e7a187ca Fix modeld dropping frames if processing takes over 50 ms 2020-06-19 16:57:28 -07:00
Willem Melching 0681fc04ad
debug script to track droppped frames (#1749) 2020-06-19 16:56:56 -07:00
Willem Melching 77b7d30683 Remove kernel check from controlsd 2020-06-19 16:54:42 -07:00
Adeeb Shihadeh ccf6b80c7e
Cleanup startup event handling (#1748)
* cleanup startup event

* always show permanent

* lowest

* update refs
2020-06-19 16:16:48 -07:00
George Hotz 01a486308d
c++ify thneed to remove memory leaks (#1737)
Co-authored-by: Comma Device <device@comma.ai>
2020-06-19 15:53:48 -07:00
Adeeb Shihadeh 78b428e534 fix alert sounds looping 2020-06-19 14:53:55 -07:00
Willem Melching 24de8174dc
Only show gps event after 1 km (#1747) 2020-06-19 14:11:23 -07:00
Willem Melching 9e273eb2ec ubloxd free->delete, fixes #1742 2020-06-19 13:56:46 -07:00
Willem Melching 2b20479a5c Move kernel check to before creating the submaster, prevent SIGUSR2 2020-06-19 13:26:52 -07:00
Adeeb Shihadeh 0cda65b58e catch CalledProcessError when detecting kernel version 2020-06-19 12:42:33 -07:00
Dean Lee c8082190a0
release resources in modeld (#1700) 2020-06-19 11:38:39 -07:00
Dean Lee fa0b47e6f2
save Reader to local variable to avoid repeating validate the pointer (#1717) 2020-06-19 11:37:31 -07:00
Michael Honan d0254e6097
Added 2019 C-HR FPv2 firmware (#1743) 2020-06-19 11:28:10 -07:00
Willem Melching 5198457ca0
make sure everything runs before ending test (#1741) 2020-06-18 17:50:01 -07:00
Erich Moraga 853dfcd59a
Added 2020 RX350 fwdRadar f/w x018821F3301100 (#1739)
@ottopilot#7631 DongleID/route 3a5c5101bd71ad5d|2020-06-18--16-56-51
2020-06-18 15:38:19 -07:00
Adeeb Shihadeh fd8514eee3 hwType is in health 2020-06-18 15:37:21 -07:00
Adeeb Shihadeh e892d6a9d9 if sky visible 2020-06-18 14:40:57 -07:00
Adeeb Shihadeh b3101998ed update no GPS alert for comma two users 2020-06-18 13:01:28 -07:00
Adeeb Shihadeh 472fe66962
GM cleanup + ignition fix (#1729)
* small cleanup

* alertmanager handles that

* improve tuning

* below steer speed

* Revert "improve tuning"

This reverts commit 5d2de147d2c9979af09b7964ad59e4b95ddb2f2a.

* bump panda

* update refs

* bump panda
2020-06-18 12:24:47 -07:00
eFini ee2f60f1cc
remove dpulicated firmware id, already existed 3 lines above (#1736) 2020-06-18 08:31:42 -07:00
Scott Adair dbc609b240
ESP Firmware for Hyundai Palisade (#1728) 2020-06-16 18:35:42 -07:00
Adeeb Shihadeh 6c156d7f45
NEOS update required alert (#1722)
* NEOS update required

* permanent alert

* bump cereal
2020-06-16 12:21:41 -07:00
Jason Young 80101b350b
modeld process time logging to DEBUG (#1720)
Co-authored-by: Jason Young <jason@comma.ai>
2020-06-16 10:36:04 -07:00
Willem Melching f418794e40 Add Accord FW version 2020-06-15 18:53:09 -07:00
Adeeb Shihadeh 25688f36cc
Block entry on non-adaptive cruise mode (#1708)
* block entry on non-adaptive cruise mode

* user disable

* toyota
2020-06-15 18:11:50 -07:00
Willem Melching ed7e568b70 update ref 2020-06-15 17:55:03 -07:00
HaraldSchafer 637eecc2b2
save bad calib too for display (#1678) 2020-06-15 17:20:49 -07:00
HaraldSchafer 2afe224813
need to do something about the valid (#1713) 2020-06-15 17:20:31 -07:00
Adeeb Shihadeh 9e34ed4e8c bump cereal 2020-06-15 16:01:35 -07:00
Willem Melching 4ca8283d73
Modeld: loop over platforms to find CPU/GPU (#1710)
* Modeld: loop over platforms to find gpu

* Remove prints

* PC needs CPU

* Keep default for qcom

* Update error message
2020-06-15 15:58:12 -07:00
Dean Lee 8cacc14b31
Sound refactor (#1589)
* Soud refactor

* remove files from  files_common

* add timeout to set_volumn

* add param volume to init

* done

* test.cc

* fix typo

* add repeat param instead of loop

* revert submodule

* add member function currentSound

* remove function create_player from class member

* fix build error

fix repeat

* rename CHECK_RESULT to ReturnOnError

* set currentSound_ before posible err

* use std::map to initialize sound table

cleanup

cleanup

cleanup

fix bug in stop

change paramater name

* done

* remove function CreatePlayer, create player in init()

* resolve conflict

* remove sound test

* rebase

* remove whitespace

* Apply great review suggestion

* use player's SLVolumeItf interface to set volume

* use float

* leave the volume control the way it is
2020-06-15 15:26:38 -07:00
Willem Melching 10cb6ab87a dont conflate in ubloxd 2020-06-15 13:31:28 -07:00
Adeeb Shihadeh 224672705c
Hyundai Ioniq EV LTD (#1694)
* add ioniq

* bump panda

* test route

* bump pnada
2020-06-15 11:45:37 -07:00
Dean Lee 981a166a7c
remove duplite #include (#1697) 2020-06-14 08:31:36 -07:00
Erich Moraga 3316e19aa4
Added C-HR Hybrid engine f/w (#1695)
@joxaarol#2418's 2020 C-HR Hybrid DongleID b7087e3bfd3a9cf6
https://discord.com/channels/469524606043160576/524592892627517450/721373655174742086

I also alphanumerically sorted the engine firmwares as a best practice, and to be consistent.
2020-06-13 08:36:29 -07:00
Adeeb 437b974505
Add hyundai legacy safety mode (#1693) 2020-06-12 20:55:59 -07:00
Adeeb Shihadeh 92c29c4269 bump cereal 2020-06-12 20:38:45 -07:00
Willem Melching 684f7b2cc0
no gps warning after 5 minutes (#1692) 2020-06-12 16:03:35 -07:00
Adeeb 0bbe870b5f
Delay alert creation for some events (#1689)
* add creation delay parameter to alerts

* 1s delay for sensorsInvalid and canError

* bump cereal

* update refs
2020-06-12 15:32:50 -07:00
Willem Melching 955d2aefdd
Cool down device before going onroad if CPU temp over 75 C (#1688)
* Block going onroad when temperatures are too high

* add relay check
2020-06-12 15:03:32 -07:00
Willem Melching 2a12c653d5 update process replay after sonata stiffness change 2020-06-12 13:20:54 -07:00
Willem Melching ef1c7b6833 Reset stiffness at beginning of each drive 2020-06-12 12:09:32 -07:00
Willem Melching 3061aea9f4 Update Sonata stiffnes 2020-06-12 12:06:26 -07:00
George Hotz 344a9a3699
Fixups for Mac, and a bunch for PC (#1654)
* fix mac nui

* fix cereal

* builds on mac without warnings

* ui swap shouldn't be instant on pc

* camerad builds on mac

* modeld, and now everything, builds on mac

* ui draws pictures on mac now

* fix camerad shutdown

* support ui looping on pc

* python3 on that

* SCNu64 should be cross platform

* bump cereal and new apk

* clean up

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-06-11 18:21:59 -07:00
Willem Melching 15faf17914 Add Palisade fw versions 2020-06-11 18:19:40 -07:00
Dean Lee b678449707
use malloc (#1674) 2020-06-11 18:06:47 -07:00
Willem Melching 66ae0854b4
Big batch of FW versions (#1682)
* wip big batch of fw versions

* Add the rest

* And two more
2020-06-11 16:37:45 -07:00
Erich Moraga 97b1ee25a7
2016 RX350 F Sport corrections (#1679)
This fixes the botched PR I did yesterday...
https://github.com/commaai/openpilot/pull/1671
Accidentally used CAR.LEXUS_RXH_TSS2 firmware from my clipboard yesterday, instead of @gweedor#9653's...  Today I was extra careful ;-)

@gweedor#9653 DongleID 28f8c941d8b28743
2020-06-10 20:47:10 -07:00
Adeeb Shihadeh cf72a4eb34 don't clear scons cache in CI 2020-06-10 17:49:34 -07:00
HaraldSchafer 87bbbd4100
Clean mesh3d 2 (#1618)
* seems overkill

* not too extreme

* make linter happy

* try adding accel scale

* some tweaks

* Revert "some tweaks"

This reverts commit 58cec365da650fa653dee91c7a5cbe37b8289908.

* Revert "Revert "some tweaks""

This reverts commit 517108b5b676b4ab31bba92a9eb59afa1b3d3faf.

* stability concerns

* this works

* still works

* ugh sympy is weird, still may be not correct

* comment clean

* comment

* clarify

* fix

* unused
2020-06-10 17:25:48 -07:00
Willem Melching c82fda995b Increase temperature range 2020-06-10 17:20:39 -07:00
ZwX1616 681ef81ed8
fix dtype (#1676) 2020-06-10 15:15:51 -07:00
Jason Young ec5fc0e92b
Update realtime priority for modeld/dmonitoringd (#1675) 2020-06-10 17:40:22 -04:00
Willem Melching ceba6fc675 Set brightness takes an int 2020-06-10 12:42:00 -07:00
Willem Melching 431690be1e Move helper function definition to top of file 2020-06-10 11:41:45 -07:00
Dean Lee 8ad1135e80
add set_brightness in framebuffer.h (#1659) 2020-06-10 10:28:18 -07:00
Adeeb Shihadeh dc68b4defd don't reboot on PC 2020-06-09 17:38:42 -07:00
Willem Melching fac0231471 wider margins on stiffness 2020-06-09 17:36:16 -07:00
Erich Moraga a2e6e4c71c
2016 RX350 F Sport (#1671)
@gweedor#9653 DongleID 28f8c941d8b28743
2020-06-09 16:59:27 -07:00
Willem Melching c18e7da3c2
Write orientation & transform in C++ (#1637)
* locationd at 20hz

* update ref

* bump cereal

* dont modify global state

* add scons files

* ecef2geodetic and geodetic2ecef

* Finish local coords class

* Add header file

* Add orientation.cc

* cleanup

* Add functions to header file

* Add cython wrapper

* y u no work?

* This passes the tests

* test rot2quat and quat2rot

* Teste euler2rot and rot2euler

* rot_matrix

* test ecef_euler_from_ned and ned_euler_from_ecef

* add benchmark

* Add test

* Consistent newlines

* no more radians supported in geodetic

* test localcoord single

* test localcoord single

* all tests pass

* Unused import

* Add alternate namings

* Add source for formulas

* no explicit tests needed

* remove benchmark

* Add release files

* Typo

* Remove print statement

* no access to raw transform matrix

* temporarily add tolerance

* handcode quat2euler

* update ref
2020-06-09 16:44:26 -07:00
Dean Lee 90d97de74d
add function read_db_bytes (#1662) 2020-06-09 13:46:49 -07:00
Adeeb d4858e5ff5
Move driver monitoring out of controls (#1642)
* move dmonitoring out of controls

* run monitoring unit tests in CI
2020-06-09 13:25:15 -07:00
VirtuallyChris 2fa07d2c0a Add Rav4 esp fw 2020-06-09 11:23:53 -07:00
Dean Lee 5fdb60d43e
remove function is_leon (#1660) 2020-06-08 17:24:55 -07:00
Adeeb c24a7e248a
Release cleanup (#1649)
* start cleanup

* whitelist submodule release files

* don't need to ship tests

* revert changes to build script

* add those tests back

* fix typo

* whitelist dbcs

* test

* run the right test

* whitelist opendbc/can

* revert that

* add missing dotfiles

* clean up

* ford DBCs

Co-authored-by: Comma Device <device@comma.ai>
2020-06-08 14:24:14 -07:00
xx979xx c8377131dc
fix auto resume logic (#1657) 2020-06-08 14:15:22 -07:00
George Hotz 7770041f92
Getting PC openpilot working again (#1650)
* fixup keras_runner to work and be nicer

* truncate the lane lines based on the valid len
2020-06-05 17:40:56 -07:00
Willem Melching 15dc6044d4
Remove slow down for turns (#1647)
* Remove slow down for turns

* update ref
2020-06-05 16:01:53 -07:00
Dean Lee d720f28ecb
ui.cc: remove variables from UIScene, use event::Reader to get data (#1585)
* use struct to store lead status

* remove white space

* use RadarState::LeadData::Reader

* use reader to get thermal data

* use reader

* continue

* remove variables

reset submodules,fix some errors

reset submodules

revert

* remove s->scene.gps_planner_active

* modify

* cleanup

* done

* resolve conflict

* remove irrelevant comment

* remove white space
2020-06-05 15:33:45 -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
Dean Lee 5f58307153
pass subframes_map by refer (#1640) 2020-06-05 12:42:23 -07:00
Dean Lee c7ff6dd194
pass DMonitoringResult as referer (#1639) 2020-06-05 12:42:01 -07:00
Adeeb Shihadeh 3463f1165e quick LGTM fixes 2020-06-05 11:29:09 -07:00
Willem Melching 63c8e8439b
Model + camerad test (#1622)
* kind of works

* move that

* hack to get camerad to reliably terminate

* not sure why SIGTERM wasn't working before

* compare bytes

* clean up some hacks

* gitignore

* fix that

* WIP

* no reboot

* comparison works

* pretty print

* fix build

* run in jenkins

* python path

* space

* raise timeout

* new eon

* skip the copy

* spinner

* spin less

* update model ref commit

* reenable that

* clean up

* fix jenkinsfile

* parallel

* wrap it in a stage

* fix linter

* better progress

* lower timeout

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-06-04 18:57:25 -07:00
Willem Melching f4e8df7ee6
slow down upload check when offroad (#1634) 2020-06-03 19:28:41 -07:00
Adeeb 367155168a
Update Flake8 config (#1624)
* update flake8 checks

* add E502

* no whitespace warnings

* fix violations

* no W391

Co-authored-by: Jason Young <jason@comma.ai>
2020-06-03 16:13:34 -07:00
VirtuallyChris eebdf52ff5 add Rav4_TSS2 engine fw 2020-06-03 15:18:30 -07:00
George Hotz f19d25dd8d calloc an extra byte in read_file 2020-06-03 14:22:45 -07:00