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
WFOdometerHistory.h
Go to the documentation of this file.
1 //
2 // WFOdometerHistory.h
3 // WFConnector
4 //
5 // Created by Michael Moore on 3/29/12.
6 // Copyright (c) 2012 Wahoo Fitness. All rights reserved.
7 //
8 
9 #import <WFConnector/hardware_connector_types.h>
10 
11 
12 #define WF_ODOMETER_HISTORY_MAX_SIZE 52
13 #define WF_ODOMETER_HISTORY_INVALID -1.0
14 #define WF_ODOMETER_WHEEL_REVS_INVALID ((ULONG)0xFFFFFFFF)
15 
16 
24 @interface WFOdometerHistory : NSObject
25 {
26  ULONG aulHistoryBuffer[WF_ODOMETER_HISTORY_MAX_SIZE];
27 
30 }
31 
32 
39 @property (nonatomic, assign) float bikeWheelCircumference;
41 @property (nonatomic, assign) ULONG ulCurrentWheelRevolutions;
42 
43 
57 - (float)getDistanceForWeek:(UCHAR)ucWeek;
58 
70 - (float)getOdometerForWeek:(UCHAR)ucWeek;
71 
83 - (ULONG)getWheelRevolutionsForWeek:(UCHAR)ucWeek;
84 
85 
94 - (ULONG*)historyBufferPtr;
100 - (void)clearHistoryBuffer;
104 @end
Represents the odometer history for the Wahoo BlueSC bike speed and cadence sensor (or similar)...
Definition: WFOdometerHistory.h:24
float bikeWheelCircumference
Gets or sets the bike wheel circumference, in meters.
Definition: WFOdometerHistory.h:28
unsigned char UCHAR
Definition: types.h:118
ULONG aulHistoryBuffer[WF_ODOMETER_HISTORY_MAX_SIZE]
Definition: WFOdometerHistory.h:26
ULONG ulCurrentWheelRevolutions
Gets the current total wheel revolutions for the device.
Definition: WFOdometerHistory.h:29
unsigned long ULONG
Definition: types.h:133