Overwrite Cadens in FIT in Rowing activity?

Hopefully this question isn't answered before. I could not find it.

I'm trying to make an auto pause application for rowing. In the normal activity the recording of speed an spm is always on. Resulting in unreadable graphs especially for speed.

As far as I know and in the rowing activity Cadens is used for the strokes per minute. The standard data fields are not accessible by an iq app. (found on the forum) 

Therefore I have made my own stroke speed detection from the pitch counter example (also found that hint here).

I have 3 options formulated as questions. In the order to what I think is easy to harder

1) Is it possible to overwrite the activity.info.cadence data?

2) if not. Is it possible to supply cadens to the FIT file and thereby overwrite it?

3) if not. Is it possible to remove the a graph in the app. I know I can add one (still need to figure out how)?

Also I still have some tuning to do with the pitchcouter example filtering. Does anyone have tips regarding this? I now use 0.2f. 

  • You can't overwrite what the firmware is writing.  You can use FitContrib to add your own data.  There is nativeNum with FitContrib where you can say "This is the same as a native field", but Garmin Connect doesn't use that, so the best you can do is show your FitContrib data in addition to what's recorded by the FW (two separate graphs for example)

    Search this forum for FitContrib and nativeNumber for a number of threads about this.

  • Thank you for your quick response. So option 3 is the only option. I was guessing that from what I found. 

    Do you know is there is an example in the SDK with FitContrib? What I found in the core topics was not totally clear. For instance if I need the XML or not.

    And guessing from your answer it's not possible to turn off the native graph. 

  • There's probably a sample in the SDK that shows fitcontrib, but I don't recall which one..

    The XML is used to define how your data is shown in Garmin Connect

    You can not turn off the native graph.  Just add your own graph.

  • One more Question 

    This standard line (from Core Topics (garmin.com)) gives met the following error. (with import Toybox.FitContributor;)

    session.createField("cadence", SPM_FIELD_ID, FitContributor.DATA_TYPE_UINT16, { :mesgType=>Fit.MESG_TYPE_RECORD, :units=>"N" });

     Undefined symbol ':Fit' detected.

    I changed it to FitContributor.MESG_TYPE_RECORD that seems to solve the error

    I think it's an error on the site do i need to mention it somewhere?

  • Yes, that's an error in the doc.  You can do a CIQ bug report in that forum.

  • I found moxyfield as a example tnx for the info.