Commit Graph

30 Commits

Author SHA1 Message Date
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
ZwX1616 b7643a0c40 Reduce C2 dcamera noise at night (#1798)
old-commit-hash: 1036c68251706f49386e8b9a186e3d6871250047
2020-06-30 19:58:40 -07:00
ZwX1616 b954e6e93d camerad: don't crash zmq if get interrupt from msgq (#1790)
* not crash zmq if get interrupt from msgq

* also filter eagain
old-commit-hash: 55aee68ca0f3c5ba9fa5b100d21149cad79b732b
2020-06-26 18:11:36 -07:00
ZwX1616 9bca4bfb20 recover EON/C2 AF (#1665)
old-commit-hash: 3aa99a01d7a29c69f1b767b3fca30d18a6047425
2020-06-23 14:33:32 -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 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
Adeeb d035394ce7 Add pre-commit hooks (#1629)
old-commit-hash: ab83e48ec4f7c7ddaa742d9797b0d38646fdb268
2020-06-03 12:54:49 -07:00
Willem Melching 7f0b3180a4 Use C++ version of SubMaster and PubMaster (#1548)
* add PubMaster & SubMaster

remove 'delete msg'

remove headers

* use constructor to initial all submster

* modify drain sockets

* fix typo in ssconscript.remove lines

no checkValid in loggerd

last modify

handle_message:event->&event

fix type

remove heads

event to auto

* new interface

* api changed

* Revert "use constructor to initial all submster"

This reverts commit 73be7ea46250a325ce41d3a0445e34395a2ae692.

* change to new api

* revert loggerd

* dd

* use new PubSub api

* update to new interface

don't modify loggerd

reset panda

reset opendbc

remove empty lines

* switch to new pubMaster

* update to the new inteface

change

remove error code

. to ->

merge paramsd.cc

update panda

fix typo

simplify

fix typo

* Fix build

* always conflate

Co-authored-by: deanlee <deanlee3@gmail.com>
old-commit-hash: ab5af232b243ba8137695f68c125f922fb412d44
2020-05-21 16:04:33 -07:00
Dean Lee 0b0674ef20 camerad: move c-capnp to c++ (#1472)
* convert c-capnp to c++

change paramater type

* remove c-capnp header from commonmodel.c

* unsigned short -> uint16_t

* MSM_CAMERA_I2C_ADDR_TYPE_MAX->4
old-commit-hash: b6d6f520327226004c328a4b7cbbb3b855b2909d
2020-05-07 20:14:30 -07:00
George Hotz 16cbb5e255 Revert "Bypass alignment related copy whenever possible (#1443)"
This reverts commit 235d4f8957ee4566d6217783638fa58a586bb35a.

old-commit-hash: d5ca841b0f18d2e707eb1f73afac842ede9be7e8
2020-05-04 09:54:05 -07:00
ZwX1616 aada0e9a66 bad AF state logging (#1365)
old-commit-hash: 968e2585cc7e2a580fa351a75ceb02c1fe02c409
2020-05-02 21:40:43 -07:00
Dean Lee f2932aadfd Bypass alignment related copy whenever possible (#1443)
remove blank lines

add file messagehelp.h

remove blank line

simplify

after review
old-commit-hash: b2250166281406853de9901271d69a9e64b3b74e
2020-05-01 19:21:00 -07:00
Dean Lee 83fde61d3b fixes the error with OpenCL depreciation warnings (#1394)
old-commit-hash: 25ab2521abb08e58b80f45f16ff51f949e28f05c
2020-04-19 14:04:33 -07:00
George Hotz 860930b198 tici: fix loggerd (#1302)
* loggerd builds

* codec

* add frame_id cams

* working

* no qcam on tici

* pthread always

Co-authored-by: Tici <robbe@comma.ai>
old-commit-hash: cfcf3f9368eacacc7844b53b37842bd7419d42f9
2020-03-31 18:25:05 -07:00
George Hotz f5078e87bc tici: add (somewhat) broken camerad support (#1300)
* capnparm

* building in progress

* scons build works

* that script fixes opencl

* start new camera code

* includes and more camera scripts

* control c works now

* no device control yet

* phy too

* just one camera for now

* fix capnparm

* hmm, the inits are needed

* more cameras

* link stop start

* doesn't work yet

* fix ion on qcom2

* start poll ish

* 4 pictures and done

* no jpeg

* it works to picture

* destroy sync obj

* both work for now

* defined QCOM2

* fix fd leak

* run modeld

* 10 bit mode

* real frame stride

* needs digital gain

* dnew

* no color correcting on new

* that snpe doesn't work

* qcom2 gate

* cleanups

* oops, fix aarch64 detector

* update cereal

* modeld works with SNPE

* fix driver monitoring model

Co-authored-by: Tici <robbe@comma.ai>
old-commit-hash: 8db0993663d7f16cddde00a2dfac8347a152b34e
2020-03-31 16:34:55 -07:00
ZwX1616 f5bc4d79e7 cleanups
old-commit-hash: 4bcfe54efd5474ac857d5720f83af7fc15a06f0c
2020-03-27 11:44:06 -07:00
ZwX1616 a004735b19 add webcam to cameras (#1201)
old-commit-hash: a95e61edf4176c034c0537293a3cf0753c45daa1
2020-03-26 19:19:47 -07:00
Willem Melching 897d9ff1e2 camerad zmq_poll, also recover from EAGAIN
old-commit-hash: e69e0486ff6125e9d209c4bdda02b5201236548f
2020-03-17 13:40:07 -07:00
Willem Melching 9fd08dd1e2 No logging on EINTR, and log all the errnos
old-commit-hash: a4c94128c2ee9824dd4763e7d0ba4d3db3a99fe4
2020-03-16 14:58:21 -07:00
Willem Melching f260ab4d94 Add logging to poll EINTR handling, add another catch in camerad/main.cc
old-commit-hash: 439b4625b68fb7f933c646229da8667e9cf4fea8
2020-03-16 14:55:12 -07:00
Willem Melching 4b1c53993a Camerad add errno logging, and continue on EINTR
old-commit-hash: 7669a783d62cde5514a5577d40018690d4c469c6
2020-03-16 14:40:24 -07:00
ZwX1616 12495a4ee0 revert AF for master (#1159)
old-commit-hash: 9563f7730252451fdcba9bc3d9fe36dab9c86a26
2020-02-24 13:36:27 -08:00
ZwX1616 a4a938c100 AF: improve general responsiveness (#1137)
* sync control with readout; always assume worst

* faster recover

old-commit-hash: 435a36cdffee7017701318da1db503c84e4672db
2020-02-20 13:41:28 -08:00
ZwX1616 274edbb8a4 no random factors
old-commit-hash: bba7fbb490e0cfcb7b513502f61de50ada45e68f
2020-02-17 13:52:47 -08:00
ZwX1616 16c216ee69 AF only trust high confidence & high coverage
old-commit-hash: 57b28643703b44edc5b60a935e1e80f7d3bbf4bd
2020-02-17 12:41:20 -08:00
ZwX1616 c648937cba fix not focusing when all readings broken (#1072)
old-commit-hash: 08042ab649d3e0239ca878f4c399f0bebde59db7
2020-02-10 15:28:35 -08:00
ZwX1616 0976cd1825 Focusss (#1059)
old-commit-hash: 2b97ff70b5dd2cd0bd4c682643bab62ade6f50d5
2020-02-07 13:30:45 -08:00
George Hotz 78d3dfe8ae selfdrive/camerad
old-commit-hash: 84560ccd55
2020-01-17 10:52:42 -08:00
George Hotz 81dd5a50cf root commit
old-commit-hash: 6c33a5c1f3
2020-01-17 10:02:52 -08:00
Vehicle Researcher 99b637c7ce openpilot v0.7 release
old-commit-hash: c025b96e8a
2019-12-13 13:03:08 -08:00