16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-20 06:49:19 +02:00

motiontelemetry

This commit is contained in:
milek7
2018-01-18 18:15:03 +01:00
parent 416d3a2e0e
commit ea8171d9b0
4 changed files with 101 additions and 11 deletions

View File

@@ -780,12 +780,16 @@ void Global::ConfigParse(cParser &Parser)
}
else if (token == "motiontelemetry")
{
Parser.getTokens(4);
Parser.getTokens(8);
Global::motiontelemetry_conf.enable = true;
Parser >> Global::motiontelemetry_conf.proto;
Parser >> Global::motiontelemetry_conf.address;
Parser >> Global::motiontelemetry_conf.port;
Parser >> Global::motiontelemetry_conf.updatetime;
Parser >> Global::motiontelemetry_conf.includegravity;
Parser >> Global::motiontelemetry_conf.fwdposbased;
Parser >> Global::motiontelemetry_conf.latposbased;
Parser >> Global::motiontelemetry_conf.axlebumpscale;
}
} while ((token != "") && (token != "endconfig")); //(!Parser->EndOfFile)
// na koniec trochę zależności