Lil Zombie
Question1:
With a C8 Z06 PDR, I took data using the incorrect track start/stop data points and ended up with outings which contain multiple, non individualized  laps.  Is there a methodology or function wherein I can input the correct GPS for the lap start/stop and Pi Toolbox will break the outing into individual laps for analysis?
 
Question 2:
Can Pi Toolbox 12.4 import VBOX data or AIM comma separated values (CSV) data for comparison with native Pi Toolbox data?
 
Thanks.
Reply 0 0
poor-sha
I'm not aware of a way to insert the finish line on a PDR outing after the fact.  It's certainly been a common ask. 
 
The higher paid skus for Pi allow you to import CSV or Matlab files, but they expect a certain format.  There was a company that wrote a tool to do the conversion, but I've lost track of them and it was only available as a subscription. You'd still need the correct Pi license though.
Reply 0 0
littleozfella
Right click on the time/distance chart where you want to insert a lap beacon, select lap markers, insert.  You have to do this for every lap. if you have logged GPS Long and Lat then you may be able to find the exact point. I have made some maths channels to do this according to GPS points but It is a bit complicated to setup and I have no instructions written yet on how to use it, and no time at the moment to do so. But with some thought and use of maths it can be done.  See below
 
 
 Beacon_Missed_Maths
              
register @a0;
register @a1;
@a0=([Latitude]>((CONST(GPS_Lat)-0.00003)))-([Latitude]>((CONST(GPS_Lat)+0.00005)));
@a1=([Longitude]>((CONST(GPS_Long)-0.00003)))-([Longitude]>((CONST(GPS_Long)+0.0002)));
(@a0&&@a1)
 
  The Constants are where separate channels where you put in the lat and long points as you would for the finish line.  
Beacon Tag
         
/* Calculates total number of times into over Channelx condition per outing*/
register @count = 0;
register @state = 0;

//Detect moving from 0 to 1
@state = choose( [Beacon_Missed_Maths] > 0 && @state == 0, 1, @state);
//If moved from 0 to 1 count
@count = choose(@state == 1, @count + 1, @count);
//Move to state 2 to wait for return to 0
@state = choose( @state == 1, 2, @state);
//Detect moving from 1 to 0 and reset machine
@state = choose( [Beacon_Missed_Maths] == 0 && @state == 2, 0, @state);

//Output count
@count
 
  This will tag where the beacon needs to be, then you need to do as above right click on this point and insert Lap Marker (Beacon)
Reply 0 0
poor-sha
I wanted to post a follow-up to this as I had to do a few things to make this work on a PDR outing. The "insert lap marker" function is disabled on MP4 files as well as other imported file types like TXT. You will need to open the MP4 in Pi and then export it as a PDS format. That will lose the video stream, but you can select which channels you want to export and do the entire session. Then open that PDS file instead of the MP4 in Pi.
 
Then note that @littleozfella has shown two channels above that you need to create. The first is called "Beacon_Missed_Math" and is the following:
 
register @a0;
register @a1;
@a0=([Latitude]>((CONST(GPS_Lat)-0.00003)))-([Latitude]>((CONST(GPS_Lat)+0.00005)));
@a1=([Longitude]>((CONST(GPS_Long)-0.00003)))-([Longitude]>((CONST(GPS_Long)+0.0002)));
(@a0&&@a1)
 
Then you need to create a second math channel called "Beacon_Tag" that contains:
 
/* Calculates total number of times into over Channelx condition per outing*/
register @count = 0;
register @state = 0;

//Detect moving from 0 to 1
@state = choose( [Beacon_Missed_Maths] > 0 && @state == 0, 1, @state);
//If moved from 0 to 1 count
@count = choose(@state == 1, @count + 1, @count);
//Move to state 2 to wait for return to 0
@state = choose( @state == 1, 2, @state);
//Detect moving from 1 to 0 and reset machine
@state = choose( [Beacon_Missed_Maths] == 0 && @state == 2, 0, @state);

//Output count
@count
 
Finally, make sure you go into the constants editor Tools - Constants - Edit, and create simple constant types for GPS_Lat and GPS_Long using the values you see for Latitude and Longitude when the car crossed the finish line - use 4 decimal places.
 
When you add the Beacon_Tag channel to a time/distrance chart you will see the value increment at the finish line. Zoom in on that point, right click, insert lap marker.
 
This is nothing different than what @littleozfella wrote above, I'm just providing some additional detail and may not be clear to some folks.
 
[178729%2F9416058%2Fmceclip0]
 
Reply 0 0
poor-sha
I made a video to cover the entire process to add laps to a PDR outing where you forgot to define the finish line. It's a little more involved than with .pds files.
Reply 0 0
Reply