Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

Speed in S&C for Android differs from SimulAnt+

Rank

Total Posts: 5

Joined 2015-04-14

PM

Dear Support Team,

I'm comparing calculated speed in "ANT+ Plugin Sampler" (S&C) with "SimulAnt+" (S&C Display) and it differs significantly (while Cadence results match exactly). The Android demo app shows values between 3-4 while SimulAnt+ shows correctly values around 12. Of course, I have adjusted the wheel circumference in Android demo application to match value 2070mm used by SimulAnt+.

com.dsi.ant.antplus.pluginsampler.Activity_BikeSpeedDistanceSampler

bsdPcc.subscribeCalculatedSpeedEvent(new CalculatedSpeedReceiver(new BigDecimal(2.070))
{
@Override
public void onNewCalculatedSpeed(final long estTimestamp,
final EnumSet<EventFlag> eventFlags, final BigDecimal calculatedSpeed)
{
runOnUiThread(new Runnable()
{
@Override
public void run()
{
tv_estTimestamp.setText(String.valueOf(estTimestamp));
tv_calculatedSpeed.setText(String.valueOf(calculatedSpeed));
}
});
}
});

Please can you hint me what I'm doing or interpreting wrong? Is there any further calculation required after receving calculatedSpeed to get the same value as "Speed (km/h)" shows in SimulAnt+?

Thank you very much for any advice in advance.

Ondrej      
Rank

Total Posts: 5

Joined 2015-04-14

PM

The whole "issue" was in ambiguous units. The plug-in returns speed in m/s not in km/h which is not clearly stated in JavaDoc except one place I have found finally. May be it helps some else.