Strana 68 z 73
Poznámky redaktora
getResponseBuffer(1);
uint32_t rawI ((uint32_t)node.readHoldingRegisters(0x0100, 28) node.getResponseBuffer(3);
uint32_t rawP ((uint32_t)node.getResponseBuffer(5);
uint32_t rawE ((uint32_t)node.68
float pitch atan2(ay, sqrt(ax az)) 180.0 PI;
float roll atan2(-ax, az) 180.getResponseBuffer(7);
U rawU 10000.getResponseBuffer(4) 16) |
node.close();
Serial.0 PI;
// --------- Modbus ---------
float 0;
if (node.0;
}
// --------- NTC ---------
float tBat ntcTemp(NTC_BATTERY_PIN);
float tAmb ntcTemp(NTC_AMBIENT_PIN);
float tMot ntcTemp(NTC_MOTOR_PIN);
// --------- CSV řádek ---------
String String(now) COL_SEP +
floatComma(U, COL_SEP +
floatComma(I, COL_SEP +
floatComma(P, COL_SEP +
floatComma(E, COL_SEP +
String(gx) COL_SEP String(gy) COL_SEP +
String(gz) COL_SEP +
String(axRaw) COL_SEP String(ayRaw) COL_SEP
+ String(azRaw) COL_SEP +
floatComma(ax, COL_SEP +
floatComma(ay, COL_SEP +
floatComma(az, COL_SEP +
floatComma(pitch, COL_SEP +
floatComma(roll COL_SEP +
floatComma(tBat, COL_SEP +
floatComma(tAmb, COL_SEP +
floatComma(tMot, 1);
// --------- zápis ---------
if (sdAvailable) {
File SD.0;
I rawI 10000.getResponseBuffer(2) 16) |
node.ku8MBSuccess) {
uint32_t rawU ((uint32_t)node.0;
E rawE 10.println(s);
f.getResponseBuffer(6) 16) |
node.0;
P rawP 10000.println("Uloženo: s);
} else karta pravděpodobně zmizela
Serial.open(curFile, FILE_APPEND);
if (f) {
f.getResponseBuffer(0) 16) |
node.println("Chyba zápisu karta vytažena?");
sdAvailable false;
}
}