Skip to content
MankaranSingh edited this page May 5, 2023 · 1 revision

Flowpilot saves logs every time you go for a drive with it. These logs are stored in ~/.flowdrive/media/0/realdata.

There would be multiple folders in format <route-name>--<segment-number> route name is same for a particular drive (a drive is started from the onset of ignition to ended when the ignition is turned off). A segment number varies from 0 to n. Each segment is a 60 seconds chunk of the drive. Each segment has 3 types of logs, the video (ecam/fcam.mp4), and corresponding qlogs and rlogs. rlogs are the full logs whereas qlogs are decimated subset of rlogs.

You can copy these logs over to your PC and visualize them using plotjuggler.

Running plot-juggler in offline mode

  • get your log files
  • visualise them in plojuggler using python tools/plotjuggler/juggle.py <path-to-qlog/rlog>

Running plot-juggler in live stream mode

PLotjuggler can be used to visualize live values when flowpilot is engaged. If you are running flowpilot on desktop, use python tools/plotjuggler/juggle.py --stream to use it.

If you are using android, you'd need a separate PC running linux to connect to your phone and visualize logs. To do this

  • Connect your PC and your phone to same network (preferably connect your PC to your phone's hotspot).
  • On android, edit your launch_flowpilot.sh
  • Uncomment the export DISCOVERABLE_PUBLISHERS="1" line.
  • On your pc, run plotjuggler with DEVICE_ADDR="<your android device ip>" python tools/plotjuggler/juggle.py --stream