Commit Graph

422 Commits

Author SHA1 Message Date
Adeeb Shihadeh 7036cf9e51 add event for an always-on dashcam alert 2021-03-25 20:34:36 -07:00
Adeeb Shihadeh 38ecbfe03b deprecate UiLayoutState 2021-03-24 20:14:26 -07:00
Willem Melching 8203d55702 AlignedBuffer remove operator() to prevent out of scope usage 2021-03-17 14:22:59 +01:00
Willem Melching 1a55d4dbac add safetyParam to PandaState 2021-03-17 10:59:56 +01:00
HaraldSchafer 0956034a30
add unfiltered curvatures (#127) 2021-03-16 11:50:28 -07:00
Dean Lee 97bfe99980
Added new util class AlignedBuffer (#125)
* AlignedBuffer

* rename function aligned to get

* add overloaded function for convenience
2021-03-15 17:27:20 +01:00
qadmus 8f9e68b6f0
Improve comments on CarParams from manual (#124)
* improve comments on CarParams from manual

* Update car.capnp

Co-authored-by: qadmus <42746943+qadmus@users.noreply.github.com>

Co-authored-by: Willem Melching <willem.melching@gmail.com>
2021-03-15 13:42:12 +01:00
Adeeb Shihadeh 2876bcc9d4 bump pycapnp 2021-03-11 20:04:35 -08:00
Greg Hogan 7307e6d2b7 service gpsLocation deprecated 2021-03-11 20:03:46 -08:00
Greg Hogan 143dadcc65 gpsLocationDEPRECATEd -> gpsLocationDEPRECATED 2021-03-11 20:03:20 -08:00
Willem Melching e2bd959e24
Planner outputs curvature (#123)
* deprecated lateralPlan.steeringAngle

* rename LiveMpc curvature

* more deprecated

* add angle control

* deprecate

* Revert "deprecate"

This reverts commit 330f96208b.
2021-03-11 16:38:46 -08:00
Adeeb Shihadeh 0a479189a6 update python to 3.8.5 2021-03-11 14:46:36 -08:00
Adeeb Shihadeh c46caf4170 deprecate gpsLocation 2021-03-01 13:54:56 -08:00
Maksym Sobolyev 1915d60125
Change params value to take Data instead of Text. (#109)
allow something like "PandaFirmware" to be processed correctly.
According to capnp spec, Text could only be an UTF-8 string,
PandaFirmware is evidently a pure binary (as decodec by the web ui):

        ( key = "PandaFirmware",
          value = "\x11\x01[\x16|GSe\xd5\x1a+\x94\xff\\f|" ),

This is causing logreader.py to fail processing rlog:

  root@localhost:/data/openpilot$ python tools/lib/logreader.py /tmp/xxx_2021-01-04--21-40-41--0--rlog
  Traceback (most recent call last):
    File "tools/lib/logreader.py", line 147, in <module>
      print(msg)
    File "capnp/lib/capnp.pyx", line 1091, in capnp.lib.capnp._DynamicStructReader.str
  UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd5 in position 30118: invalid continuation byte

Not only that, the binary blob also gets truncated at '\0'. The real value
is as follows:

        ( key = "PandaFirmware",
          value = (
            bin = "\021\001[\026|GSe\325\032+\224\377\\f|\000\241\321\366j\360\247\354E?:\274\205\301\035\241\241T\370X\224\031\367P\257\350*eY\223rt\246\204=\223\301u\207\277\027xE\tn\365?J\234$\032\375\226\300a\215MB\326\342 }\r\366]5\250\236\006\312\000\025\353>Y\v+U\340C\321\017M\231\0307\220\236\303\005\327\'gJ\302Kv\270V\301F8\246\030\206[\344\2239T\003\275" ) ),
2021-02-26 14:43:45 +01:00
Willem Melching c097236056 add driverCameraState, wideRoadCameraState and androidLog to qlog 2021-02-23 15:38:13 +01:00
Willem Melching a9290aa1d0 msgq: fixup larger queue size for frames 2021-02-22 10:12:04 +01:00
HaraldSchafer a034837924
Best practice (#107)
* Update README.md

* Update README.md

* Split out sensors

* no duplicate ports

* not used

* misc cleanup

* fix tests

* only catch import error

* celcius is not SI

* better temp

* update servicespy

* add explicit

* -data

* save sensors for later

* more thermal

* little more

* thermal -> deviceState

* steering

* forgot deg

* explicit ids

Co-authored-by: Willem Melching <willem.melching@gmail.com>
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-02-16 21:09:50 -08:00
Adeeb Shihadeh 39d80be841
tici: update frequencies (#119)
* update freqs for tici and cleanup

* eon dm is 10hz
2021-02-11 17:46:18 -08:00
Adeeb Shihadeh a36758d8ba
define services in python (#118)
* define services in python

* rm

* optional
2021-02-11 17:27:15 -08:00
Adeeb Shihadeh e1b16fd945 this is a percent 2021-02-11 16:07:12 -08:00
ZwX1616 a903bc4acd track all encodeIdx in qlog 2021-02-09 19:22:32 -08:00
Willem Melching 122c371910 fix macos build 2021-02-09 17:39:33 +01:00
Willem Melching dc406553eb
Cython wrapper for VisionIpc server (#117)
* vipc cython wrapper

* send some data

* start listener

* fix extra datatype
2021-02-09 17:15:18 +01:00
Adeeb Shihadeh b19a3ed38d
cleanup + comments (#116)
* start cleanup

* controlsState is horrible

* more controlsState cleanup

* carstate

* cleanup plan packets

* rename events

* update mono times

* update service list

* don't need multiple radar alerts

* small car.capnp cleanup

* start thermal cleanup

* fan speed

* model packets

* fix build

* hw -> panda

* capitalize

* deprecate rest of warp matrices

* generate headers
2021-02-03 19:56:19 -08:00
Adeeb Shihadeh af57ebd232
split out deprecated structs into separate schema file (#113)
* legacy capnp

* little more

* move model data

* much orb

* move rest of it

* cleanup

* explicit id

* rm tmp file
2021-02-02 12:20:18 -08:00
Robbe Derks 266fc01950 Add MON_HW2 ublox message 2021-01-29 16:49:01 +01:00
Willem Melching 2748048829 Revert "lower alive threshold to 5x"
This reverts commit 8bf83edb7a.
2021-01-29 13:02:11 +01:00
Willem Melching 46f56a2977
add managerState (#111)
* add managerState

* add alert
2021-01-25 20:01:39 -08:00
ZwX1616 eeb0334dfd fix indexs 2021-01-25 14:47:40 -08:00
ZwX1616 3fbb6653ab add e2e dm states 2021-01-25 14:31:17 -08:00
ZwX1616 ab79999e5d add dm is_active 2021-01-19 14:34:48 -08:00
Robbe Derks 2547d3348e don't crash on invalid buffer type 2021-01-19 15:28:50 +01:00
Willem Melching 610fa77bc4 visionipc add timeout param 2021-01-19 14:45:59 +01:00
Harald Schafer bbf05d546a update pathPlan message 2021-01-18 20:47:52 -08:00
Adeeb Shihadeh a85bf58bb5 add gps malfunction event 2021-01-14 13:04:33 -08:00
Greg Hogan 344c5c6fdb
add maxSteerAngle to car.capnp (#110) 2021-01-14 18:45:23 +01:00
Adeeb Shihadeh 61a3b45ed2 cython dependency scanner 2021-01-11 14:15:29 -08:00
Willem Melching 38f12b99e0 only free ION buffer in server 2021-01-11 16:07:31 +01:00
Willem Melching 95e32803cd
Visionipc v2.0 (#101)
* add visionbuf

make static

ignore that

* Needs decleration

* add test binary

* c++

* create some structure

* some impl

* socket stuff

* Accept socket connection

* Alloc some buffers

* Create pub sockets and send buffer id

* make listener private

* Implement receive

* use error check macros in cl_helpers

* constructors to pass in opencl context

* add some convenience values in struct

* refactor creating buffers

* rgb is not so simple

* add fake stride and expose buffers

* add comment

* add extra data struct

* support conflate

* init opencl on all buffers

* make ion compile

* fix qcom2

* correctly setup yuv pointers when importing buffer

* also included from c

* Remove send print statements

* send metadata

* reveive metadata

* also used in c code

* dont start listener automatically

* Was started in 2 places

* set 100ms timeout on socket

* verify server id to detect reconnects

* handle reconnect

* buffer cleanup

* let user handle opencl creation

* add default values

* Add support for aligned rgb buffers

* add align macro

* dont use namespace

* use poller

* apple ifdef in ipc.cc

* VisionBuf is C++ class

* Install opencl headers

* cppcheck c++

* remove c header guard

* fix mac build

* simplify constructors

* Update visionipc/visionipc.h

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

* Update visionipc/visionbuf_ion.cc

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

* add brackets

* s/VIPCBufExtra/VisionIpcBufExtra/g

* Add unittesting harness

* remove vipc demo

* very basic tests

* add conflate test

* Install opencl

* suppress msgq warnings

* Make it work using zmq

* cl in qcom replay

* run unittests in zmq mode as well

* non blocking connect

* always larger frame queues

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2021-01-08 14:54:41 +01:00
Igor 2220a4f100
Adding breakpoints to INDI lateral tuning (#108)
* Adding breakpoints to INDI lateral tuning

* Returned old variables as DEPRECATED
2021-01-07 15:55:56 +01:00
Adeeb Shihadeh 484edb6cab remove azure build status from msgq doc 2021-01-06 15:21:16 -08:00
Adeeb Shihadeh f05af8c149 deprecate internet connectivity needed event 2020-12-21 15:21:15 -08:00
Adeeb Shihadeh c025363de3 Revert "deprecate the deprecation event"
This reverts commit 3e5444b9eb.
2020-12-19 16:39:32 -08:00
Adeeb Shihadeh 3e5444b9eb deprecate the deprecation event 2020-12-19 16:30:02 -08:00
Adeeb Shihadeh 8bf83edb7a lower alive threshold to 5x 2020-12-18 13:46:09 -08:00
Adeeb Shihadeh 2a2f3b98e4 deprecate commIssueWarning
This reverts commit c81953cbf4.
2020-12-17 12:29:45 -08:00
Adeeb Shihadeh c81953cbf4 remove commIssueWarning 2020-12-17 12:17:44 -08:00
Igor a9058ef287
Parametrize startingBrakeRate (#106) 2020-12-16 12:19:28 +01:00
Adeeb Shihadeh af256ed14c add gpu execution time 2020-12-11 19:51:22 -08:00
Adeeb Shihadeh 5d51df5a9a eon deprecation event 2020-12-11 13:46:44 -08:00