The FitContributor module allows Applications and Data Fields to recorddata into FIT files on the device's file system during an activity. This is useful for recording data that is not already calculated by the device, which can be synced to a service like Garmin Connect.
There are three FitContributor message types available:
Session data is written once per recording session at the end of the recording, and is used for data that pertains to the entire session (e.g. average speed).
Lap data is written once for every lap in the session, and used for data that pertains to each lap (e.g. average lap speed).
Depending on the device, record data is written once per second or when new data is available (Smart Recording), but is never written faster than once per second. This message type is used for instantaneous values (e.g. current speed).
Data type constants are also available for use with themethod.
Defined Under Namespace
- MESG_TYPE_SESSION = 18
The message type for session messages.
- MESG_TYPE_LAP = 19
The message type for lap messages.
- MESG_TYPE_RECORD = 20
The message type for record messages.
- DATA_TYPE_SINT8 = 1
- DATA_TYPE_UINT8 = 2
- DATA_TYPE_SINT16 = 3
- DATA_TYPE_UINT16 = 4
- DATA_TYPE_SINT32 = 5
- DATA_TYPE_UINT32 = 6
- DATA_TYPE_STRING = 7
- DATA_TYPE_FLOAT = 8
- DATA_TYPE_DOUBLE = 9