Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.

Commit e01947d

Browse files
Update README.md
1 parent 294cfee commit e01947d

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

README.md

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,17 @@ There are five optional parameters that can be passed as an associative array wh
121121
- units
122122
- pace
123123
- garmin_timestamps
124+
- overwrite_with_dev_data
124125

125126
For example:
126127
```php
127128
$options = [
128-
'fix_data' => ['cadence', 'distance'],
129-
'data_every_second' => true
130-
'units' => 'statute',
131-
'pace' => true,
132-
'garmin_timestamps' => true
129+
'fix_data' => ['cadence', 'distance'],
130+
'data_every_second' => true
131+
'units' => 'statute',
132+
'pace' => true,
133+
'garmin_timestamps' => true,
134+
'overwrite_with_dev_data' => false
133135
];
134136
$pFFA = new adriangibbons\phpFITFileAnalysis('my_fit_file.fit', $options);
135137
```
@@ -294,6 +296,9 @@ echo 'The difference (in seconds) between FIT and Unix timestamps is '. number_f
294296
```
295297
By default, fields of type date_time and local_date_time read from FIT files will have this delta added to them so that they can be treated as Unix time. If the FIT timestamp is required, the 'garmin_timestamps' option can be set to true.
296298

299+
### Overwrite with Developer Data
300+
The FIT standard allows developers to define the meaning of data without requiring changes to the FIT profile being used. They may define data that is already incorporated in the standard - e.g. HR, cadence, power, etc. By default, if developers do this, the data will overwrite anything in the regular ```$pFFA->data_mesgs['record']``` array. If you do not want this occur, set the 'overwrite_with_dev_data' option to false. The data will still be available in ```$pFFA->data_mesgs['developer_data']```.
301+
297302
## Analysis
298303
The following functions return arrays of data that could be used to create tables/charts:
299304
```php

0 commit comments

Comments
 (0)