Commit Graph

65 Commits

Author SHA1 Message Date
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
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: 9529764549b8c59f7cf141ff3d2d9613ab53beab
2020-11-11 21:14:51 +01:00
Adeeb Shihadeh
b251e323b0 qt cleanup (#2476)
old-commit-hash: b00cb389efa4e197eb2d9f7bf45d973f9f9dc97c
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: 339d1967cb1e8ca73aeb1f0066a23b0933706ae5
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: 96b637737bd42b334bffb188d278766bd0abe6c6
2020-10-17 12:40:01 -07:00
Adeeb Shihadeh
fb935fa5f7 Build openpilot with webcam support in CI (#2070)
old-commit-hash: f4e18e0b7408bc73ffa9320c8ce2689b74993430
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: d53129324573f9e2d2539284c6f20ff18eefc3cf
2020-10-12 18:46:37 +02:00
Greg Hogan
904ffd7dc5 fix building modeld on pc (#2313)
old-commit-hash: 32ae738ea17c8a76536d8912ce9ca72aa4ddce48
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: dba49bbf849d591341b297983339ce981c0e0dc0
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: 0abd089ec4f1ba6629dc1a2ac8f197496e21e4bc
2020-09-29 13:12:38 +02:00
Willem Melching
769a23aebf fix compilation with Clang 10 on ubuntu 20.04
old-commit-hash: fe8d08806f6643e6774bdcbb71d0ad28a7bb4cc6
2020-09-29 12:54:51 +02:00
Willem Melching
80c86e35e4 SConstruct better tici detection
old-commit-hash: af66dae7e29692785ca286ad2b7ade401aee1007
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: 53e71f44ceec181e40c4cbd3f14a403798bca7bb
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: 9418b710a74a8a536def3c27e7ee22307b7ffd87
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: acd1bde496904fbc0d97f4d89e630358c4d11f7f
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: 42b6292fa5220ca979b0354de91aa16d2cf54039
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: 63436373d22566a13f4f6afbcb4acb742227d09d
2020-08-30 18:23:23 -07:00
Willem Melching
55c441b6dd Systemd logcatd (#2085)
* Systemd logcatd infrastructure

* This should work

* Cleanup

* Split

* More compact and cleanup

* Add to ubuntu setup package list

* Run logcatd on all non pc platforms
old-commit-hash: 5782efe3ae7882a6a8eee0086b9c612c1d276814
2020-08-26 17:09:23 +02:00
robbederks
c09e7f04e7 Tici sensord (#2072)
* tici sensord: WIP

* add sensor constants

* rename files

* base class

* init sensors

* publish something

* dont leak memory

* try reading from accel

* Accel works

* add time and sensor source

* Update release files

* If we want low BW we want 125hz

* this should run gyro as well

* add filter on gyro

* also filter accel data

* Add i2c files

* cast makes macos unhappy

* Same outputs as android sensord

Co-authored-by: Tici <robbe@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 622e42d504458ebfbb23e945beb1a60bbfd0e63b
2020-08-26 11:30:30 +02:00
Willem Melching
90b52344fd Universal clocksd (#2075)
* universal clocksd

* start in manager

* remove android include

* Apple hacks

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e497b95f549b6e6d5a249121804231878c747e90
2020-08-25 10:53:04 +02:00
Willem Melching
d0b9a57525 Fix qt env in SConstruct
old-commit-hash: 53f920bcca43fcf5470e675a18ea04e51edb07a2
2020-08-20 17:29:29 +02:00
Willem Melching
81ce0be48f Don't build by default
old-commit-hash: 93ae459d967a9c7bd07e9345beec6aad71510142
2020-08-20 17:23:58 +02:00
Willem Melching
473fb11d34 Qt ui for PC (#2023)
* qt ui boilerplate

* this kinda works

* cleanup

* render inside other widget

* cleanup

* more cleanup

* Not needed

* Handle click

* Draw at 20Hz

* create paint.hpp

* move stuff around

* update sidebar

* Draw vision

* this works again

* add clickable settings button

* Only collapse sidebar when started

* always use qt on linux

* fix width

* scrollable area

* talk to NetworkManager

* code to add a connection

* params toggles

* small cleanup

* add qt5 to dockerfile

* Qt on mac

* Add qt to release files

* fix macos build

* nore more ifdefs needed

* add icons

* make a bit nicer

* Hide scrollbar

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: e115c514521c7705112bd0cb2e4bf865b536501a
2020-08-20 17:16:44 +02:00
Adeeb Shihadeh
993eeaf694 Rebuild cython extensions when dependency version changes (#1886)
* rebuild cython extensions when python/cython/distutils version changes

* submodules and boardd

* kalman and transformations
old-commit-hash: 165e14d10384a67777ec5ed787cf1ec82ec61ccb
2020-07-16 13:59:32 -07:00
Adeeb Shihadeh
ef00c30f3a small scons cleanup (#1858)
old-commit-hash: 704bc1b8834d3f98e0be1d37e72911e449d7dd6c
2020-07-10 15:26:16 -07:00
Adeeb Shihadeh
cdfb090c7a Wunused (#1841)
* enable Wunused, first pass

* unused stuff in snpe model

* these are used on phone

* handle sigint and sigterm in modeld

* fix phone build

* camera qcom

* QCOM build works

* delete unused camerad vars

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: eb1aa3d831fd0d7fffd9aacec1accb0a5bdb0304
2020-07-09 09:25:32 -07:00
Adeeb Shihadeh
86200a6d6e Separate scons cache by branch (#1836)
* separate scons cache by branch

* debug

* guess you can only call CacheDir once

* remove another call

* pass git branch and commit through

* copytree

* set CI
old-commit-hash: d8ff1865450fe341f05dc6d8b6a8580eccb24f86
2020-07-07 12:36:02 -07:00
Adeeb Shihadeh
de457fddc2 On-device CI framework (#1784)
* let's see if this works

* fix build_release actions job

* does jenkins like this config

* separate jenkinsfile for release build

* fix devel build

* devel build should work

* always pass that for now

* run modeld replay

* release2 build will be a separate PR

* pass env to phone shell

* force checkout

* run on real jenkins eons

* add timeout

* rsync

* more timeout

* trailing slash

* fix branch detection

* debug

* not sure why paramiko doesn't pass it through

* newline

* CI_PUSH

* still not passing it

* test branch

* should be good now
old-commit-hash: 32f03ec8a52c7c5fa56d5cce19fbbd7ecf24b7dd
2020-07-03 19:12:05 -07:00
George Hotz
5d069eb8c3 Fixups for Mac, and a bunch for PC (#1654)
* fix mac nui

* fix cereal

* builds on mac without warnings

* ui swap shouldn't be instant on pc

* camerad builds on mac

* modeld, and now everything, builds on mac

* ui draws pictures on mac now

* fix camerad shutdown

* support ui looping on pc

* python3 on that

* SCNu64 should be cross platform

* bump cereal and new apk

* clean up

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 344a9a369983f58fe1e71f84478ded5c766e0d1b
2020-06-11 18:21:59 -07:00
Willem Melching
76a465e0ec Write orientation & transform in C++ (#1637)
* locationd at 20hz

* update ref

* bump cereal

* dont modify global state

* add scons files

* ecef2geodetic and geodetic2ecef

* Finish local coords class

* Add header file

* Add orientation.cc

* cleanup

* Add functions to header file

* Add cython wrapper

* y u no work?

* This passes the tests

* test rot2quat and quat2rot

* Teste euler2rot and rot2euler

* rot_matrix

* test ecef_euler_from_ned and ned_euler_from_ecef

* add benchmark

* Add test

* Consistent newlines

* no more radians supported in geodetic

* test localcoord single

* test localcoord single

* all tests pass

* Unused import

* Add alternate namings

* Add source for formulas

* no explicit tests needed

* remove benchmark

* Add release files

* Typo

* Remove print statement

* no access to raw transform matrix

* temporarily add tolerance

* handcode quat2euler

* update ref
old-commit-hash: c18e7da3c25c59a19efda8ec3a1b716c2571cc2f
2020-06-09 16:44:26 -07:00
Willem Melching
ce6dd8d4e9 Model + camerad test (#1622)
* kind of works

* move that

* hack to get camerad to reliably terminate

* not sure why SIGTERM wasn't working before

* compare bytes

* clean up some hacks

* gitignore

* fix that

* WIP

* no reboot

* comparison works

* pretty print

* fix build

* run in jenkins

* python path

* space

* raise timeout

* new eon

* skip the copy

* spinner

* spin less

* update model ref commit

* reenable that

* clean up

* fix jenkinsfile

* parallel

* wrap it in a stage

* fix linter

* better progress

* lower timeout

Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 63c8e8439b6d19020055f922340d8e33d906363a
2020-06-04 18:57:25 -07:00
Willem Melching
91f1082394 -Werror (#1567)
* werror

* -Wno-inconsistent-missing-override

* Silence ffmpeg deprecation warnings

* add some more pragmas to ignore warnings

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 50f3f1d3357b356c5b1144c518f35375f5bb9924
2020-05-26 13:27:01 -07:00
Willem Melching
8f71de0dbe Rednose (#1503)
* add rednose

* update rednose

* This compiles

* Add rednose to release

* cleanup

* Extract generated dir as argument

* Add constants.py to release

* Add rednose to dockerfile

* Fix that
old-commit-hash: 28bf5d1dd8d08cd8998d2ee9d813b7e573858cf9
2020-05-14 15:36:56 -07:00
Willem Melching
d697ed7ba7 dont build index log on phone
old-commit-hash: 06a0b92cfc955cf495584126acc260dae27c4b6f
2020-05-14 10:53:19 -07:00
Willem Melching
aedf223401 remove eigen from phonelibs (#1505)
old-commit-hash: add784a7df0bd27aa1df115e38d43d5159c832f9
2020-05-13 16:41:52 -07:00
Willem Melching
8505259e41 Library cleanup (#1491)
* library cleanup

* remove fastcv

* Fix build step

* bump cereal

* bump cereal

* Install capnp

* bump

* no docker cache

* Update installation instructions

* Needs sudo

* Can we sudo?

* Cache was not the problem

* remove static libraries from boardd install script

* Update setup script

* Remove import

* No capnp install in lgtm

* Fix dockerfile
old-commit-hash: 72db8d890d04e6eb3ce652be3da9bdf23ebda510
2020-05-12 18:50:07 -07:00
Adeeb
b1cbd898f1 Move swaglog to cpp + remove another lib (#1470)
old-commit-hash: 46f3665279222ce53333a8c001def1b2a8e32926
2020-05-08 14:46:10 -07:00