I'm trying to figure out where to find data on the possibilities of a simpleDataField (perhaps I shouldn't be looking here). I'm trying to use data like the average HR, speed, elapsed time (duration) of the last lap. Thank you for helping me out.
I'm trying to figure out where to find data on the possibilities of a simpleDataField (perhaps I shouldn't be looking here). I'm trying to use data like the average HR, speed, elapsed time (duration) of the last lap. Thank you for helping me out.
You can't get the data directly, but you can see when a lap occurs, and do your own calculations in compute().
Here's a simple one that just shows the lap number, but it's the basis. onTimerLap() is called when their's a new lap.
using Toybox.WatchUi;
class LapsView extends WatchUi.SimpleDataField {
var laps=0;
// Set the label of the data field here.
function initialize() {
SimpleDataField.initialize();
label = "Laps";
}
function onTimerLap() {
laps++;
}
// The given info object contains all the current workout
// information. Calculate a value and return it in this method.
// Note that compute() and onUpdate() are asynchronous, and there is no
// guarantee that compute() will be called before onUpdate().
function compute(info) {
// See Activity.Info in the documentation for available information.
return laps;
}
}I wrote my first 3 programs based on your input and they do work in the simulator. I will test them on my 945 and in case they show no bugs I will upload the apps to the community.
The basic idea is the following for running intensive intervals on a track (or off-track in case you don't have access to a track)
3 data fields, with different date in them, depending on if you are busy with the interval itself or with the recovery (pause):
app 1 (top screen)
a) during the interval it shows the lap distance (in case you are not on a track it helps you to determine the correct distance)
b) during recovery you see your actual HR (to check how the recovery is going)
app 2 (middle screen)
a) during the interval it shows your average 3s pace/400m (as this is normally the given target: example: run 1:24 / 400 meters for 600 meters long)
b) during recovery first 25 sec. the average pace/400m of the interval you just did (to check if you have run at the correct pace), after 25sec it shows the current lap duration (pause time), so you know when to start your next interval
app 3 (bottom screen)
a) during interval lap duration (in MM:SS)
b) during recovery first 25 sec. the previous total lap duration, after 25 seconds the previous lap distance (to check in case you are not on a track if your distance was correct)
I've used this for the last 5 years and found it very useful, so thanks again for helping me out.
the 945 only allows for 2 concurrent data fields, so your concept of 3 different data fields will not work.