
G.FIT User Guide and Specification, Rev 2.0_Alpha.14
Page 97 of 117
thisisant.
com
7.5.4
gfit_event_set_simulation_parameters (0xB6)
Event: An event that is sent to the MCU when G.FIT receives simulation paramete rs over ANT+ or BLE FTMS.
Requires Response: Yes, see section 4.4.2.
Depends on Controllable Feature: Bike Simulation
Table 7-66. gfit_event_set_simulation_parameters event message
Byte #
Name
Length
Description
0
Sync
1 byte
Fixed value of 10100100 or 10100101
(Refer to the
Interfacing with ANT General Purpose Chipsets and
Modules document for details.)
1
Length
1 byte
11 bytes
2
Message ID
1 byte
0xE0 (event)
3
Sub-Message ID
1 byte
0xB6 (gfit_event_set_simulation_parameters)
4
Wind Resistance
Coefficient
1 byte
Wind Resistance Coefficient (0.01 kg/m, unsigned)
0xFF indicates invalid
5-8
Wind Speed
4 bytes
Wind Speed (mm/s, signed)
0x7FFFFFFF indicates invalid
†
9
Drafting Factor
1 byte
Drafting Factor (0.01 resolution, unsigned)
0xFF indicates invalid
10-11
Grade
2 bytes
Grade (0.01%, signed)
0x7FFF indicates invalid
†
12-13
Coefficient of
Rolling Resistance
2 bytes
Coefficient of Rolling Resistance (resolution 5x105, unsigned)
0xFFFF indicates invalid
14
Checksum
1 byte
XOR of all previous bytes including the sync byte.
† Wind
speed and grade are both signed values, and therefore 0 is a valid value for both parameters. As
such, neither parameter can be set to 0 by default and are instead initially set to 0x7FFFFFFF and 0x7FFF
respectively.