Commit Graph

861 Commits

Author SHA1 Message Date
Comma Device
5de80c74ff photo stuff 2023-07-28 18:03:33 -07:00
Mitchell Goff
a9082c8268 Added python VisionBuf class (#502) 2023-07-24 23:59:08 -07:00
Mitchell Goff
fdb308086f Added buf_cl attribute to cython VisionBuf definition (#501) 2023-07-20 15:40:12 -07:00
Maxime Desroches
aed9fd278a Update pycapnp (#499)
* context

* cython

* -Wno-parentheses-equality

* -Wno-everything

* remove werror
2023-07-18 13:09:49 -07:00
Kacper Rączy
6f7102581f visionipc: support OPENPILOT_PREFIX (#497)
* OPENPILOT_PREFIX support in visionipc

* Use prefix as filename prefix

* Remove unnecessary import
2023-07-17 19:17:09 -07:00
Adeeb Shihadeh
cf9c5cbb91 PubMaster: add wait_for_readers_to_update helper 2023-07-17 09:49:39 -07:00
Adeeb Shihadeh
5a822f43ca visionipc: expose extra's valid field in cython 2023-07-16 14:58:51 -07:00
Kacper Rączy
a2f1f0cb8d SubMaster: replace SIMULATION constant with property (#495)
* Add simulation property to python submaster

* decode bstrings before formatting error messages
2023-07-11 19:30:00 -07:00
Mitchell Goff
c94c7c61cc Added LLK timestamp to navModel and modelV2 (#494) 2023-07-08 17:09:18 -07:00
Kacper Rączy
457753aa6a tests: fix recv_one_or_none test (#447)
* Fixed recv_one_or_none test

* Remove sleep

* Add skipIf to test_recv_one_or_none on ZMQ

* Add zmq_expected_failure decorator
2023-07-05 11:38:43 -07:00
Adeeb Shihadeh
089f96117a bump to python 3.11.4 (#484)
* bump to python 3.11.4

* unpin

* use context

* pycapnp 1.1.0

* cmake

---------

Co-authored-by: Maxime Desroches <desroches.maxime@gmail.com>
2023-06-30 17:36:28 -07:00
Adeeb Shihadeh
1b0f22f30b visionipc: fix getAvailableStreams for server with no streams (#492)
* visionipc: fix getAvailableStreams for server with no streams

* still check that

* cleanup
2023-06-29 17:32:46 -07:00
Adeeb Shihadeh
e557427630 pre-commit: autoupdate hooks (#490)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-06-29 11:10:51 -07:00
Igor Biletskyy
f86de2b1a3 can_health_pkt v5 : add interrupts call counter (#466)
* health_v5

* camelCase

* rename

* rename

* add can core reset count
2023-06-28 14:41:33 -07:00
Bruce Wayne
99dd602fee QCOM poly: timestamp correctly 2023-06-28 14:17:54 -07:00
Harald Schäfer
31edcc19d0 Add time to ephemeris logs (#491)
* Add time to ephemeris logs

* rm whitespace
2023-06-27 15:52:03 -07:00
Adeeb Shihadeh
f1463a08ee deprecate frameData.frameLength 2023-06-25 12:48:47 -07:00
Shane Smiskol
ff5787e0b8 CarParams.Ecu: add body (#489)
* add body ecu/bcm

* cmt
2023-06-24 03:32:57 -07:00
ZwX1616
3e93013b70 ModelV2.ConfidenceClass (#488)
* confidence enum

* +1
2023-06-23 15:03:33 -07:00
Adeeb Shihadeh
11d560b9b9 sm: fix avg freq check 2023-06-22 23:29:20 -07:00
Adeeb Shihadeh
1f9d582a8d SubMaster: fix recv_dts initial state (#487)
* SubMaster: fix recv_dts initial state

* any len
2023-06-22 22:45:05 -07:00
Kacper Rączy
0a1d3c4c9a liveParameters: filterState debug field (#483)
Add filter state measurement to liveParameters
2023-06-22 19:56:37 -07:00
Mitchell Goff
cacfda17fd Added navEnabled field to ModelDataV2 (#486) 2023-06-22 19:01:05 -07:00
Shane Smiskol
1de4176d3e CarParams.Ecu: rename hcp to hybrid (#485)
* hcu can be generic

* hybrid is better. hcu can also be hydraulic control unit

* hybrid is better. hcu can also be hydraulic control unit

* alphabetical

* commacomma,,
2023-06-22 01:23:11 -07:00
Mitchell Goff
67af14c30d Remove memcpy in cython VisionIpcClient.recv (#470) 2023-06-21 13:05:50 -07:00
Mitchell Goff
a1f562bccb Refactor buffer properties in python VisionIpcClient (#480)
* Refactor buffer properties in python VisionIpcClient

* mapsd -> navd
2023-06-21 12:44:21 -07:00
Shane Smiskol
b06b8e3f66 Ecu: add telematics (#482)
add telematics
2023-06-21 00:00:40 -07:00
Shane Smiskol
0c34b6b3c8 Ecu: add electronic parking brake (#481)
add epb
2023-06-20 23:43:26 -07:00
mitchellgoffpc
1a56b09a0d Create both client and server in TestVisionIpc setup 2023-06-20 17:04:17 -07:00
Mitchell Goff
96626cae1f Added VisionIpcBufExtra properties to python VisionIpcClient (#479)
* Added VisionIpcBufExtra properties to python VisionIpcClient

* Check frame_id in test_send_single_buffer
2023-06-20 16:55:51 -07:00
Mitchell Goff
662206899d Added minimal set of tests for python VisionIpc (#478)
* Started work on tests for python visionipc

* Added a bunch more tests

* Added conflate/no_conflate tests

* Added basic python visionipc tests

* Added create_vipc_server helper function

* Added create_vipc_server as a method

* Added teardown

* Add zmq_sleep

* Try removing teardown
2023-06-20 16:31:28 -07:00
Adeeb Shihadeh
1ea038f5de pre-commit: autoupdate hooks (#477)
Update pre-commit hook versions

Co-authored-by: adeebshihadeh <adeebshihadeh@users.noreply.github.com>
2023-06-20 16:29:51 -07:00
Kacper Rączy
f495c6bb90 macOS: stub implementation of event API (#476)
* Add runtime checks for event API on macOS

* Fix stub ppoll impl

* Fix lint issues

* Remove assert from event_state_shm_mmap

* Add variable args in ppoll macro

* Skip fake socket tests on macOS

* Add missing newline

* PPOLL and ppoll_impl definitions

* Update macro signature

* Fix issues on linux

* Stub empty implementation of event for macos

* Go back to shorter fds/timeout initialization

* Complete stub implementation of event api

* Fix unused variable warning

* Remove extra space
2023-06-19 17:09:29 -07:00
Kacper Rączy
f7498faf62 lateralPlan: solverState debug field (#474)
Replace xs, ys debug fields with solver state struct
2023-06-16 19:26:26 -07:00
Kacper Rączy
be2483b7f0 lateralPlan: add xs, ys, solverCost fields (#472)
Add xs, ys and solverCost to lateralPlan
2023-06-16 15:58:29 -07:00
Adeeb Shihadeh
3a8e4c9d04 deviceState: add max temp field 2023-06-15 16:56:51 -07:00
Adeeb Shihadeh
ed8d078b9b fix some indentation in log.capnp 2023-06-15 16:53:58 -07:00
Harald Schäfer
f319a83ab7 Allow for livestreaming video (#468)
* Add additinal encode stream

* Add livestream encoding streams

* duplicate

* rm whitespace

* Guess that's still referenced

* typo
2023-06-12 18:49:40 -07:00
Adeeb Shihadeh
44c93ef17c add procLog to qlogs (#465)
* add procLog to qlogs

* Update services.py
2023-06-09 14:42:22 -07:00
Kacper Rączy
c8884295b9 visionipc: get_endpoint_name python binding (#463)
Expose get_endpoint_name in py bindings
2023-06-07 10:36:00 -07:00
Harald Schäfer
c331e76b96 Longitudinal Personality (#462)
* adjustable follow

* better name

* better name

* better name
2023-06-05 17:51:26 -07:00
Dean Lee
a3e66d284e VisionIpcServer: unlink path after closing socket (#457) 2023-06-05 15:21:00 -07:00
YassineYousfi
8af4582508 Hc driving (#461)
add height and road transform to log
2023-06-02 20:21:37 -07:00
Kacper Rączy
c27be716ec connect: add error messages when Socket connect fails (#456)
* Throw runtime_error in Socket::create

* Add messages to MessagingError

* Fix cython bindings

* Write a message to stderr instead of throwing runtime_error
2023-06-02 15:14:08 -07:00
Shane Smiskol
7e1d67d415 Deprecate brakeUnavailable event (#455)
* deprecated

* Update car.capnp
2023-05-31 15:08:17 -07:00
Kacper Rączy
172b9b7dc0 liveLocationKalman: add filterState (#453)
Add filterState to liveLocationKalman
2023-05-31 14:25:09 -07:00
Shane Smiskol
3f950792d8 carState: non-critical car faulted field (#454)
* add fields

* fix dup ordinals

* carFaulted

* the car isn't critically faulted

* Apply suggestions from code review

* no event

* add comment

* cmt

* Revert "cmt"

This reverts commit 8dd017ecc3.

* ???
2023-05-30 16:24:47 -07:00
Harald Schäfer
9b6b53396f Custom events reserved for forks (#449)
* Custom events reserved for forks

* Fixes

* Custom updates

* Update README.md

* little more

* add identifiers

* Language

* little more

* rm that

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-05-23 20:44:17 +02:00
Kacper Rączy
4e063ca166 FakeSubSocket and FakePubSocket for IPC synchronization (#439)
* Implementation of FakeSubSocket and FakePubSocket using eventfd with support for one-in/one-out synchronization

* Expose FakeEvent to Python

* Add demo showcasing synchronization between processes

* Fix linter errors

* Expose more FakeEvent APIs in Python bindings

* Add FakePoller implementation

* Remove suffix from poll env vars

* Set poller timeout to zero when events are enabled

* Replace poll with ppoll. Add invalidation methods

* Fix lint issues

* Fix comment indent

* Remove fake_demo

* Remove FakePubSocket. Simpler FakePoller implementation. Ability to wait for multiple events

* Rename FakeEvent to Event and move it to event.cc

* Rename event purpose constants in py

* Add support for timeout in wait methods

* Add tests for events and fake sockets

* Fix lint errors

* Add zmq sleeps

* Temporarly disable TestFakeSockets on ZMQ

* Add exception type specifiers to test_fake

* Event Manager implementation

* Fix fake sockets tests

* Update EventManager API

* Add test for enable/disable

* Add tests for cereal prefix

* Remove EventPurpose from python bindings

* Fix lint issues

* event_state_shm_mmap implementation shared by EventManager and FakeSubSocket

* Rename EventManager to SocketEventHandle

* More renames
2023-05-23 19:38:52 +02:00
ntegan1
0b5e05013c Add engineRPM to CarState struct (#448)
Add engineRPM to CarState
2023-05-23 19:03:37 +02:00