Just started my app, which I will use for rowing. The OOTB rowing app is perfectly good, except I want a companion app on my phone so the Cox can see the data, specifically Stroke Rate and Pace. Once I get the watch app working, I'll create a companion Android app.
So far, I created a v simple app which displays two fields, Heart Rate, and Stroke Rate.
I initialize these in my view
function initialize() {
//View.initialize();
Sensor.setEnabledSensors( [Sensor.SENSOR_HEARTRATE] );
Sensor.enableSensorEvents( method(:onSensor) );
HR = "--";
SPM = "--";
}
In the same class I assign values to these fields
function onSensor(sensorInfo)
{
info = Activity.getActivityInfo();
if (info.currentCadence != null) {
SPM = (info.currentCadence/2).toString();
}
if( sensorInfo.heartRate != null ) {
HR = sensorInfo.heartRate.toString();
}
WatchUi.requestUpdate();
}
When I run my app in the simulator and load a FIT file recorded by the OOTB rowing app, it seems to work, and correctly displays stroke rate and heart rate
But if I load the app on my watch, and start rowing then only the Heart Rate is populated.
What do I need to do to get the App to emit currentCadence values?
Also, is it possible for me to simulate the action of rowing in the Simulator so I can test without having to load on my watch and go use my rowing machine!
Thanks
David