void writePoint(OutputStream* outputStream, Point* point) { appendDecf(outputStream, point->x); appendString(outputStream, CSV_SEPARATOR); appendDecf(outputStream, point->y); appendString(outputStream, CSV_SEPARATOR); }
bool absFloatTest(void) { signed long value = 40000.0; signed long absValue = fabsf(value); appendCRLF(getDebugOutputStreamLogger()); appendString(getDebugOutputStreamLogger(), "absFloatTest\n"); appendString(getDebugOutputStreamLogger(), "NORMAL="); appendDecf(getDebugOutputStreamLogger(), value); appendCRLF(getDebugOutputStreamLogger()); appendString(getDebugOutputStreamLogger(), "RESULT="); appendDecf(getDebugOutputStreamLogger(), absValue); appendCRLF(getDebugOutputStreamLogger()); return false; }
void writeBSplinePointData(OutputStream* outputStream, BSplinePointData* splinePointData) { float t = splinePointData->time; appendDecf(outputStream, t); appendString(outputStream, CSV_SEPARATOR); Point point = splinePointData->point; writePoint(outputStream, &point); float distance = splinePointData->length; appendDecf(outputStream, distance); appendString(outputStream, CSV_SEPARATOR); float orientation = splinePointData->orientation; appendDecf(outputStream, orientation); println(outputStream); }
bool convertFloatTest2(void) { signed long value = -40000; float result = (float) value; appendCRLF(getDebugOutputStreamLogger()); appendString(getDebugOutputStreamLogger(), "convertFloatTest2\n"); appendString(getDebugOutputStreamLogger(), "NORMAL=-40000.0000"); appendCRLF(getDebugOutputStreamLogger()); appendString(getDebugOutputStreamLogger(), "RESULT="); appendDecf(getDebugOutputStreamLogger(), result); appendCRLF(getDebugOutputStreamLogger()); return false; }
void appendStringAndDecf(OutputStream* stream, const char* s, float value) { appendString(stream, s); appendDecf(stream, value); }