Changeset 180 in flair-src for trunk/lib/FlairSensorActuator/src


Ignore:
Timestamp:
May 31, 2017, 3:53:32 PM (7 years ago)
Author:
Sanahuja Guillaume
Message:

modifs gps

Location:
trunk/lib/FlairSensorActuator/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairSensorActuator/src/Mb800.cpp

    r170 r180  
    9292    }
    9393  }
     94  if ((NMEAFlags & GSA) != 0) {
     95    char to_send[] = "$PASHS,NME,GSA,A,ON,0.1\r\n";
     96    written = serialport->Write(to_send, sizeof(to_send));
     97    if (written< 0) {
     98      Thread::Err("erreur Write (%s)\n", strerror(-written));
     99    }
     100  }
    94101
    95102  Sync();
  • trunk/lib/FlairSensorActuator/src/NmeaGps.cpp

    r170 r180  
    233233        gpsData->SetVelocity(info.speed * 1000. / 3600. * sin(Euler::ToRadian(info.direction)),
    234234                                  info.speed * 1000. / 3600. * cos(Euler::ToRadian(info.direction)));
    235       }/*
     235      }
     236      if ((NMEAFlags & GSA) != 0) {
     237        gpsData->SetDop(info.PDOP,info.HDOP,info.VDOP);
     238      }
     239      /*
    236240      if ((NMEAFlags & GST) != 0) {
    237241        // Thread::Printf("dev_lon:%f dev_lat:%f
  • trunk/lib/FlairSensorActuator/src/NmeaGps.h

    r170 r180  
    5353    VTG = 0x02, /*!< VTG */
    5454    GST = 0x04, /*!< GST */
     55    GSA = 0x08, /*!< GSA */
    5556  };
    5657
Note: See TracChangeset for help on using the changeset viewer.