energy change

This commit is contained in:
sun
2019-07-25 09:21:08 +08:00
parent c934aa111c
commit b8c6a1671c
6 changed files with 17 additions and 12 deletions

View File

@@ -51,7 +51,7 @@ void Energy::sendTarget(Serial &serial, float x, float y, float z) {
time_t t = time(nullptr);
if (last_time != t) {
last_time = t;
// cout << "fps:" << fps << ", (" << x << "," << y << "," << z << ")" << endl;
cout << "Energy: fps:" << fps << ", (" << x << "," << y << "," << z << ")" << endl;
fps = 0;
}
fps += 1;
@@ -87,7 +87,7 @@ void Energy::sendTarget(Serial &serial, float x, float y, uint16_t z, uint16_t u
time_t t = time(nullptr);
if (last_time != t) {
last_time = t;
cout << "energy fps:" << fps << ", (" << x << "," << y << "," << z << "," << u << ")" << endl;
cout << "Energy: fps:" << fps << ", (" << x << "," << y << "," << z << "," << u << ")" << endl;
fps = 0;
}
fps += 1;