Commit Graph

19 Commits

Author SHA1 Message Date
Dean Lee 01610128bb cabana: support suppress highlighted bits (#30336)
* support suppress highlighted bits

d

* faster filtering and sorting

* improve livestream

* specify the context in the connections

* remove inline
2023-10-30 09:47:23 -07:00
Dean Lee 952838335d cabana: improve playback controller (#30325)
improve playback controller
2023-10-25 10:57:09 -07:00
Dean Lee ef4c963c60 cabana: add comparision operator for CanEvent (#29864) 2023-09-10 16:09:22 -07:00
Dean Lee 2d99521e75 cpplint: build/include_what_you_use (#29556)
* include_what_you_use

* remove comments

* include <memory>

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-08-23 13:25:17 -07:00
Dean Lee b7a2a921ec cabana: segment live stream logging (#28407) 2023-06-05 09:44:30 -07:00
Dean Lee a26e6d1633 cabana: supports switching streams on the fly (#28081)
* open stream

* use std::atomic::exchange

* emit streamStarted immediately
2023-05-24 20:47:37 -07:00
Dean Lee 7f856eafd9 cabana: fix wrong total seconds in replay mode (#28015)
* fix total_sec

* fix chart max range

* fix all_evnets order & use vector to improve performance

* dynamic updating max time

* get real time from qlog

* Update tools/cabana/streams/livestream.cc

Co-authored-by: Shane Smiskol <shane@smiskol.com>

---------

Co-authored-by: Shane Smiskol <shane@smiskol.com>
2023-04-25 21:49:10 -07:00
Dean Lee 91dc064ac7 cabana: support all features except video in live stream mode. (#27994) 2023-04-21 13:23:17 -07:00
Dean Lee dc4b7b37c0 cabana: fix PandaStream crash if no panda found (#27948) 2023-04-18 10:22:57 -07:00
Willem Melching 2a981f5531 cabana: support direct streaming from panda over USB (#27936)
* refactor livestream into devicestream

* add panda stream

* unused

* whitespace

* move logging to base class

* add cmdline args

* Update selfdrive/boardd/boardd.cc

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2023-04-17 15:37:26 -07:00
Dean Lee e3a19ff074 cabana: support logging live stream (#27884)
support logging live stream
2023-04-13 19:53:39 -07:00
Dean Lee 74db5a4b42 cabana: group CAN events by message id to reduce the time complex from O(N) to O(1) (#27601)
* refactor streams

* helper function xLessThan

* fix fill gaps
2023-03-17 10:16:14 -07:00
Dean Lee f00c108acb cabana: eliminate deep copy of events in live stream mode (#27588) 2023-03-15 10:54:22 -07:00
Dean Lee 696cbb3e24 cabana: fix incorrect current ts in live stream mode (#27578) 2023-03-14 11:31:57 -07:00
Dean Lee 2de085d39d cabana: faster copy events (#27499) 2023-03-05 15:55:22 -08:00
Dean Lee 2cb0f59962 cabana: delay starting live streaming thread (#27213) 2023-02-04 15:25:06 -08:00
Dean Lee 544ad25a0b cabana: support pause and slow motion playback in live stream mode (#27051)
* support pause and slow motion playback in live stream mode

* override

* virtual functions

* move to function

fix

* lock handleEvent

* show speed controls in video widget

* fix pause signal

* set margins

* cleanup
2023-01-24 15:07:11 -08:00
Dean Lee 1e4721ad62 cabana: fix memory corruption in live stream (#27037) 2023-01-22 13:20:20 -08:00
Dean Lee f9490739ab Cabana: support live streaming (#26946)
* support live streaming

* update live stream's time

* cleanup stream classes

* disable video control in live streaming mode

* emit streamStarted() in LiveStream::streamThread

* disable some features in live streaming mode

* refactor charts to support live streaming mode

* disable dynamic mode checkbox in live streaming mode

* updateDispalyRange

* thread safe events

* TODO: add support for ZMQ

* atomic time stamp

* only keep settings.cached_segment_limit*60  seconds data in liveStream

* make charts work better in live mode

* cleanup ChartView

* fix toolbar

* cleanup

cleanup

* disable openpilotPrefix and useOpenGL on macos

* add comment

* exit gracefully

* support ZMQ

* use ::operator new/delete

* cleanup streams

* cleanup

* align stream buffers

* check looping back

* check if series is empty

* cleanup

* add TODO: write stream to log file to replay it

* upper_bound

* remove class member event_range

* change default settings value

* cleanup updateDisplayrange

* fix merge error
2023-01-19 15:26:00 -08:00