ebolefeysot / CIQ_LastLapPcMAS

Garmin connect IQ data field to display speed in percent of vVo2max on last lap.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Garmin data field: Last Lap speed in % MAS/VMA/vVO2max

Custom data field to display average speed on last lap in percent of MAS (Maximum Aerobic Speed, or vVO2max, or VMA). https://fr.wikipedia.org/wiki/Vitesse_maximale_a%C3%A9robie

This data field calculates each second the average speed during the lap and display it when it is finished. To get a better result, the first 3s, while you're accelerating, is skipped.

More custom data fields are available on garmin store:

  • Instant %MAS
  • Current lap %MAS

Setting the MAS/VMA/vVO2max

Data field type application don't have access to picker widget: you can't set your MAS from the device. The MAS variable is defined as setting (xml files) and can be changed on the garmin express software:

How to set your MAS:

  • Go to Garmin Express and sync to install the field
  • Click the 'IQ App' section
  • Scroll to the field and click then '...' icon
  • Set your MAS. Use comma as separator.
  • Go back to main page and sync.

Project Setup

Follow garmin setup for eclipse and Connect IQ plugin: https://developer.garmin.com/connect-iq/sdk/

Adding devices

Open the sdk manager (Connect IQ menu), update the sdk version, go to device tab and download compatible devices. Open the manifest.xml file in eclipse, select the 'build target' tab (bottom tab bar)

Running on simulator

Click Run Configuration and create a configuration for your device (supported devices list is stored in manifest.xml. Then launch the app using this configuration.

Debugging

Launch the app in debug mode. The app will pause automatically before starting. Put a breakpoint and resume execution.

Installing on your physical device

Use Connect IQ/Build for device wizard tool. You need a personal secret developer key that you can generate in the Connect IQ/compiler section in Eclipse preferences. Uncheck Build release version and check Include debug XML to get meaningfull logs.

The application is compiled into a prg and debug.xml files. Copy those files into the /GARMIN/APPS/ directory of the device.

About

Garmin connect IQ data field to display speed in percent of vVo2max on last lap.

License:GNU General Public License v3.0


Languages

Language:Monkey C 100.0%