Changeset 51 in flair-src for trunk/tools/FlairGCS


Ignore:
Timestamp:
Jul 26, 2016, 5:32:57 PM (5 years ago)
Author:
Sanahuja Guillaume
Message:

gps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/FlairGCS/src/file_ui.cpp

    r15 r51  
    178178    out << time << "," << tr;
    179179    for (int i = 0; i < data_type.size(); i++) {
    180       if (data_type.at(i) == "float)") {
     180      if (data_type.at(i) == "double)") {
     181        double *value = (double *)(data + offset);
     182        offset += sizeof(double);
     183        out << "," << *value;
     184      } else if (data_type.at(i) == "float)") {
    181185        float *value = (float *)(data + offset);
    182186        offset += sizeof(float);
     
    185189        int8_t *value = (int8_t *)(data + offset);
    186190        offset += sizeof(int8_t);
    187         float fl = (float)*value;
     191        out << "," << *value;
     192      } else if (data_type.at(i) == "uint8_t)") {
     193        uint8_t *value = (uint8_t *)(data + offset);
     194        offset += sizeof(uint8_t);
    188195        out << "," << *value;
    189196      } else {
Note: See TracChangeset for help on using the changeset viewer.