WPTSCENTER

The function WPTSCENTER calculates the centroid of the waypoint list and stores the coordinate in the register LAT und LON.

These register can be retrieved with the functions  GETLAT() and GETLON().

WPTSCENTER(mode)

  • mode = 0: arithmetic center
  • mode = 1: center of gravity