Wahoo Fitness API  3.6.1
Documentation for the iPhone version of the Wahoo Fitness API.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
WFBikeSpeedCadenceData.h
Go to the documentation of this file.
1 //
2 // WFBikeSpeedCadenceData.h
3 // WFConnector
4 //
5 // Created by Michael Moore on 11/9/10.
6 // Copyright 2010 Wahoo Fitness. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import <WFConnector/WFSensorData.h>
11 
12 
21 {
25  float accumCadenceTime;
27  NSTimeInterval cadenceTimestamp;
30  float accumSpeedTime;
32  NSTimeInterval speedTimestamp;
34  NSTimeInterval lastWheelDataTime;
35  NSTimeInterval lastCadenceDataTime;
36 
38 }
39 
43 @property (nonatomic, assign) ULONG accumCrankRevolutions;
47 @property (nonatomic, assign) float accumCadenceTime;
51 @property (nonatomic, assign) UCHAR instantCrankRPM;
68 @property (nonatomic, assign) NSTimeInterval cadenceTimestamp;
73 @property (nonatomic, assign) BOOL cadenceTimestampOverflow;
77 @property (nonatomic, assign) ULONG accumWheelRevolutions;
81 @property (nonatomic, assign) float accumSpeedTime;
85 @property (nonatomic, assign) USHORT instantWheelRPM;
102 @property (nonatomic, assign) NSTimeInterval speedTimestamp;
107 @property (nonatomic, assign) BOOL speedTimestampOverflow;
108 
109 
122 - (id)initWithTime:(NSTimeInterval)dataTime wheelTime:(NSTimeInterval)wheelTime cadenceTime:(NSTimeInterval)cadenceTime;
135 - (NSString*)formattedCadence:(BOOL)showUnits;
136 
147 - (NSString*)formattedDistance:(BOOL)showUnits;
148 
159 - (NSString*)formattedSpeed:(BOOL)showUnits;
160 
161 @end
This is the abstract base class for all types of ANT sensor data.
Definition: WFSensorData.h:18
UCHAR instantCrankRPM
The instantaneous crank RPM, based on the last two sensor measurements.
Definition: WFBikeSpeedCadenceData.h:51
NSTimeInterval cadenceTimestamp
The real-time timestamp for cadence data from the sensor (as an offset from the Cocoa reference date)...
Definition: WFBikeSpeedCadenceData.h:68
float accumSpeedTime
The accumulated time (in seconds) since the sensor was connected or reset.
Definition: WFBikeSpeedCadenceData.h:81
float accumCadenceTime
The accumulated time (in seconds) since the sensor was connected or reset.
Definition: WFBikeSpeedCadenceData.h:47
BOOL speedTimestampOverflow
Indicates that the time between speed data samples from the sensor has exceeded the rollover time (64...
Definition: WFBikeSpeedCadenceData.h:107
unsigned short USHORT
Definition: types.h:121
signed char BOOL
Definition: types.h:110
Represents the most commonly used data available from the ANT+ combined Bike Speed and Cadence sensor...
Definition: WFBikeSpeedCadenceData.h:20
NSTimeInterval speedTimestamp
The real-time timestamp for speed data from the sensor (as an offset from the Cocoa reference date)...
Definition: WFBikeSpeedCadenceData.h:102
unsigned char UCHAR
Definition: types.h:118
BOOL cadenceTimestampOverflow
Indicates that the time between cadence data samples from the sensor has exceeded the rollover time (...
Definition: WFBikeSpeedCadenceData.h:73
unsigned long ULONG
Definition: types.h:133
USHORT instantWheelRPM
The instantaneous wheel RPM, based on the last two sensor measurements.
Definition: WFBikeSpeedCadenceData.h:85
ULONG accumWheelRevolutions
The accumulated wheel revolutions since the sensor was connected or reset.
Definition: WFBikeSpeedCadenceData.h:77
ULONG accumCrankRevolutions
The accumulated crank revolutions since the sensor was connected or reset.
Definition: WFBikeSpeedCadenceData.h:43