Commit Graph

2705 Commits (236743a4e2499c29e6651f6231c5734ccc6d213f)

Author SHA1 Message Date
Shubham Dhumal 236743a4e2
Fix jwt.encode return type (#19776) (#19958)
* Fix for issue #19776

PyJWT 2.0.0 does not return `bytes` for `encode()` instead returns `str`. So converted the `str` to `bytes` and returned the resulting value

* added check for jwt.encode return type

* Update __init__.py

* Updated with suggested change

* Test to check return type of get_token() 

The `get_token()` must return a `str` but for PyJWT version < 2.0.0 the `jwt.encode()` returns `bytes`. This test is to make sure if token returned by `get_token()` is `str`.

* Update test_get_token.py

* Update test_get_token.py

* Delete test_get_token.py

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-02-02 15:36:04 +01:00
Willem Melching 7b56ab7811 small tombstoned cleanup 2021-02-02 15:29:24 +01:00
Dean Lee 13ea8b5fc9
move global connected_once into function static (#19999) 2021-02-02 14:39:19 +01:00
Dean Lee 91504176e4
Don't call function in assert (#19997) 2021-02-02 13:18:11 +01:00
Willem Melching fd01c89491
BMX055 magnetometer calibration (#19992) 2021-02-02 12:10:08 +01:00
Dean Lee 1588a6f0ac
Logger: added function logger_get_route_name (#19995)
* added function logger_get_route_name

* remove empty line
2021-02-02 12:09:27 +01:00
Dean Lee 678c149246
mv logger_build_boot to bootlog.cc (#19996) 2021-02-02 12:07:52 +01:00
Dean Lee aa37e95341
OmxEncoder: use c++ mutex&condition_variable (#19786)
* use c++ mutex&condition_variable

* rebase

* cleanup includes&use while

* remove include pthread.h
2021-02-01 21:57:17 -08:00
Adeeb Shihadeh 449e60cb82 skip dashcam3 build for now 2021-02-01 21:14:02 -08:00
Dean Lee ef6d1aeaaa
Logger: new class BZFile (#19959)
* add class BZFile

* inline

* cleanup includes

* stack bzfile

* log first error

* remove assert

* rename log_err to err_logged

* assert in destructor

* LOGE

* don't assert statement

* assert error of fclose
2021-02-01 21:00:42 -08:00
Comma Device 8f84f19062 split the build and test running 2021-02-01 20:35:37 -08:00
Comma Device dcd4bb4f4e fix thneed build 2021-02-01 20:34:21 -08:00
Dean Lee 0b7b7241c8
model_publish: use kj::ArrayPtr<const float> raw_pred (#19917) 2021-02-01 19:08:17 -08:00
Dean Lee c22d6e315d
UI: mv sidebar_collapsed&viz_rect to struct UIState (#19782)
* mv sidebar_collapsed&viz_rect to struct UIState

* rebase master

* rebase master

* rebase master

* revert that

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-02-01 16:10:15 -08:00
Adeeb Shihadeh 49d4d58201
logcatd bugfix + tests (#19689)
* hack to exit cleanly

* move the hack

* add test

* run in ci

* unused

Co-authored-by: Comma Device <device@comma.ai>
2021-02-01 15:15:29 -08:00
ZwX1616 8824966aad
tici fcam vignette compensation (#19971)
* simple model

* fix api

* this too
2021-02-01 15:06:15 -08:00
Willem Melching bacf8727d7
cloudlog once on commIssue (#19949) 2021-02-01 13:41:04 -08:00
Adeeb Shihadeh 0a69c92967 shouldn't need that anymore 2021-02-01 13:13:57 -08:00
grekiki cc1308c7df
Multithreaded ssh activation (#19988)
No more lag on SSH enable/disable
2021-02-01 19:46:03 +01:00
Dean Lee b06da51892
Pigeon::receive: reserve 4kb+64b for std::string (#19951)
* receive: reserve 4kb+64b for std::string

* fix bug
2021-02-01 16:22:16 +01:00
Robbe Derks 0328f550bc bump panda 2021-02-01 15:55:10 +01:00
Robbe Derks 935b9ceb05 Add back replay_many script for unlogging over jungles 2021-02-01 15:54:19 +01:00
Willem Melching 480ebebc50 bump panda 2021-02-01 15:01:19 +01:00
Igor 745b91ee57
Longitudinal tune for Corolla TSS2 (#2746) 2021-02-01 13:43:42 +01:00
Adeeb Shihadeh 4dcb22f03f need to build from here since we link against the absolute paths 2021-01-31 20:05:53 -08:00
Comma Device 592f994c05 copy into installer/ 2021-02-01 03:31:55 +00:00
Comma Device e069e7ca98 copy continue.sh into release3 2021-02-01 03:09:40 +00:00
Adeeb Shihadeh a712a4bd9c
build release3 (#19984)
* build release3

* copy agnos manifest

* build in jenkins

* nproc doesn't work

* no pandaextra

* revert that

* don't modify version from source

* build after tests

* restore the symlink

* only master

* remove apk

* revert that

Co-authored-by: Comma Device <device@comma.ai>
2021-01-31 18:49:34 -08:00
Dean Lee 7f5a1ce02d
get_frame_image: moved the global variables into function static (#19982) 2021-01-31 18:16:12 -08:00
Jack Davison 5bebc32fb1
Add ESP FW for 2021 Hyundai Sonata SEL (#19980) 2021-01-31 13:00:17 -08:00
Dean Lee 3fde3a5f7d
pigeon_thread: ensure the pigeon->init() will not be called twice (#19963)
* ensure init is not called twice

* add space
2021-01-31 12:55:11 -08:00
Dean Lee b0c8ce4863
pigeon_publish_raw: use capnp::Data::Reader instead of Builder (#19952) 2021-01-30 19:16:21 -08:00
Dean Lee 9a9641a296
OMXEncoder: remove pthread_mutex_t lock from member variables (#19948)
* remove mutex

* rebase master
2021-01-30 19:11:03 -08:00
Dean Lee 2d0c249f40
dmonitoring: use the same way as driving to build model output more clearly (#19933)
* Use the same way as driving to build model output more clearly

* rebase master
2021-01-30 18:49:44 -08:00
Dean Lee 16e259cadf
loggerd: small cleanup (#19864) 2021-01-30 18:37:58 -08:00
Adeeb Shihadeh cfb0390183
move agnos manifest to selfdrive/hardware (#19889) 2021-01-30 18:31:28 -08:00
Adeeb Shihadeh 2d240717b3 bump opendbc 2021-01-30 18:23:19 -08:00
Dean Lee f54ecc2779
UI: function update_status (#19679)
* update_status

* reformat switch

* set s->started in update_status

* space

* rebase master
2021-01-30 18:21:54 -08:00
Adeeb Shihadeh afa1e69bc1
faster webcam CI (#19975)
* don't copy in openpilot

* need that

* try this

* reenable the condition
2021-01-30 17:56:54 -08:00
Adeeb Shihadeh 9fbac812e4 pin pre-commit hook versions 2021-01-30 16:55:07 -08:00
Adeeb Shihadeh 229395e15b fix static analysis checks after mypy update 2021-01-30 16:53:48 -08:00
Dean Lee 4d6584a315
boardd: remove global variables spoofing_started&fake_send (#19966) 2021-01-31 00:02:03 +01:00
Dean Lee edc2b3f67c
fix panda: remove uninitialized err and check after (#19974) 2021-01-30 23:59:49 +01:00
ZwX1616 6d16bfab82
tici dcam AE (#19970)
* tici_ae_front

* not const
2021-01-29 19:11:27 -08:00
Adeeb Shihadeh 4a03d1cb64 blue bg in training guide 2021-01-29 13:41:48 -08:00
Adeeb Shihadeh d3756bc475 cleanup training guide 2021-01-29 13:21:10 -08:00
grekiki c5762456e1
Qt training guide (#19953)
* initial commit

* background kind of works

* checkpoint

* temp

* add images

* all works

* remove some files

* rename

* enable restart

* remove first

* lfs try1

* refactor labels

* remove nonneeded code

* centered

* more centering

* don't hardcode the training version

Co-authored-by: Comma Device <device@comma.ai>
2021-01-29 17:54:00 +01:00
grekiki 82b894c645
Wifi correct ip (#19961) 2021-01-29 16:22:35 +01:00
Dean Lee dd3a260676
boardd: refactor usb_connect, delete panda on failure (#19956) 2021-01-29 13:10:56 +01:00
Willem Melching 9520c90a88 bump cereal 2021-01-29 13:02:30 +01:00