function getCurrentSpeed() {
var info = Activity.getActivityInfo();
return info.currentSpeed;
}
When the Activity is setup like below:
_activity = Recording.createSession({
:sport => Recording.SPORT_CYCLING,
:subSport => Recording.SUB_SPORT_GENERIC,
:name => "515"
});
The returned speed value appears to have almost no filtering. It responds to a change in speed very quickly but it's also very noisy.
When the Activity is setup as a running activity like:
_activity = Recording.createSession({
:sport => Recording.SPORT_RUNNING,
:subSport => Recording.SUB_SPORT_GENERIC,
:name => "515"
});
The returned speed value appears to be smoothed for 30 - 60 seconds.
Is this the intended behavior? Can the smoothing be adjusted?
For my application, the 30-60 seconds is too slow of a response. I don't want to use the CYCLING sport type because then it doesn't record running cadence from the watch accelerometer. What are my options for getting at a less filtered speed value from the GPS?