Commit Graph

101 Commits

Author SHA1 Message Date
Willem Melching
2433383e1d Add swaglog to cereal/VisionIPC (#21758)
* add swaglog to VisionIPC

* add both flags

* add comment

* add cereal/logger to release

* bump cereal

* bump cereal

* link against common

* bump cereal
old-commit-hash: b69c3047482d970b8efc555251dbbba993d1284c
2021-07-29 13:13:47 +02:00
robbederks
319a000fe5 Add option to avoid thneed (#21577)
* add option to avoid thneed

* cleaner

Co-authored-by: Willem Melching <willem.melching@gmail.com>

* fix USE_THNEED in modeld

* cleanup

Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 2f22207ecef15bdd43e7b93860c5abcff7a245d5
2021-07-13 16:40:20 +02:00
HaraldSchafer
96d4bfbff3 Refactor long (#21433)
* refactor

* needs casting

* tests pass

* fix that test

* refactor in controls

* lets not go crazy

* change of names

* use constants

* better naming

* renamed

* soft constraints

* compile slack variables

* rm git conflict

* add slack variables

* unused

* new edition

* fcw

* fix tests

* dividing causes problems

* was way too slow

* take a step back

* byeeee

* for another time

* bad idxs

* little more cpu for cruise mpc

* update refs

* these limits seem fine

* rename

* test model timings fails sometimes

* add default

* save some cpu

* Revert "little more cpu for cruise mpc"

This reverts commit f0a8163ec90e8dc1eabb3c4a4268ad330d23374d.

* Revert "test model timings fails sometimes"

This reverts commit d259d845710ed2cbeb28b383e2600476527d4838.

* update refs

* less cpu

* Revert "Revert "test model timings fails sometimes""

This reverts commit e0263050d9929bfc7ee70c9788234541a4a8461c.

* Revert "less cpu"

This reverts commit 679007472bc2013e7fafb7b17de7a43d6f82359a.

* cleanup

* not too much until we clean up mpc

* more cost on jerk

* change ref

* add todo

* new ref

* indentation
old-commit-hash: be5ddd25cd3f4c8b7e46cdeecf303e2c73301003
2021-07-07 19:42:26 -07:00
Adeeb Shihadeh
f725c5dc2a remove modem logging (#21497)
old-commit-hash: a6efe9a6b7b3bd054822c2fe71329939d30d1fef
2021-07-06 13:51:45 -07:00
Willem Melching
34678fb7fb Qt logging through cloudlog (#21452)
* Qt logging through cloudlog

* sort imports

* rename to swaLogMessageHandler

* move to util

* info is high enough

* smaller diff
old-commit-hash: 54b6a9f121aa7af0920016d7288b0037beca1260
2021-07-02 14:01:59 +02:00
Adeeb Shihadeh
e56a6919bd fixup release build (#21430)
* fixup release3 build

* works on pc

* install release3

* push dashcam

* only import on tici

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 49d96f0acc5d6675357b5f9bed3958ada48c0874
2021-06-28 14:30:44 -07:00
Adeeb Shihadeh
358067325e diag logging (#21360)
* rat

* log max power

* cloudlog

* no print

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 1da3ab42dc9cc87a9477d5b2d74165ec826f0a53
2021-06-23 23:53:22 -07:00
Adeeb Shihadeh
32d6ffd248 define _USING_LIBCXX on NEOS (#21243)
old-commit-hash: 656719edfd7ba2788115477d23979546a3c7c55f
2021-06-12 01:59:42 -07:00
Dean Lee
a412726247 cleanup include paths (#21189)
* cleanup include paths

* full path

* bump cereal

bump cereal

rebase master

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 9e636d2edc1fb990cb0fa01cb67c0f38014ab68f
2021-06-11 01:34:34 -07:00
Adeeb Shihadeh
fb62002e92 use scons cache by default (#21102)
* always use scons cache

* cleanup
old-commit-hash: a0dabd94e9d04fdc772b3cb34b6cd016da29d971
2021-06-01 17:12:32 -07:00
Adeeb Shihadeh
c7c49e8e35 fix up model tests + tools (#21071)
* unlogger: send yuv stream

* fix up model test tools

* fix unlogger

* rename model replay

* bump cereal

* test in actions

* no ci for now
old-commit-hash: cf6d133638caac0d974209f92be9c200cdbcbf3f
2021-05-28 23:08:08 -07:00
Adeeb Shihadeh
884736efc2 better scons cache handling (#20980)
* better scons cache handling

* nicer

* max size

* fast
old-commit-hash: 4f4cb56de920f42cc8646ba569ef362910be6185
2021-05-22 20:13:39 -07:00
Willem Melching
efa94a89ff Mapbox widget (#20751)
* squash mapbox stuff

* only hacks for pc

* no hack there

* only update when needed

* get destination from param

* no need for user agent

* add athena method

* change nav path color

* layout cleanups

* margin top

* add build scripts

* rename header file

* set pitch

* fix icon blinking

* keep both options

* draw on top to fix last blinking

* only recomput with gps

* fix include

* put map in onroadwidget

* update mapbox plugin to allow specifying directions url

* cycle through views

* dynamic resize

* only when present

* add map_helpers

* whitespace

* small fixes

* let scons decide

* update setup files

* implicit dependency

* fix alerts

* Update selfdrive/ui/SConscript

* move clearLayout to util.h

* only build when map.cc present

* move maps to own folder

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 86aefbe7667f0693402c1883d286ce331e9d6215
2021-05-17 14:57:07 +02:00
Dean Lee
e333e4f189 Cleanup selfdrive/ includes (#20822)
* cleanup include path

* continue

* format includes

* fix testraw.cc

* remove include path from SConstruct

* regroup

* rebase master

* almost done

* apply review

* rename FileReader.xx to filereader.xx

* rename Unlogger.x->unlogger.x

* rename FrameReader.xx -> framereader.xx

* apply reviews

* ui.h

* continue

* fix framebuffer.cc build error:mv util.h up

* full path to msm_media_info

* fix qcom2 camerad

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 7222d0f20dc8edfe0d2f3417d1ce7c84fbd32805
2021-05-08 22:15:17 -07:00
Adeeb Shihadeh
31f13e7747 Building on M1 (#20796)
* cereal builds

* UI builds

* libyuv
old-commit-hash: c65c6102a6622f0f55fc7eaeb6e9d317258ce6ed
2021-05-02 14:21:49 -07:00
iejMac
ff2138d905 qt replay (#20602)
* initial commit, works

* remove nui

* working again

* visionipc

* cleanup

* cleanup

* moving VisionIpcServer to Unlogger class

* works

* tab cleanup

* headless mode

* headless mode works

* working headless mode

* gitignore update

* small unlogger refactor

* refactor param in UIState

* works, very slow, hacks

* cleanup

* works

* cleanup

* cleanup

* unused

* works for whole route

* nicer

* a little nicer

* different threshold

* maintains 1 segment window

* works with public api

* comments

* networkTimer works

* cleanup

* unified HttpRequest

* tabs

* tabs

* comments'

* gitignore

* gitignore

* only on PC

* same line else

* no changes in home.cc

* scons

* update scons

* works

* revert mainc.c

* revert home

* else

* just api + problem with api send

* works

* include cleanup

* general json fail

* whitespace

* remove active

* adding request repeater

* removing comments

* tabs

* update comment

* cereal

* fix

* trailing new lines

* grammar

* if whitespace

* indentation

* Update selfdrive/ui/SConscript

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

* Update selfdrive/ui/qt/request_repeater.cc

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

* works

* sort by dir

* no blockSignal

* replay is now QOBject

* cant take const char

* rename inner it

* get width and height from frame readeR

* resolve TODO

* seek in next pr

* spaces

* ui stuff

* fix CI

* remove comments

* no repalce

* trim segment fix

* remove seek from stream

* no cache key

* final changes'

* fix

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 19d962cdf37b80523deba6518057f2e860f65fee
2021-04-24 00:59:09 -07:00
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: 3420707ad58b060333246eb43db09474bb336d39
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: eacacb8fba8a58f32132c06e16012f99c2ee5f26
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: 58dabdda00eae882b2290f7edd2d21dff81e3528
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: 36d8c89ebf5fee583b89e48a5d2d5e1d178b5ee5
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: e6a8157916e9f8365f3f4ac70e49a552e40a8511
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: 55926e762a5198a0a8456419b9afa1d6cb22bb4e
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: 0e338d2b91f35af6a7222eeb414951cd88784092
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: 106ed2ea6664dc8332412407a87d578db01d42ff
2021-03-22 14:27:37 -07:00
Adeeb Shihadeh
1eed3b756b fix cached mac CI run (#20294)
old-commit-hash: 92c5bbf92de0401c6f6a7c8f9d246dcf75644dbb
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: 9d92c36dca73e0ad99465d99cd39da3e643b265e
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: 78808961c53a29fddcec334358a0fcc55aa69a1c
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: c7dd344f2e41c1cf587d2c2dcb7f13428ab74883
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: 1c369a90096fee30116b14eed610f7ecb0514fe1
2021-02-25 01:03:37 -08:00
Willem Melching
bdc50d4856 add catch2 header
old-commit-hash: fc233adda7486f8aaa16b93f73a6d74da98392a7
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: caf8f85ee9821c9433d52d0fbf7c6ba4ed3fcc5c
2021-02-12 09:48:15 +01:00
Willem Melching
b854cca46d look in /usr/local/lib first
old-commit-hash: d46520a057a1ae1ed6b2de1e39dd0f064311eb02
2021-02-04 19:11:29 +01:00
grekiki
0b4151df44 Multithreaded ssh activation (#19988)
No more lag on SSH enable/disable
old-commit-hash: cc1308c7dffa8735bcb8f0a021f9755588efdf30
2021-02-01 19:46:03 +01:00
Adeeb Shihadeh
05737dd550 move Qr code lib to phonelibs (#19871)
old-commit-hash: e54db636f7453665d5e8317d9c9fb4c54196dc3e
2021-01-21 11:17:21 -08:00
robbederks
a7b279ecf7 add option for external sconscript (#19821)
old-commit-hash: 88e8b8394e53d3421acc499f0a629ca3b66bf6d1
2021-01-18 14:32:29 +01:00
Adeeb Shihadeh
9909060b4d Video Encoder abstraction (#19729)
old-commit-hash: a1c7f19fe46fe79d84543a9388f4b131fc42051b
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: fb496c692a9ebdcda15069a8d4eb95734b587d68
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: 7c43a60bda6c129c0c5a34cdb7fe74d8243729c5
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: 87950eb3127e175f0f2b0bb42440f5350c679369
2021-01-05 12:50:23 -08:00
Adeeb Shihadeh
bc9891b651 external cleanup (#19647)
* remove external

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

* cleanup

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

* level1
old-commit-hash: 069189fd7fd9dc677b29725f92fd3b4b80911d8a
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: 5b26c97141b65e3bcbddaec7e6526d5f2f1c910e
2020-12-18 13:29:20 +01:00
Adeeb Shihadeh
82b865808a remove per-branch build caching for CI builds
old-commit-hash: d62e0aa0927c0a7c8192934e8138e0beb3a40b31
2020-12-16 11:39:30 -08:00
Adeeb Shihadeh
3ff500dda1 fix aarch64 build
old-commit-hash: b06bc9b6bc798870324b4ceaed351cae0bfe24b3
2020-12-14 01:23:57 -08:00
Adeeb Shihadeh
d73b3a030f output clang compile database with test build
old-commit-hash: b92eb543ca956a3d04133e0749dcd689007b8a05
2020-12-14 00:46:13 -08:00
Adeeb Shihadeh
7f8aa45ee7 bump opendbc + scons cleanup
old-commit-hash: ca37feb6b103ace60d1d3950f591cc0ca6585ddb
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: 0d62f05b79d627e5c0ec6d7bc34b0faa4d0a1247
2020-11-22 00:36:40 -08:00
Adeeb Shihadeh
1e2f1451f5 don't need this anymore
old-commit-hash: c1a62c6be9f992e985d2803994fbb67f1cc89e72
2020-11-22 00:21:20 -08:00
Adeeb Shihadeh
615e5410c5 tici has a real /tmp
old-commit-hash: bbd1b758ffc223ebee621d069dbc312a93bf6466
2020-11-16 21:33:33 -08:00