Commit Graph

153 Commits

Author SHA1 Message Date
Shane Smiskol
5f8b46eabe Build panda/SConscript (#26646)
* panda/SConscript

* think this is right?

* bump panda

* fix test_models

* use a filter

* bump panda to mater

* more aesthetic ordering

* alphabetical :(

* alphabetical :(
old-commit-hash: 01dac5d06b
2022-11-30 20:27:55 -08:00
Willem Melching
b0cbdfd3f0 Discover Qt paths using qmake (#26501)
* discover qt paths using qmake

* fix device build

* use subprocess.check_output
old-commit-hash: 2cd1571f4a
2022-11-16 15:45:28 -08:00
Dean Lee
16719eb43b Move Qt moc files to scons cache directory (#26109)
old-commit-hash: 3a8ddc191f
2022-10-17 10:32:31 -07:00
Cameron Clough
b4f8289972 Revert "don't build cabana unless extras (#26072)"
This reverts commit db6c8ca25c40e750f6b8f6fae68fb52084f9f616.

old-commit-hash: 2082248b73
2022-10-13 12:48:24 -07:00
Cameron Clough
919f3cb4e1 don't build cabana unless extras (#26072)
don't build cabana on device

this caused CI to fail for xx since qt libs aren't installed in CI docker
old-commit-hash: 41f520c254
2022-10-13 11:43:20 -07:00
Cameron Clough
e0a63d7041 build extras together (#26051)
* build extras together

* don't check here either
old-commit-hash: 8b5ebbddf6
2022-10-12 15:14:02 -07:00
Dean Lee
292d55cf8a c++ cabana: Initial version (#25946)
* draft

* continue

* fix QChart unresponsive with large points

* build with --extras

* add filter

* save DBC button

* more buttons

* add flag to use qcamera

* stop replay in dctor

* README

* use getMsg

* video control

* edit signal

* add colors

* correct ts

* add/edit signals

* use bus:address as key
old-commit-hash: 1b8324af87
2022-10-03 15:19:42 -07:00
Dean Lee
fad0bdf23c camerad: build camerad on PC (#25726)
* compile camerad on PC

* scons cleanup

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 29f9c536b4
2022-09-11 13:56:38 -07:00
Adeeb Shihadeh
3c768e8937 fix intel mac build, from #25500
old-commit-hash: 2e013c9d46
2022-09-05 18:07:45 -07:00
George Hotz
29cd51b876 modeld: Move from SNPE to tinygrad (#25207)
* compiling, won't work yet

* running with inputs and outputs

* there's some magic chance this works

* no more dlc, include onnx

* yolo tests plz

* bump tinygrad

* files_common + delete dlc

* tinygrad_repo -> tinygrad

* pre commit config

* llops needed

* extra in files_common

* bump tinygrad

* fix indent

* tinygrad/nn/__init__

* tinygrad_repo

* bump tinygrad repo

* bump tinygrad

* bump with native_exp, match maybe

* native_explog is argument

* pyopencl no cache

* 5% chance this matches

* work in float32?

* bump tinygrad

* fix build

* no __init__

* fix recip

* dumb hack

* adding thneed PC support

* fix pc segfault

* pc thneed is working

* to_image

* prints stuff with debug=2

* it sort of works

* copy host ptr is simpler

* bug fix

* build on c3

* this correct?

* reenable float16

* fix private, fixup copy_inputs internal

* bump tinygrad and update ref commit

* fix OPTWG on PC

* maybe fix non determinism

* revert model replay ref commit

* comments, init zeroed out buffers

* upd ref commit

* bump tinygrad to fix initial image

* try this ref

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 40d6f4b65c
2022-09-01 10:31:14 -07:00
Adeeb Shihadeh
35ff65121e pre-commit: add codespell (#25571)
old-commit-hash: 6590fb2b93
2022-08-30 11:20:55 -07:00
Adeeb Shihadeh
e3f291fe45 webcam isn't a special build anymore
old-commit-hash: c626198575
2022-08-26 20:44:29 -07:00
Adeeb Shihadeh
4d6a4aa093 more reliable check
old-commit-hash: e9d27750af
2022-08-25 17:30:00 -07:00
Adeeb Shihadeh
4665bd6209 build test files by default (#25515)
* build test files by default

* only on master based
old-commit-hash: c2fee2d45e
2022-08-25 16:22:52 -07:00
Adeeb Shihadeh
a4effaa34a body: add fw repo as submodule (#25420)
* body: add fw repo as submodule

* bump body

* file whitelist

* revert that for now
old-commit-hash: 7e6f4e74bf
2022-08-12 16:46:33 -07:00
Willem Melching
2f4d4cd8c5 navd: add back VisionIPC map renderer (#25212)
* builds standalone

* process live msg

* render into nv12a

* VISION_STREAM_RGB_MAP -> VISION_STREAM_MAP

* cleanup sconscript

* main include cleanup
old-commit-hash: 86c1e8164a
2022-07-19 16:57:13 +02:00
Willem Melching
37fdc99e36 Properly pass KF dependencies to rednose (#24985)
* Fix rednose dependencies

* bump rednose

* bump rednose
old-commit-hash: 42d51a1b95
2022-06-28 17:20:37 +02:00
Dean Lee
2156e71e7a move replay from selfdrive/ui/replay to tools/replay (#24971)
* mv to tools/replay

* change folder

* add .gitignore

* fix build doc

* disable warning

* enable warning after build

* build qt/util.cc qt/api.cc to library

* cleanup
old-commit-hash: fd5b3d7603
2022-06-28 16:12:42 +02:00
Adeeb Shihadeh
d9d83b0225 Move camerad to system/ (#24836)
* mv camerad

* add hardware symlink

* fix unit tests
old-commit-hash: 6123ab3d1c
2022-06-19 14:43:49 -07:00
Gijs Koning
11033eba53 Laikad: Use filter for correcting measurements (#24824)
* Update laikad.

* Update log error
old-commit-hash: 724b322909
2022-06-13 02:45:35 -07:00
Willem Melching
2eca17d464 Revert "SConstruct: set AGNOS from /AGNOS" until Jenkins devices are updated
This reverts commit 07006323701842e9324ab0467795b661de6b0491.

old-commit-hash: d71295e045
2022-06-13 09:50:40 +02:00
Willem Melching
12256c0165 SConstruct: set AGNOS from /AGNOS
old-commit-hash: 84c741ecf6
2022-06-13 09:37:12 +02:00
Adeeb Shihadeh
b249f40f0c move clocksd to system/ (#24761)
old-commit-hash: ca682b389d
2022-06-06 13:27:45 -07:00
Adeeb Shihadeh
3dd10e51e1 Create system/ for generic services (#24717)
* Create system/ for generic services

* logcatd joins the party

* fix those up
old-commit-hash: afd16b2ade
2022-06-02 17:02:25 -07:00
Willem Melching
753045c73d less TICI when not needed (#24698)
* less TICI when not needed

* fix process replay

* move reading voltages into hw abstraction layer

* Update selfdrive/hardware/tici/hardware.h

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

* Update selfdrive/hardware/hw.h

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

* Update selfdrive/hardware/base.h

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

* rename init function

* Update selfdrive/athena/athenad.py

Co-authored-by: Robbe Derks <robbe.derks@gmail.com>

* Update selfdrive/boardd/boardd.cc

* Apply suggestions from code review

* Update selfdrive/thermald/thermald.py

* update ref

* fix alert width if all cameras are bad

* add ecam to test_loggerd

* bump cereal

* bump cereal

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
old-commit-hash: f49a9c9fd2
2022-06-02 15:20:51 +02:00
Willem Melching
f7e2813438 Small fixes for macOS build (#24620)
* Small fixes for macOS build

* remove gpu_libs
old-commit-hash: 1cc652602f
2022-05-23 13:46:48 +02:00
Adeeb Shihadeh
f4675fc260 Merge common/ and selfdrive/common (#24556)
* Merge common/ and selfdrive/common

* fix that

* fix version

* fix unit tests
old-commit-hash: cb8885cffb
2022-05-18 14:11:57 -07:00
George Hotz
7119a98414 loggerd: switch to v4l encoder try 2 (#24380)
* start v4l encoder

* v4l encoder starts

* start and stop

* fill in proper controls

* it dequeued a buffer

* getting bytes

* it made a video

* it does make files

* getting close

* ahh, so that's how dequeue works

* qcam works (no remuxing)

* remuxing works

* we just need to make shutdown and rollover graceful

* graceful destruction

* switch to polling

* should work now

* fix pc build

* refactors, stop properly

* touchups, remove a copy

* add v4l encoder to release

* inlcude file

* move writing to it's own thread

* fix minor memory leak

* block instead of dropping frames

* add counter, fix tests maybe

* better debugging and test print

* print file path in assert

* format string in test

* no more oversized qlogs

* match qcam

* touchups, remove omx encoder

* remove omx include files

* checked ioctl, better debugging, open by name

* unused import

* move linux includes to third_party/linux/include

* simple encoderd

* full packet

* encoderd should be complete

* lagging print

* updates

* name dq thread

* subset idx

* video file writing works

* debug

* potential bugfix

* rotation works

* iframe

* keep writing support

* ci should pass

* loggerd, not encoderd

* remote encoder code

* support remote encoder

* cereal to master, add encoderd

* header no longer required

* put that back there

* realtime

* lower decoder latency

* don't use queue for VisionIpcBufExtra, disable realtime again

* assert all written

* hmm simpler

* only push to to_write if we are writing

* assert timestamp is right

* use at and remove assert

* revert to queue

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 0baa4c3e2a
2022-04-30 09:22:52 -07:00
Adeeb Shihadeh
7e1f873cf7 third_party cleanup (#24336)
* third_party cleanup

* remove zlib

* cleanup release files
old-commit-hash: 2474546f48
2022-04-26 19:03:54 -07:00
Adeeb Shihadeh
5a9644261f remove comma two support (#24248)
* remove comma two support

* cleanup release files

* little more

* more libs

* no more gralloc

* add snpe back
old-commit-hash: 5c48e7bc86
2022-04-18 17:55:23 -07:00
George Hotz
7f819d7c39 bump submodules, fix swaglog (#23943)
old-commit-hash: 107156cd58
2022-03-10 18:30:25 -08:00
George Hotz
82ac4a2bcd build: remove /system/comma (#23937)
old-commit-hash: 0ac4e8227d
2022-03-09 10:05:21 -08:00
Willem Melching
b9a0e6ff9b scons: use correct brew prefix (#23833)
old-commit-hash: cc1aab2a73
2022-02-23 13:52:38 +01:00
Willem Melching
772f394423 Revert "collect C++ code coverage (#23619)"
This reverts commit a97b2e613b275f407576ddb3d7a3bd52b05f612a.

old-commit-hash: a62e914090
2022-01-26 10:59:21 +01:00
Willem Melching
6c89b62dd9 collect C++ code coverage (#23619)
* collect cpp coverage

* install llvm

* compile with coverage

* cd to root

* remove broken gcda files

* remove newline

* delete more stuff

* script to collect coverage

* Update tools/collect_coverage.sh

* actually delete
old-commit-hash: 698ab6ac97
2022-01-25 23:15:24 +01:00
Andrew
192978753d mac: fix setup and re-enable CI (#23365)
* rework mac_setup.sh
* ignore casadi and onnx runtime in pipfile for Darwin
* remove rust stuff
* build and install casadi

* add wget

* explicit python3. dont do onnx just yet

* resource compiler

* replace acados Darwin lib w universal2 libs

* relock Pipfile using linux machine

* Update update_requirements.sh

brackets

* Update update_requirements.sh

oops

* ci: re-enable mac build

* attempt to fix ci build:
* pip stuff?
* move rcc bin path to env script

* oops

* only mac

* k im lazy. does ci like this??

* huh??

* * use curl
* avoid casadi rebuilds
* add comment to remove protobuf
* host detect typo

* python version

* how did the builds not use swig?
* better reinstall check

* sometimes mac clang complain abt error limit

* ci: build OP in venv

* ci: bump to Big Sur
* retry? idk why it failed @ acados link

* * use macos-latest
* move rcc path to scons
* add extra paths for odd homebrew installs
* acados source change

* update macOS README

* uh, maybe?

* k nvm

* ci: ok this is strange. might be scons bug?

* fix conflicts: bump

* just add cppcheck for pre-commit stuff

* agane

* cleanup

* try that

* fix path

* no pyenv update on mac

* source

* fix rpath prefix?

* no examples

* fix exit

* let's get this cached

* add virtualenvs to cache

* why did we cache that

* let's see what's big

* more

* always ruyn

* cache scons cache

* better cache key

* fix for partial hit

* why so long

Co-authored-by: Andrew Tec <andrest@trabus.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
Co-authored-by: Bruce Wayne <batman@openpilot-mac-mini.local>
old-commit-hash: 6664421710
2022-01-07 15:15:18 -08:00
George Hotz
6bac4f1c4a build for mac (#23048)
old-commit-hash: 16dd7ce1fe
2021-12-18 22:00:09 -08:00
Adeeb Shihadeh
3dc321435e Remove NanoVG (#23147)
old-commit-hash: efa448d829
2021-12-06 14:18:00 -08:00
Adeeb Shihadeh
94d30c6c5f camerad: remove camera frame stream (#23045)
* camerad: remove camera frame stream

* fix release files
old-commit-hash: 8160cf3c1b
2021-11-27 21:58:21 -08:00
Willem Melching
21651f23b9 don't build internal kalman objects on device (#23011)
old-commit-hash: 9417051062
2021-11-23 16:25:51 +01:00
Adeeb Shihadeh
09ad54970c Revert "Revert "Fix build failures in Ubuntu 21.10 (#22952)""
This reverts commit caf0013a20b5330b4b964867adf40294bc407e43.

old-commit-hash: f2a81309e1
2021-11-17 13:46:38 -08:00
Adeeb Shihadeh
64a51de881 Revert "Fix build failures in Ubuntu 21.10 (#22952)"
This reverts commit e50fe1bb134e652aacd734c40b590b49d443512a.

old-commit-hash: 5e2570dc75
2021-11-17 11:40:17 -08:00
Jason Shuler
6e92ec1cf2 Fix build failures in Ubuntu 21.10 (#22952)
* Fix compile on Ubuntu 21.10

* Add missing c++17 optional refs in ui
old-commit-hash: 61f9b3e653
2021-11-17 18:59:36 +01:00
Joost Wooning
9042f18afd cython wrapper for acados (#22784)
* cython wrapper for acados

* fix building

* sconscript cleanup

* no cython numpy

* cleanup

* upgrade build script

* try without slices

* new acados commit

* c3 update acados libs

* c2 libs

* make faster

* undo profiling

* fix build

* somewhat faster

* tryout cost_set_slice

* Revert "tryout cost_set_slice"

This reverts commit d358d93a133270e4edab9e7c07ffb6f577c52bd6.

* cleanup

* undo t_renderer change

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 89d0a52d16
2021-11-12 17:09:08 +01:00
Mayfield
43e1903073 enable wshadow (#22756)
* enable wshadow (#22714)

* fix replay

* more build fixes

Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: 5246f0231e
2021-11-02 17:08:53 +01:00
Dean Lee
af7c9ccf6f replay: build on devices (#22632)
* there is no QThread::create on device

* add files to files_common

* modify SConscript

* no memory_resouce on device

* #define HAS_MEMORY_RESOURCE

* fix hangs on shutdown

* build on device with the --extra flag

* delete later

* setup -> extras

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: d70e49dca5
2021-10-29 12:21:57 +02:00
Willem Melching
a15e1b2de0 fix test_models.py (#22694)
old-commit-hash: 8cd195d030
2021-10-26 14:46:31 +02:00
Adeeb Shihadeh
782d7023d2 phonelibs -> third_party (#22477)
* git mv to third_party

* find and replace

* fix release tests

* update pre-commit

* update tici bins

* update eon bins

Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 5b641379ae
2021-10-07 16:32:44 -07:00
HaraldSchafer
2b470f4e38 acados long merged (#22224)
* rebased

* cleaner, seems to drive better?

* more stable

* wrong import

* new way of thinking

* reports look nice

* start move back

* works at leas

* good timestamps

* step by step

* somewhat work

* tests pass

* ALL CARS STOPPED

* should work

* fake a cruise obstacle

* cleaner costs

* pretty good except cruise braking

* works pretty well now!

* cleanup

* add source

* add source

* that is needed for unit tests

* nan recovery

* little cleaner

* stop wasting arrays

* unreasonable without unfair init

* this isnt needed without the exponential

* that works too

* unused

* uses less

* new ref

* long enough

* e2e long api

* DONT PUT IN A VIEW INTO ACADOS

* new ref for outside weights

* remove debug prints
old-commit-hash: fe983a7b8c
2021-09-27 19:48:28 -07:00
Dean Lee
b7f3d92c9b camerad: added replay camera (#21241)
* start refactor

* remove camera_frame_stream from files_common

* rename camera_pc to camera_replay

* continue

* loop one segment

* rename cam_frame_id to stream_frame_id

* apply review

* continue

* more

* publish camera state

* cleanup

* cleanup

* better comment

* delete s->pm in cameras_close()

* add function getFrameCount

* refactor loop

* fix typo

* restore freame stream

* disable roadcam

* dd

* move file

* merge master

* fix test case

* add todo

* white space

* remove from release files

* add files back to relase

* move framereader back to ui/replay

* merge master

test_replay
old-commit-hash: 9b302488f9
2021-09-19 14:43:54 -07:00