I have setup a simple data field to output the new distance to next point and name of next point activity info. I have side loaded on to a Fenix 3 with no issue using the new beta 7.31 firmware. I have no problem getting the code to work with most normal data fields only when accessing new navigation info for a course. The course does have waypoints as the they are displayed using the WPT. NEXT and DIST. NEXT fields. As the simulator doesn't support course files yet any ideas? Very simplistic code below.
using Toybox.WatchUi as Ui;
class SimpleFenixDataFieldView extends Ui.SimpleDataField {
//! Set the label of the data field here.
function initialize() {
SimpleDataField.initialize();
label = "NextP";
}
//! The given info object contains all the current workout
//! information. Calculate a value and return it in this method.
function compute(info) {
// See Activity.Info in the documentation for available information.
// Check if data field exists if so display if not No Data my friend
if (info has :nameOfNextPoint) {
// the feature is supported
if (info.nameOfNextPoint != null) {
return info.nameOfNextPoint;
}
else {
return "No Next";
}
}
else {
return "No Points";
}
}
}