void Telemetry::serialLineStart() { Serial.print(millis()); serialCounter++; addDelimiter(); Serial.print(vehicleStatus, BIN); addDelimiter(); }
void Telemetry::serialLineAddLongs(long values[], int numValues) { for(uint8_t count = 0; count < numValues; count++) { if(values[count] >= 0) Serial.print(" "); Serial.print(values[count]); addDelimiter(); } }
void Tokenizer::setDelimiters(const char *d) { if (!d) { return; } const char *c = d; while (*c != '\0') { addDelimiter(*c); c++; } }
// write a string void TabWriter::writeStr(const std::string& name, const std::string& value) { addDelimiter(); out << value.c_str(); }
// write an int void TabWriter::writeInt(const std::string& name, int value) { addDelimiter(); out << value; }
void Telemetry::serialLineAddLong(long value) { if(value >= 0) Serial.print(" "); Serial.print(value); addDelimiter(); }
void Telemetry::serialLineAddFloat(float value) { if(value >= 0) Serial.print(" "); Serial.print(value); addDelimiter(); }