Changeset 51 in flair-src for trunk/tools/FlairGCS
- Timestamp:
- Jul 26, 2016, 5:32:57 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/FlairGCS/src/file_ui.cpp
r15 r51 178 178 out << time << "," << tr; 179 179 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)") { 181 185 float *value = (float *)(data + offset); 182 186 offset += sizeof(float); … … 185 189 int8_t *value = (int8_t *)(data + offset); 186 190 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); 188 195 out << "," << *value; 189 196 } else {
Note:
See TracChangeset
for help on using the changeset viewer.