Commit Graph

85 Commits

Author SHA1 Message Date
Joost Wooning
c0ac9bb63c convert locationd to c++ (#20622)
* live_kf to c++

* first locationd code

* Running in process_replay

* locationd handle cam_odo and live_calib

* log event handlers

* working message receiving

* compiling message sending

* correctly sending some messages

* correct receiving and sending

* update ref_commit with some all_alive_and_valid being false, minor fixes

* fix std abs

* linking on device fix

* fix cpu usage test

* generate kf constants and defines

* fix replay test

* replay without acks, cleanup

* operate on bytearray messages

* cleanup

* send msg fix

* small sleep, less flaky test

* remove python locationd

* review feedback

* bump rednose
old-commit-hash: 3420707ad5
2021-04-20 11:56:43 +02:00
Willem Melching
fb5c269833 Cleanup ubloxd message parsing (#20664)
* use kaitai to generate parsers

* add scons flag to generate parsers

* add outer layer ephemeris parsing

* create ephemeris packet at the right time

* parse subframe 1 and 2

* add more fields

* add generated files to release

* fix signs

* no cast

* add unordered map include

* add exception handling

* small cleanup

* parse iono data

* cleanup
old-commit-hash: eacacb8fba
2021-04-14 16:17:30 +02:00
Adeeb Shihadeh
89720ef6ce more apk cleanup (#20646)
* bump cereal

* cleanup

* little more

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 58dabdda00
2021-04-10 14:53:51 -07:00
Adeeb Shihadeh
7955ba0a5f enable --as-needed linking (#20619)
* only link as needed

* a few more

* need to fix order

* everywhre

* fix mac

* update spinner + text

* fix c2 build

* another fix

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 36d8c89ebf
2021-04-08 11:17:07 -07:00
Joost Wooning
ff9840c53f locationd and paramsd using cython version of ekfsym (#20610)
* Locationd live_kf using c++ kalman filter

* use both cpp and python live_kf to compare

* Locationd using ekfsym cpp

* Paramsd using c++ ekf_sym

* Other building method

* Cleanup

* cleanup

* Single sconscript for rednose and locationd/models

* CI

* CI

* CI fix

* renamed scons config

* Fix lib loading

* bump rednose

* update cpu usage test
old-commit-hash: e6a8157916
2021-04-08 13:09:11 +02:00
iejMac
fe30561f77 QML terms (#20439)
* initial_commit

* rich text + color

* nice scrolling

* margin

* print on scroll + some margins

* print on scroll + some margins

* working, needs a lot of improvements

* should be done

* initial_commit

* rich text + color

* nice scrolling

* margin

* print on scroll + some margins

* print on scroll + some margins

* working, needs a lot of improvements

* should be done

* update tests

* Revert "update tests"

This reverts commit 94d5ed789eb79bedc9544fc27b4d14c0acc44adf.

* cleanup

* QuickView -> QuickWidget

* tuned scrolling

* cherry on top

* screen size scaling

* load from html

* fixing tabs

* signal fix

* TABS

* mistake

* rename

* camel case

* transparent background

* naming + point->pixel Size

* style

* util::read_file

* adjusting font size

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 55926e762a
2021-03-24 19:30:52 -07:00
Willem Melching
285e086d80 use scons to build panda fw (#20457)
* use scons to build panda fw

* add arm gcc to dockerfile

* install gcc on macOS

* pandad shutdown test is flaky and broken due to faster startup

* bump panda
old-commit-hash: 0e338d2b91
2021-03-24 14:44:39 +01:00
Adeeb Shihadeh
fe474a58c4 fix offroad home on tici (#20435)
* grid layout was a hack

* duplicate slot

* looks better

* fix that

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 106ed2ea66
2021-03-22 14:27:37 -07:00
Adeeb Shihadeh
1eed3b756b fix cached mac CI run (#20294)
old-commit-hash: 92c5bbf92d
2021-03-09 19:37:17 -08:00
Adeeb Shihadeh
cbc88afa0c fix mac CI (#20292)
* fix mac ci?

* try that

* revert that

* try

* almost

* lib

* no 5?
old-commit-hash: 9d92c36dca
2021-03-09 17:33:45 -08:00
Greg Hogan
44f03a9401 fix log values with non-utf8 characters and remove index_log (#20173)
* remove index_log

* handle non-unicode characters in values

* dump.py better handling of printing non-unicode characters

* only replace errors in main
old-commit-hash: 78808961c5
2021-03-01 13:03:44 -08:00
Adeeb Shihadeh
2b63a4e9c2 neos networking (#20165)
* neos networking

* tethering

* cleanup

* stretch

* cleanup

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c7dd344f2e
2021-02-25 22:19:53 -08:00
Adeeb Shihadeh
70db46e752 Qt on NEOS (#20153)
* qt on neos

* cleanup

* check arch

* fix pc

* fix mac

* base libs

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 1c369a9009
2021-02-25 01:03:37 -08:00
Willem Melching
bdc50d4856 add catch2 header
old-commit-hash: fc233adda7
2021-02-17 16:12:25 +01:00
grekiki
03f12d8735 Qt add Terms & Conditions (#19998)
* works...

* terms

* new termms

* should be good

* reduce diff

* fix reviews

* correct font + remove unused import

* no zooming

* read the TERMStig!

* dynamic check for page being read

* rename scroll position slot

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: caf8f85ee9
2021-02-12 09:48:15 +01:00
Willem Melching
b854cca46d look in /usr/local/lib first
old-commit-hash: d46520a057
2021-02-04 19:11:29 +01:00
grekiki
0b4151df44 Multithreaded ssh activation (#19988)
No more lag on SSH enable/disable
old-commit-hash: cc1308c7df
2021-02-01 19:46:03 +01:00
Adeeb Shihadeh
05737dd550 move Qr code lib to phonelibs (#19871)
old-commit-hash: e54db636f7
2021-01-21 11:17:21 -08:00
robbederks
a7b279ecf7 add option for external sconscript (#19821)
old-commit-hash: 88e8b8394e
2021-01-18 14:32:29 +01:00
Adeeb Shihadeh
9909060b4d Video Encoder abstraction (#19729)
old-commit-hash: a1c7f19fe4
2021-01-12 00:03:31 -08:00
Willem Melching
3f950832b9 VisionIPC 2.0 (#19641)
* Squashed vipc

* Update release files

* Remove else

* add visionipc to release files

* use poller in vipc receive

* opencl framework instead of lib on macos

* Fix camera webcam

* Fix opencl on mac in ui

* more webcam fixes

* typo in ui sconsfile

* Use cur_yuv_buf

* visionbuf c++ class

* Camera qcom was still using visionbuf_allocate

* Turn loggerd back on

* fix snapshot

* No build needed

* update test camerad

* no more release callback

* make encoder c++

* Revert "no more release callback"

This reverts commit e5707b07002fee665d0483d90713154efc2d70d4.

* fix exit handlers

* No need to check errno

* move release callback call

* s/VIPCBufExtra/VisionIpcBufExtra/g

* use non blocking connect

* ui use non blocking connect

* Lower condition variable wait time

* Snapshot cleanup

* bump cereal

* bump cereal
old-commit-hash: fb496c692a
2021-01-08 14:54:25 +01:00
Willem Melching
e0f2111061 Rebuild acado and add scons command to regenerate mpc (#19685)
* rebuild acado and add scons command to regenerate mpc

* update scons help
old-commit-hash: 7c43a60bda
2021-01-07 15:18:23 +01:00
Adeeb Shihadeh
d89bb8b29c setup clang tidy (#19533)
* setup clang tidy

* config

* some cleanup

* little more

* remove that

* fix qcom build
old-commit-hash: 87950eb312
2021-01-05 12:50:23 -08:00
Adeeb Shihadeh
bc9891b651 external cleanup (#19647)
* remove external

* put back ffmpeg for now
old-commit-hash: 1669e4a5d1
2021-01-04 14:17:14 -08:00
Adeeb Shihadeh
5eecc6056f build nui with scons (#19561)
* it builds

* cleanup

* remove that
old-commit-hash: 3c00e6792c
2020-12-20 19:39:59 -08:00
Adeeb Shihadeh
6371eda194 build Qt UI with clazy (#19537)
* clazy, level0

* level1
old-commit-hash: 069189fd7f
2020-12-18 19:26:59 -08:00
grekiki
9f0611507e Qt Offroad stats (#19498)
* probably broke a lot, need the commit though

* finally works

* make it work...

* ...

* kind of works

* better styling

* all should work

* tiny cleanup

* temp

* looks nicer

* create JWT in C++

* kilometers -> km

* use correct free methods

* dont put code in assert statement

* Build JWT payload dynamically

* get dongle id once

* include cleanup

* Remove qDebug

* Update drive_stats.cc

Github is a nice editor :)

* swap week and all and fix sconscript

* install openssl

* openssl include dirs on mac

* is this where openssl is?

* It's here

* small cleanup

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 5b26c97141
2020-12-18 13:29:20 +01:00
Adeeb Shihadeh
82b865808a remove per-branch build caching for CI builds
old-commit-hash: d62e0aa092
2020-12-16 11:39:30 -08:00
Adeeb Shihadeh
3ff500dda1 fix aarch64 build
old-commit-hash: b06bc9b6bc
2020-12-14 01:23:57 -08:00
Adeeb Shihadeh
d73b3a030f output clang compile database with test build
old-commit-hash: b92eb543ca
2020-12-14 00:46:13 -08:00
Adeeb Shihadeh
7f8aa45ee7 bump opendbc + scons cleanup
old-commit-hash: ca37feb6b1
2020-11-26 16:14:02 -08:00
Adeeb Shihadeh
27aaaa82e6 Revert "don't need this anymore", need to fix cereal first
This reverts commit 4f090d1ddfe39885a8b76b7e6fbd15483a7572d5.

old-commit-hash: 0d62f05b79
2020-11-22 00:36:40 -08:00
Adeeb Shihadeh
1e2f1451f5 don't need this anymore
old-commit-hash: c1a62c6be9
2020-11-22 00:21:20 -08:00
Adeeb Shihadeh
615e5410c5 tici has a real /tmp
old-commit-hash: bbd1b758ff
2020-11-16 21:33:33 -08:00
grekiki
0b902a02c1 Scons builder for cython extensions (#2485)
* complie boardd without python

* not good, but don't want to lose the file, because it works

* clean a bit

* update dbc

* should build on CI

* not good, but don't want to lose the file, because it works

* clean a bit

* should build on CI

* remove unneeded path

* reorder paths

* reduce diff

* and now it works?!

* ... should work in CI

* add kj, 30% chance to fix macos

* pydebug

* new way to find path

* fix :)

* tested

* sanity check

* repl. MacOS flags

* hope it works

* need more logs

* need more logs2

* test if it works

* should work on CI

* correct python file

* should not work

* cleanup

* real cleanup

* more removals

* 50% of file

* transformations

* fixed a hardcoded variable

* more logs

* simpl.

* kalman

* all donw if it passes tests

* cleanup

* reduce code by 20 lines if this works

* fix bugs

* cleanup

* SharedLibrary

* cleanup

* ...

* remove unused

* CI fix maybe?

* add more valid path

* more logs

* ...:

* fix webcam CI

* remove WError flag

* deprecated is not an error

* more Wno things

* reduce diff, add Wno to env

* don't import nonexistent stuff

* SharedLibrary v2

* less custom env

* renaming, remove SharedLibs

* pack libs in envCython

* experiment

* better docker caching

* whitespace

* more docker caching

* improvement

* improvements

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 9529764549
2020-11-11 21:14:51 +01:00
Adeeb Shihadeh
b251e323b0 qt cleanup (#2476)
old-commit-hash: b00cb389ef
2020-11-04 11:16:34 -08:00
Willem Melching
651d4ce031 --std=c++17 (#2330)
* switch to c++17

* more 17

* 1z

* use std::clamp

* Fix types in clamp

* bump submodules

* bump laika

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 339d1967cb
2020-10-17 13:33:12 -07:00
Adeeb Shihadeh
f92c30b164 fix build warnings (#2355)
* fix build warnings

* cython fixes

* cleanup transformations build

* little more
old-commit-hash: 96b637737b
2020-10-17 12:40:01 -07:00
Adeeb Shihadeh
fb935fa5f7 Build openpilot with webcam support in CI (#2070)
old-commit-hash: f4e18e0b74
2020-10-16 15:16:17 -07:00
grekiki
b1a9214f8f Startup speedup: scons decider (#2309)
* dump timing

* fix

* change a bit

* change a bit

* change a bit

* improve scons

* fix typo

* try to improve manager

* try to improve manager

* try to improve manager

* try to improve manager

* try to improve manager

* try to improve manager

* try to improve manager

* try to improve manager

* try to improve manager

* try to improve manager

* try to improve manager

* try to improve manager

* try to improve manager

* try to improve manager

* try to improve manager

* try to improve manager

* try to improve manager

* try to improve manager

* try to improve manager

* try to improve manager

* try to improve manager

* try to improve manager

* try to improve manager

* try to improve manager

* try to improve manager

* try to improve manager

* change decider

* reduce diff

* reduce diff

* reduce diff

* reduce diff and fix review

* submodules
old-commit-hash: d531293245
2020-10-12 18:46:37 +02:00
Greg Hogan
904ffd7dc5 fix building modeld on pc (#2313)
old-commit-hash: 32ae738ea1
2020-10-12 13:16:42 +02:00
Willem Melching
d1dea6bac6 fix compilation with Clang 10 on ubuntu 20.04 (#2243)
* fix compilation with Clang 10 on ubuntu 20.04

* Allow newer warning options in old clang

* Fix space
old-commit-hash: dba49bbf84
2020-09-30 14:58:56 +02:00
Willem Melching
322fe79f5b Revert "fix compilation with Clang 10 on ubuntu 20.04"
This reverts commit 58e5036dd8135da83726d419d892ebdcda849407.

old-commit-hash: 0abd089ec4
2020-09-29 13:12:38 +02:00
Willem Melching
769a23aebf fix compilation with Clang 10 on ubuntu 20.04
old-commit-hash: fe8d08806f
2020-09-29 12:54:51 +02:00
Willem Melching
80c86e35e4 SConstruct better tici detection
old-commit-hash: af66dae7e2
2020-09-24 19:24:14 +02:00
Willem Melching
f275d06ff2 tici: fix ui rotation (#2222)
* fix rotation using wayland

* put back intrinsic matrix fix
old-commit-hash: 53e71f44ce
2020-09-23 23:16:55 +02:00
Adeeb Shihadeh
bbf6042c5a fix unused dt entry on android (#2160)
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 9418b710a7
2020-09-22 14:46:37 -07:00
Adeeb Shihadeh
0ae5e7403e QT UI: sounds (#2078)
* move android into own dir

* fix name

* maybe this works? qt ui doesn't work on mac

* fix that

* pc sound works

* fix pc build

* lowercase

* that needs to be real_arch

* split into classes

* fix typo in lib

* Fix cycle alerts

* Add qt multimedia libs to install scripts

* Add ui/android folder

* Fix android build

* Raise exception if sound init fails

* add missing return

Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: acd1bde496
2020-09-09 19:04:28 +02:00
Willem Melching
35155d5efa ui: simplify shader versions and fix hardcoded texture size (#2112)
* fix shader version

* fix texture buffer size

* Attribute/Varying is deprecated
old-commit-hash: 42b6292fa5
2020-08-31 15:02:01 +02:00
Adeeb Shihadeh
afafacabbb Remove opencv from phonelibs (#2107)
* remove opencv from phonelibs

* clean that up too
old-commit-hash: 63436373d2
2020-08-30 18:23:23 -07:00