You are here: Forum Home → ANT Developers Forums → ANT in Mobile Phones → Thread
Receiver for the PedalPowerBalance event, which is: The pedal power data field provides the user's power contribution (as a percentage) between the left and right pedals, as measured by a pedal power sensor. This data field should be interpreted with the power-only update event count field to determine if the sensor data is new. This data is optional and may not be sent by all sensors.
blackramlabs.com
blackramlabs.com
blackramlabs.com
To be honest I can not see why you are splitting the data up into the various different messages it just makes life really hard if you want all the data for an event having to register for multiple events then marry them back up together is really pain full and inefficient when at the underlying ANT+ level they all come together.
we will probably also be refactoring the events to be more friendly (specifically I believe we will be combining the heartRate and timestamp into the same event). We are expecting to add this in our next release by May. Watch the forums for announcements of a public beta.
blackramlabs.com
Dynastream Developer
blackramlabs.com
Assuming delivering all the events on a single ANT+ data page is 'easier to understand' only makes sense from the point of view of someone who is working directly off the profile or has previous experience doing the manual encoding.
Both of these events share the same powerOnlyUpdateEventCount as they are received on the same page (which will both share the same estTimestamp so if one of these events fire they will both fire).
How do we calculate the power generated by each pedal, and know whether that data is current?
1) The per pedal power can be derived using the IPedalPowerBalanceReceiver using the pedalPowerPercentage which is received on the same data page as the IRawPowerOnlyDataReceiver (which contains the instantaneousPower field you must multiply with). Left and right can only be derived if the power meter is sending right pedal data, indicated by the rightPedalIndicator.
2) Both of these events share the same powerOnlyUpdateEventCount as they are received on the same page (which will both share the same estTimestamp so if one of these events fire they will both fire). If the powerOnlyUpdateEventCount changes between events, that indicates the sensor has updated its data, if not then it is simply repeating previous data.
will events occur in a known order?
there is always a minimal risk it may change in the future.
blackramlabs.com
Dynastream Developer
blackramlabs.com
blackramlabs.com