/**
  * <summary>
  *   Changes the representation system used for positioning data.
  * <para>
  *   Remember to call the <c>saveToFlash()</c> method of the module if the
  *   modification must be kept.
  * </para>
  * <para>
  * </para>
  * </summary>
  * <param name="newval">
  *   a value among <c>YGps.COORDSYSTEM_GPS_DMS</c>, <c>YGps.COORDSYSTEM_GPS_DM</c> and
  *   <c>YGps.COORDSYSTEM_GPS_D</c> corresponding to the representation system used for positioning data
  * </param>
  * <para>
  * </para>
  * <returns>
  *   <c>0</c> if the call succeeds.
  * </returns>
  * <para>
  *   On failure, throws an exception or returns a negative error code.
  * </para>
  */
 public int set_coordSystem(int newval)
 {
     if (_func == null)
     {
         throw new YoctoApiProxyException("No Gps connected");
     }
     if (newval == _CoordSystem_INVALID)
     {
         return(YAPI.SUCCESS);
     }
     // our enums start at 0 instead of the 'usual' -1 for invalid
     return(_func.set_coordSystem(newval - 1));
 }