Willem Melching
8444f8267d
calibrationd: convert existing calibration to numpy ( #23494 )
...
* calibrationd: convert existing calibration to numpy
* use numpy functions
2022-01-11 15:25:01 +01:00
Adeeb Shihadeh
1a6881edc6
skip falling device test
2022-01-06 14:05:13 -08:00
Ewout ter Hoeven
332f568a82
Pyupgrade 3.6: Update syntax with Python 3.6+ features ( #23305 )
...
Updated Python code with Python 3.6+ features:
- utf-8 encoding is now the default (PEP 3120)
- Replace list comprehensions by Generator Expressions (PEP 289)
- Replace yield loop by yield from (PEP 380)
- Remove the (object) subclass when defining a class
- Replace the IOError alias by OSError (PEP 3151)
- Define sets with curly braces {} instead of set()
- Remove "r" parameter from open function, which is default
Co-Authored-By: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com >
Co-Authored-By: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com >
Co-authored-by: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com >
Co-authored-by: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com >
2021-12-24 11:18:39 -08:00
Robbe Derks
bb7208f4c3
add check for restoring almanac, and clear like suggested in the datasheet ( #23153 )
...
Co-authored-by: Comma Device <device@comma.ai >
2021-12-08 14:13:56 +01:00
Adeeb Shihadeh
f7cf66867b
remove test too
2021-05-27 12:37:52 -07:00
Willem Melching
ea5141d909
Store almanac on ublox poweroff ( #20967 )
...
* Store almanac on ublox poweroff
* send current UTC time
* move message building to ublox_msg.h
2021-05-20 11:43:03 +02:00
Adeeb Shihadeh
6b4e49af0e
fix linter
2021-05-18 19:35:32 -07:00
Comma Device
bffba1a91e
little helper script
2021-05-18 18:56:58 -07:00
HaraldSchafer
e5f93ef142
Add ublox interference monitor ( #20911 )
...
* add interference monitor
* new thresholds
* correct labels
* always run for test
* new msg
* add flag
* Revert "always run for test"
This reverts commit b04b92ac2d73d996d1526509e26c4e1a4338cbbb.
* add hw status flags
2021-05-14 15:23:27 -07:00
HaraldSchafer
62e22e7eac
time checks in locationd ( #20880 )
...
* time checks
* no debug print
* correct timestamps in test
* non nan
2021-05-11 15:57:13 -07:00
Willem Melching
c62bb10640
Locationd input sanity checks ( #20845 )
...
* Add first sanity checks on inputs
* more gps checks
* make sure test values pass sanity checks
* this localizer supports cannonball runs
Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com >
2021-05-06 13:39:50 -07:00
Willem Melching
e9db5723ef
Locationd 100 Hz ( #20816 )
...
* fix std transform
* 100Hz
* new ref
* no more decimation
* clean up confusing maths
* static typing
* Revert "static typing"
This reverts commit 23d87337de648e629fbd35dd8c04a740bbefca47.
* 100Hz costs more
* move normalization into core
* add quat idxs
* add big eps
* this is not safe in the filter
* more sensible
* updates to rednose
* not tested
* normalize in python too
* update rednose
* nan check
* check for infs too
* all should be finite
* update ref
* rednose pr now in master
Co-authored-by: Harald Schafer <harald.the.engineer@gmail.com >
2021-05-06 11:01:58 +02:00
HaraldSchafer
daecf4247b
Revert "Locationd 100hz ( #20759 )" ( #20797 )
...
* Revert "Locationd 100hz (#20759 )"
This reverts commit 333313cf0e .
* new ref
2021-05-02 15:06:34 -07:00
HaraldSchafer
333313cf0e
Locationd 100hz ( #20759 )
...
* fix std transform
* 100Hz
* new ref
* no more decimation
* clean up confusing maths
* static typing
* Revert "static typing"
This reverts commit 23d87337de648e629fbd35dd8c04a740bbefca47.
* 100Hz costs more
2021-04-28 15:29:14 -07:00
Joost Wooning
5fdcce2551
unittests for locationd uncommon events ( #20715 )
...
* unittests for locationd uncommon events
* params test using process
* test for posenet spike
* fix library path
* move random seed to setup
2021-04-22 15:31:18 +02:00
Willem Melching
a163daf5e0
Improve robustness of ublox init procedure ( #20685 )
...
* improve ublox init robustness
* cleanup
* only log if running at 1hz
* not needed
2021-04-15 14:11:53 +02:00
Willem Melching
4dd4b12140
Ubloxd cleanup ( #20637 )
...
* clean out locationd/test
* get rid of ubloxd_main
* remove ubloxd_test.cc
* less includes
2021-04-09 18:01:24 +02:00
Adeeb Shihadeh
312b681a46
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
2021-02-16 21:39:32 -08:00
robbederks
99d58193e4
implement ublox MON_HW2 message ( #19962 )
...
* implement MON_HW2 message
* didn't mean to remove this
2021-02-03 13:09:44 +01:00
Adeeb Shihadeh
ee43eb552b
small calibration refactor + tests ( #2641 )
...
* calibration tests
* read from capnp
* save using cereal struct
* reset calibration if new car
* car params
2020-11-28 10:12:10 -08:00
Willem Melching
e0e7c7486d
remove old params learner ( #1918 )
2020-07-24 18:43:17 +02:00
Willem Melching
843a64c72f
Make pylint more strict ( #1626 )
...
* make pylint more strict
* cleanup in progress
* done cleaning up
* no opendbc
2020-06-02 16:29:32 -07:00
Adeeb Shihadeh
f3dcf861c7
enable flake8 E303: too many blank lines
2020-05-31 17:21:11 -07:00
Adeeb Shihadeh
27754a277c
enable E261 in flake8: two spaces before inline comment
2020-05-31 14:07:29 -07:00
Adeeb Shihadeh
efd5dffb1e
enable flake8 E231: missing whitespace after comma
2020-05-31 12:49:11 -07:00
Adeeb
6051061ff8
Flake8 E22X ( #1607 )
...
* e221
* e225
* bump opendbc
2020-05-31 00:48:47 -07:00
Adeeb
d9bf9f0a40
Enable more flake8 checks ( #1602 )
...
* enable some more flake8 checks
* some more quick ones
* bump opendbc
* e401
* e711 e712
* e115 e116
* e222
* e301
* remove that
* e129
* e701 e702
* e125 e131
* e227
* e306
* e262
* W503
* e713
* e704
* e731
* bump opendbc
* fix some e722
2020-05-30 20:14:58 -07:00
Willem Melching
3d08dcc3b2
Run mypy commit hook ( #1591 )
...
* run mypy commit hook
* fix mypy errors
2020-05-28 15:05:04 -07:00
Adeeb
e8cb6ea06a
Abstract common events + event cleanup ( #1129 )
...
* too many if
* unused
* whitespace
* key
* sefldrive/car/*
* no more gctx
* lower
* start abstracting common events
* all cars
* start small
* all cars
* reverse gear
* wrongCarMode
* wrongGear
* espDisabled
* steerUnvailable
* make linter happy
* c isn't used
* fix esp_disabled in VW
* update ref
* more red
* more cleanup
* fix subaru
* update ref
2020-02-20 16:22:25 -08:00
robbederks
d0c1f9a864
Added hw status to ublox test scripts and ubloxGnss packet ( #1054 )
...
* Added hw status to ublox test scripts and ubloxGnss packet
* Added extra config to boardd
* Implemented new ublox message handler in ubloxd
* Fixed debug text
* Added some explanation and cereal bump
2020-02-05 11:12:03 -08:00
George Hotz
fcf8efb826
selfdrive/locationd
2020-01-17 11:39:56 -08:00