Commit Graph

8267 Commits

Author SHA1 Message Date
Dean Lee dffb9800ad 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
old-commit-hash: 8cacc14b31
2020-06-15 15:26:38 -07:00
Willem Melching e313efec3e dont conflate in ubloxd
old-commit-hash: 10cb6ab87a
2020-06-15 13:31:28 -07:00
Adeeb Shihadeh e4f549c998 Hyundai Ioniq EV LTD (#1694)
* add ioniq

* bump panda

* test route

* bump pnada
old-commit-hash: 224672705c
2020-06-15 11:45:37 -07:00
Dean Lee 70b4f7858e remove duplite #include (#1697)
old-commit-hash: 981a166a7c
2020-06-14 08:31:36 -07:00
Erich Moraga 7902dc33e0 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.
old-commit-hash: 3316e19aa4
2020-06-13 08:36:29 -07:00
Adeeb 1cba78d535 Add hyundai legacy safety mode (#1693)
old-commit-hash: 437b974505
2020-06-12 20:55:59 -07:00
Adeeb Shihadeh f008dc9f61 bump cereal
old-commit-hash: 92c29c4269
2020-06-12 20:38:45 -07:00
Willem Melching 415c336c41 no gps warning after 5 minutes (#1692)
old-commit-hash: 684f7b2cc0
2020-06-12 16:03:35 -07:00
Adeeb f396864fab Delay alert creation for some events (#1689)
* add creation delay parameter to alerts

* 1s delay for sensorsInvalid and canError

* bump cereal

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

* add relay check
old-commit-hash: 955d2aefdd
2020-06-12 15:03:32 -07:00
Willem Melching c25d71dd31 update process replay after sonata stiffness change
old-commit-hash: 2a12c653d5
2020-06-12 13:20:54 -07:00
Willem Melching 26c17c844c Reset stiffness at beginning of each drive
old-commit-hash: ef1c7b6833
2020-06-12 12:09:32 -07:00
Willem Melching c2d94f260f Update Sonata stiffnes
old-commit-hash: 3061aea9f4
2020-06-12 12:06:26 -07:00
George Hotz 5d069eb8c3 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>
old-commit-hash: 344a9a3699
2020-06-11 18:21:59 -07:00
Willem Melching ba3dcb56ab Add Palisade fw versions
old-commit-hash: 15faf17914
2020-06-11 18:19:40 -07:00
Dean Lee ebf60a16ad use malloc (#1674)
old-commit-hash: b678449707
2020-06-11 18:06:47 -07:00
Willem Melching 9779b2cd8f Big batch of FW versions (#1682)
* wip big batch of fw versions

* Add the rest

* And two more
old-commit-hash: 66ae0854b4
2020-06-11 16:37:45 -07:00
Erich Moraga 1cc091df7c 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
old-commit-hash: 97b1ee25a7
2020-06-10 20:47:10 -07:00
Adeeb Shihadeh d231b3a7ec don't clear scons cache in CI
old-commit-hash: cf72a4eb34
2020-06-10 17:49:34 -07:00
HaraldSchafer 6e6c165e7f 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
old-commit-hash: 87bbbd4100
2020-06-10 17:25:48 -07:00
Willem Melching f7308cca9e Increase temperature range
old-commit-hash: c82fda995b
2020-06-10 17:20:39 -07:00
ZwX1616 82c3b6c110 fix dtype (#1676)
old-commit-hash: 681ef81ed8
2020-06-10 15:15:51 -07:00
Jason Young fae70a4d99 Update realtime priority for modeld/dmonitoringd (#1675)
old-commit-hash: ec5fc0e92b
2020-06-10 17:40:22 -04:00
Willem Melching 14881ace78 Set brightness takes an int
old-commit-hash: ceba6fc675
2020-06-10 12:42:00 -07:00
Willem Melching b7ae2df26b Move helper function definition to top of file
old-commit-hash: 431690be1e
2020-06-10 11:41:45 -07:00
Dean Lee 0f9202c4b7 add set_brightness in framebuffer.h (#1659)
old-commit-hash: 8ad1135e80
2020-06-10 10:28:18 -07:00
Adeeb Shihadeh dec3861197 don't reboot on PC
old-commit-hash: dc68b4defd
2020-06-09 17:38:42 -07:00
Willem Melching c8d32ce78a wider margins on stiffness
old-commit-hash: fac0231471
2020-06-09 17:36:16 -07:00
Erich Moraga a9e069f5f1 2016 RX350 F Sport (#1671)
@gweedor#9653 DongleID 28f8c941d8b28743
old-commit-hash: a2e6e4c71c
2020-06-09 16:59:27 -07:00
Willem Melching 76a465e0ec 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
old-commit-hash: c18e7da3c2
2020-06-09 16:44:26 -07:00
Dean Lee 5fb85ede56 add function read_db_bytes (#1662)
old-commit-hash: 90d97de74d
2020-06-09 13:46:49 -07:00
Adeeb ea0292d86e Move driver monitoring out of controls (#1642)
* move dmonitoring out of controls

* run monitoring unit tests in CI
old-commit-hash: d4858e5ff5
2020-06-09 13:25:15 -07:00
VirtuallyChris 26235622b8 Add Rav4 esp fw
old-commit-hash: 2fa07d2c0a
2020-06-09 11:23:53 -07:00
Dean Lee 36ee93e0fe remove function is_leon (#1660)
old-commit-hash: 5fdb60d43e
2020-06-08 17:24:55 -07:00
Adeeb daea932130 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>
old-commit-hash: c24a7e248a
2020-06-08 14:24:14 -07:00
xx979xx 4aa1d21bde fix auto resume logic (#1657)
old-commit-hash: c8377131dc
2020-06-08 14:15:22 -07:00
George Hotz 4b6c80336b Getting PC openpilot working again (#1650)
* fixup keras_runner to work and be nicer

* truncate the lane lines based on the valid len
old-commit-hash: 7770041f92
2020-06-05 17:40:56 -07:00
Willem Melching d0f60029cb Remove slow down for turns (#1647)
* Remove slow down for turns

* update ref
old-commit-hash: 15dc6044d4
2020-06-05 16:01:53 -07:00
Dean Lee 92b5c00d0e 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
old-commit-hash: d720f28ecb
2020-06-05 15:33:45 -07:00
Willem Melching 5c30b96932 boardd: no conflate on sendcan (#1645)
old-commit-hash: 19512315ff
2020-06-05 14:20:52 -07:00
Jason Young ebed52527b 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>
old-commit-hash: 68531b071c
2020-06-05 17:09:41 -04:00
Adeeb 16c0bc99b2 Remove common/messaging.h (#1635)
* remove common/messaging.h

* release files
old-commit-hash: 7666d99694
2020-06-05 12:46:49 -07:00
Dean Lee f7ffc61c52 pass subframes_map by refer (#1640)
old-commit-hash: 5f58307153
2020-06-05 12:42:23 -07:00
Dean Lee bbafa5a72d pass DMonitoringResult as referer (#1639)
old-commit-hash: c7ff6dd194
2020-06-05 12:42:01 -07:00
Adeeb Shihadeh f69483e094 quick LGTM fixes
old-commit-hash: 3463f1165e
2020-06-05 11:29:09 -07:00
Willem Melching ce6dd8d4e9 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>
old-commit-hash: 63c8e8439b
2020-06-04 18:57:25 -07:00
Willem Melching 55c3a89421 slow down upload check when offroad (#1634)
old-commit-hash: f4e8df7ee6
2020-06-03 19:28:41 -07:00
Adeeb 9027018368 Update Flake8 config (#1624)
* update flake8 checks

* add E502

* no whitespace warnings

* fix violations

* no W391

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