Commit Graph

219 Commits (18382f781956ee51f90b0982396901d2c50c5c80)

Author SHA1 Message Date
Willem Melching 4c04e220a1
Timezoned (#19960)
* untested code

* add to manager

* whitespace

* only save on fix

* cleanup

* fix typo

* add to ignored processes

* import tici

* fix param name

* cleanup

* only run offroad

* use itertools

* wait for thermald

* simpler

* fall back to api call

* add param to override timezone

Co-authored-by: Comma Device <device@comma.ai>
2021-02-06 11:07:37 +01:00
HaraldSchafer c3707328f5
Different lag comp (#20024)
* more sensible

* different names for different segs

* new ref

* this is checked somewhere
2021-02-05 14:01:22 -08:00
Adeeb Shihadeh 4ca462a846 skip manager check in sim 2021-02-04 20:51:37 -08:00
HaraldSchafer bad68e4663
camera offsets (#20022)
* camera offsets

* runs on pc so is 0 in proc replay
2021-02-04 15:50:53 -08:00
Adeeb Shihadeh 000bd226aa
Cereal cleanup (#20003)
* start cleanup

* fan speed

* cleanup dm

* fix cereal

* hwType -> pandaType

* update refs

* update refs

* bump cereal

* freeSpacePercent

* cereal master
2021-02-03 19:57:30 -08:00
HaraldSchafer 61a4e3e661
Remove curv factor (#20011)
* cleaning crew

* need that to match

* smooth factor

* that didn't really work

* closer to previous

* new ref

* new names
2021-02-03 17:51:21 -08:00
Adeeb Shihadeh d7281387ad don't show on tici 2021-02-02 21:27:36 -08:00
HaraldSchafer 3f2b42b4e3
Deal with long lag compensation (#20004)
* add hack for big lags

* wrong bracket

* new pathplanner values
2021-02-02 17:09:01 -08:00
Willem Melching bacf8727d7
cloudlog once on commIssue (#19949) 2021-02-01 13:41:04 -08:00
HaraldSchafer d1b31d3697
not relevant at high speed (#19946)
* not relevant at high speed

* update ref
2021-01-27 20:28:17 -08:00
Mitchell Goff 608f00f814
Split planner and pathplanner publishing into separate 'publish' methods (#19860)
* Split planner and pathplanner publishing into separate 'publish' methods

* Updated test_following_distance.py

* Combined publish+send_mpc_solution methods
2021-01-26 20:27:24 -08:00
HaraldSchafer d628352098
important for indi (#19926)
* important for indi

* dont change that in this pr
2021-01-26 14:26:27 -08:00
Willem Melching b6a220a133
manager.py broadcast process states (#19880)
* broadcast managerstate

* Remove boardd

* show alert

* only trigger on actually receiving a manager state

* add managerstate to simulation exclude for longitudinal test

* broadcast managerState in process replay

* update alert text

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-01-26 14:49:55 +01:00
Shane Smiskol 76cf500669
INDI: Time constant is used based on breakpoints (#19858)
* Time constant is used based on break points

* no need for alpha class variable
2021-01-21 15:14:50 +01:00
HaraldSchafer 124100d0fa
remove old model packet (#19769)
* remove publisher

* move to V2

* radard new model

* fix plant

* change packety

* need hack here too

* change to new

* this has been wrong all along

* no more model msg

* subscribe to new model

* not needed anymore

* make work

* need to ignore that too

* should pass tests, needs car test

* fix process replay

* no more poly

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-01-19 17:15:16 -08:00
HaraldSchafer 0e49919ab9
Cleanup pathplanner (#19827)
* no divide by 0

* misc cleanup

* final fixes

* remove last polys

* new ref

* fix test

* update again
2021-01-19 00:02:53 -08:00
Marcos S c03a95f7f9
Carla fixes (#19824)
* use carla provided frame_number

* fix carla comm issues error

* add minimal W-A-S-D keyboard controls

* fix window from carla docker not showing

* carla 0.9.7 uses `frame`, not `frame_number`

* set safetyModel on health for simulator

* safetyModel check now works with simulator

* ignore ubloxRaw and frontFrame when running sim

* Update selfdrive/controls/controlsd.py

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

* added WINDOW flag for optional show carla window

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-01-18 17:16:32 -08:00
HaraldSchafer bf5332c491
back to open loop (#19781) 2021-01-16 13:43:30 -08:00
Harald Schafer 61b7527b95 fix tests 2021-01-14 21:46:01 -08:00
Harald Schafer 90216ce620 fix init 2021-01-14 20:52:39 -08:00
HaraldSchafer 158210cde8
Mpc rework2 (#19660)
* start again

* need that too

* this actually works

* not needed

* do properly

* still works

* still works

* still good

* all G without ll

* still works

* all still good

* cleanup building

* cleanup sconscript

* new lane planner

* how on earth is this silent too....

* update

* add rotation radius

* update

* pathplanner first pass

* misc fixes

* fix

* need deep_interp

* local again

* fix

* fix test

* very old

* new replay

* interp properly

* correct length

* another horrible silent bug

* like master

* fix that

* do doubles

* different delay compensation

* make robust to empty msg

* make pass with hack for now

* add some extra

* update ref for increased leg

* test cpu usage on this pr

* tiny bit faster

* purge numpy

* update ref

* not needed

* ready for merge

* try again after recompile

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-01-14 18:43:50 -08:00
Adeeb Shihadeh 40830a216b
fix camera malfunction alert (#19757)
* fix camera alert malfunction

* remove old alert
2021-01-14 16:03:16 -08:00
Adeeb Shihadeh c114316d94
GPS malfunction alert (#19756)
* GPS malfunction alert

* fix process replay

* fix long tests

* fix long tests again
2021-01-14 14:45:10 -08:00
Igor 0a65e87394
Add indi breakpoints (#19664)
* Added BP, V to latcontrol_indi

* hyundai

* toyota

* Tests for INDI outerLoopGain
2021-01-07 15:55:46 +01:00
Willem Melching 7c43a60bda
Rebuild acado and add scons command to regenerate mpc (#19685)
* rebuild acado and add scons command to regenerate mpc

* update scons help
2021-01-07 15:18:23 +01:00
Willem Melching e4cf43c6fc
Move all CarControllerParams into values.py (#19663)
* toyota

* use scale from values.py

* nissan

* subaru

* honda

* gm

* toyota combine into CarControllerParams

* nissan refactor

* chrysler refactor

* mazda refactor

* hyundai refactor

* subaru refactor
2021-01-06 11:20:44 +01:00
Adeeb Shihadeh 389649d6ac remove old event 2020-12-21 15:55:30 -08:00
Adeeb Shihadeh 41b31a1756
don't go onroad if internet needed (#19572) 2020-12-21 15:13:20 -08:00
Willem Melching 776a67ad2e remove commIssueWarning from events 2020-12-17 22:25:22 +01:00
Adeeb Shihadeh 8674b023ba
HW abstraction layer (#19530)
* start hw refactor

* move that

* pins

* put that back
2020-12-16 21:30:23 -08:00
Shane Smiskol 89a6008841
don't wait for 4 seconds before it starts steering again after steering fault (#19520) 2020-12-16 12:24:42 -08:00
Igor 717bc747c3
Parametrize startingBrakeRate (#19511)
* Parametrize startingBrakeRate

* new ref_commit
2020-12-16 20:58:07 +01:00
Adeeb Shihadeh 6a151dcd9c
oneplus deprecation (#2748)
* oneplus deprecation

* lowercase

* too long

* no udpates
2020-12-12 12:51:12 -08:00
Igor d3c2a0e6c1
Parametrize stoppingBrakeRate (#2745)
* Parametrize stoppingBrakeRate

* ref_commit updated
2020-12-11 16:30:35 +01:00
Igor 093456cc40
Parametrize MIN_CAN_SPEED in car interfaces (#2684)
* Parametrize MIN_CAN_SPEED in car interfaces

* fixed instance in planner.py

* fix typo

* var name change

* changed var name to minSpeedCan for consistency with other uses of CAN in the capnproto files

* added default value to get_std_params, removed unneeded instances from car interface files

* Revert PEP8 autoformat corrections

* update refs

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-12-04 11:09:34 +01:00
Willem Melching d5a806e564 fix typo in event name 2020-12-03 17:07:03 +01:00
Willem Melching 93e90898dd Add event for commIssueWarning 2020-12-03 16:54:54 +01:00
Adeeb Shihadeh 9d18b45cd0 don't need that 2020-11-24 22:47:44 -08:00
Willem Melching 40acdc4524
Typing experiments (#1633)
* add more types

* car

* no abc

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-11-24 22:45:37 -08:00
George Hotz 160fd207a5 remove model lag warning, leave red alert at 20 2020-11-24 13:02:56 -08:00
Adeeb Shihadeh 2d7a194f9f
model lag warning (#2608) 2020-11-23 13:42:18 -08:00
Adeeb Shihadeh d92f923d70
update frame drop filter (#2592) 2020-11-21 14:50:53 -08:00
Harald Schafer 6907714510 update comments 2020-11-12 10:21:27 -08:00
HaraldSchafer 08846b5c0e
Torch model (#2452)
* refactor draw model

* rebase master

* correct valid_len

* rename function

* rename variables

* white space

* rebase to master

* e16c13ac-927d-455e-ae0a-81b482a2c787

* start rewriting

* save proress

* compiles!

* oops

* many fixes

* seems to work

* fix desires

* finally cleaned

* wrong std for ll

* dont pulse none

* compiles!

* ready to test

* WIP does not compile

* compiles

* various fixes

* does something!

* full 3d

* not needed

* draw up to 100m

* fix segfault

* wrong sign

* fix flicker

* add road edges

* finish v2 packet

* Added pytorch supercombo

* fix rebase

* no more keras

* Hacky solution to the NCHW/NHWC incompatibility between SNPE and our frame data

* dont break dmonitoringd, final model 229e3ce1-7259-412b-85e6-cc646d70f1d8/430

* fix hack

* Revert "fix hack"

This reverts commit 5550fc01a7881d065a5eddbbb42dac55ef7ec36c.

* Removed axis permutation hack

* Folded padding layers into conv layers

* Removed the last pad layer from the dlc

* Revert "Removed the last pad layer from the dlc"

This reverts commit b85f24b9e1d04abf64e85901a7ff49e00d82020a.

* Revert "Folded padding layers into conv layers"

This reverts commit b8d1773e4e76dea481acebbfad6a6235fbb58463.

* vision model: 5034ac8b-5703-4a49-948b-11c064d10880/780  temporal model: 229e3ce1-7259-412b-85e6-cc646d70f1d8/430  with permute + pool opt

* fix ui drawing with clips

* ./compile_torch.py 5034ac8b-5703-4a49-948b-11c064d10880/780 dfcd2375-81d8-49df-95bf-1d2d6ad86010/450 with variable history length

* std::clamp

* not sure how this compiled before

* 2895ace6-a296-47ac-86e6-17ea800a74e5/550

* db090195-8810-42de-ab38-bb835d775d87/601

* 5m is very little

* onnx runner

* add onnxruntime to pipfile

* run in real time without using the whole CPU

* bump cereal;

* add stds

* set road edge opacity based on stddev

* don't access the model packet in paint

* convert mat.h to a c++ header file (#2499)

* update tests

* safety first

Co-authored-by: deanlee <deanlee3@gmail.com>
Co-authored-by: mitchell <mitchell@comma.ai>
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: George Hotz <george@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2020-11-11 20:31:46 -08:00
HaraldSchafer f7d1ace883
Fix lane width (#2520)
* use prob modifiers in lane width calc

* update ref

* update ref
2020-11-10 21:12:36 -08:00
HaraldSchafer 39f27f9d6a
cleanup planner (#2519)
* no reason for external function

* dont need d_poly for this test

* dont copy float

* typo
2020-11-10 14:42:43 -08:00
Shane Smiskol dca6f61db9
some laneplanner updates (#2505) 2020-11-09 01:15:29 -08:00
HaraldSchafer 26583b1b85
No uncertain ll (#2495)
* initial, needs tune

* support metrics

* a little more

* wrong type

* fixup

* update refs
2020-11-06 21:01:16 -08:00
HaraldSchafer e6668625fa
set y too (#2448)
* set y too

* new ref
2020-11-04 19:52:05 -08:00
Adeeb Shihadeh 89d02dcf97
check for safety mode mismatch (#2443) 2020-11-04 11:12:15 -08:00