Feature Request: Add Course Turn Direction Arrow Icon to 'Activity::Info' class

Hi. I'm not sure if this is the correct place to submit feature requests. If not can someone point me in the right direction.

I was wondering if at some point the turn arrow icon that accompanies the course point description when navigating a TCX course could be added to the Class: Toybox::Activity::Info, which would enable it to be displayed in a CIQ datafield along with the description which is already in the same class.

The arrow can be seen in the course point turn list data screen on the Edge 1000. I think I've only ever seen 5 types of icon represented left, right, straight ahead, start flag & finish flag with the course point description giving additional relevant information like '3rd exit' if it's say on a roundabout.

Cheers HD
  • I don't think you want a turn direction icon in Activity.Info. At the very least it seems that you are looking for information about the next turn in a course. If that was to be added it seems like it would fit into Activity::Info.

    If you want to be able to display more than one upcoming turns, you'd need access to data about several (or all) data points in the course file. In that case the information probably belongs somewhere else.. maybe PersistedContent::Course or somewhere similar.

    Travis
  • Hi. The module reference is due to my very limited knowledge of the ciq structure. Thanks for the correction.

    I am just interested in displaying the next turn on the course so Activity::Info seems to be the most appropriate place.
    Hopefully the CIQ team will find it a worthwhile and make the addition
  • Well, Activity::Info already has nameOfNextPoint. Would probably want something like typeOfNextPoint. Did a quick search and the following types are available (there's a bit more than 5, and they're not all arrows):

    https://github.com/entylop/gpx-fixer...ursePoint.java

    public enum CoursePoint {
    GENERIC[0],
    SUMMIT[1],
    VALLEY[2],
    WATER[3],
    FOOD[4],
    DANGER[5],
    LEFT[6],
    RIGHT[7],
    STRAIGHT[8],
    FIRST_AID[9],
    FOURTH_CATEGORY[10],
    THIRD_CATEGORY[11],
    SECOND_CATEGORY[12],
    FIRST_CATEGORY[13],
    HORS_CATEGORY[14],
    SPRINT[15],
    LEFT_FORK[16],
    RIGHT_FORK[17],
    MIDDLE_FORK[18],
    SLIGHT_LEFT[19],
    SHARP_LEFT[20],
    SLIGHT_RIGHT[21],
    SHARP_RIGHT[22],
    U_TURN[23],
    INVALID[255];
  • Yes, if you only want to be able to display the information for the next point, it fits in with Activity::Info. If you want something more useful (so you could potentially display information about the upcoming points), you'd need something that provides more information...

    function dumpCoursePoints<[course]> {

    var pointIterator = course.getPointIterator<[]>;
    if <[pointIterator == null]> {
    return;
    }

    var coursePoint = pointIterator.next<[]>;
    while <[coursePoint != null]> {

    // measured from the last point
    var name = coursePoint.name;
    var elevation = coursePoint.elevation;
    var location = coursePoint.location;
    var type = coursePoint.type; // one of the above course point types

    coursePoint = coursePoint.next<[]>;
    }
    }