Commit Graph

437 Commits

Author SHA1 Message Date
Adeeb Shihadeh 90ce0e954f
builds on m1 (#137) 2021-05-02 10:34:00 -07:00
Comma Device 2b28609003 add controls initializing event 2021-04-30 13:37:07 -07:00
Adeeb Shihadeh 9532238f18 add bsm to car params 2021-04-25 00:03:28 -07:00
iejMac 8e5eb3ba4d
SubMaster: split socket recv and update (#133)
* add update_msgs

* works, need to find a way to pair socket to message without map

* works with strings

* save changes

* fix

* style

* remove fixMaybe

* style

* void update

* removing dynamic_struct

* comments

* dont need include anymore

* map -> vector<pair>

* move to update_msgs

* uint64

* change

* refrence

* whitepsace after if
2021-04-22 21:45:26 -07:00
Adeeb Shihadeh 9c56c531c6 add steerTempUnavailableUserOverride event 2021-04-20 19:50:20 -07:00
Shane Smiskol c92be0564c
Automatically generate service ports (#136)
* make sure specified port isn't reserved

* only sshd

* Add check to tests as well and test

* commonly define these safety check numbers in services and check in both places

* add function to generate new ports that aren't reserved

* port is guaranteed to not be a reserved port and above 8000 now

asserting the rate on runtime isn't necessary, just for testing

* create service_list dynamically

* redundant

* just add an offset equal to length of services dict

* fix test?

* only one reserved

* ignore the argument type error

* rm line

* Add back tests

* starts at 8001
2021-04-20 17:57:54 +02:00
Willem Melching b39c6fc26d
Fuzzy FW match alert and carParams (#134)
* add fuzzy startup alert

* add field to carParams for fuzzy fingerprint

* put with other events
2021-04-20 11:57:09 +02:00
Joost Wooning 957147cb84
some fixes and small changes for locationd in c++ (#135)
* Added getters

* extra service to ack messages in process replay

* fix allAliveAndValid ignoring ignoreValid services

* check if readers are updated

* default message valid true
2021-04-19 17:28:06 +02:00
Comma Device 7d304cdd29 cleanup in the post-apk era 2021-04-10 14:24:10 -07:00
Willem Melching c803eddb33
add list for average frequency ignore (#132)
* add list for averge frequency ignore

* not simulation

* cleanup
2021-04-08 18:04:11 +02:00
Willem Melching 5980517cc9 dont check avg freq in simulation 2021-04-08 14:07:34 +02:00
Adeeb Shihadeh 4222bc9104
Events cleanup 2021-04-07 12:01:36 -07:00
Willem Melching dffb99383e
Add check for average frequency (#128)
* add check for average frequency

* fix mypy

* more type errors

* make less strict

* only check polled services

* add flag to disable avg check
2021-04-06 10:09:07 +02:00
Adeeb Shihadeh 9b7dd7e56d bump capnp to 0.8.0 2021-04-03 13:46:45 -07:00
Adeeb Shihadeh e1741865f8 deprecate oneplus event 2021-03-25 20:35:12 -07:00
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