Changeset 42 in flair-src for trunk/lib/FlairSensorActuator/src/Mb800.cpp


Ignore:
Timestamp:
Jul 5, 2016, 8:50:58 AM (5 years ago)
Author:
Sanahuja Guillaume
Message:

m

File:
1 edited

Legend:

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

    r41 r42  
    5353      Thread::Err("erreur Write (%s)\n", strerror(-written));
    5454  }
    55 /*
     55
    5656  {
    5757    char to_send[] = "$PASHS,CPD,AFP,95.0\r\n";
     
    6868    }
    6969  }
    70 */
     70
    7171  if ((NMEAFlags & GGA) != 0) {
    7272    char to_send[] = "$PASHS,NME,GGA,A,ON,0.05\r\n";
     
    9999
    100100  while (!ToBeStopped()) {
    101     //Printf("loop\n");
    102101    SleepMS(10);
    103     size = 0;/*
     102    size = 0;
    104103    while (!ToBeStopped()) {
    105104      ssize_t read = serialport->Read(&response[size], 1);
     
    111110        break;
    112111      size++;
    113     }*/
     112    }
    114113    size++;
    115     //parseFrame(response, size);
     114    parseFrame(response, size);
    116115  }
    117116  /** fin running loop **/
     
    122121  char data = 0;
    123122  ssize_t read = 0;
    124 Printf("sync\n");
     123
    125124  // attente fin trame
    126125  while (data != 0x0a && !ToBeStopped()) {
    127126    read = serialport->Read(&data, 1);
    128127    SleepMS(10);
    129     Printf("%i %x\n",read,data);
     128
    130129    if (read < 0) {
    131130      Thread::Err("erreur Read (%s)\n", strerror(-read));
Note: See TracChangeset for help on using the changeset viewer.