Projekt code für Hfecter
Dependencies: PM2_Libary PM2_Example_PES_board
Diff: main.cpp
- Revision:
- 16:5d4a58eecf55
- Parent:
- 15:1ebd2ee7b1c8
--- a/main.cpp Thu May 13 16:28:04 2021 +0000 +++ b/main.cpp Thu May 13 16:33:38 2021 +0000 @@ -121,8 +121,8 @@ BatteryLED = 1;//Anzeige LED situation = SENSOR;//Weiter zu Sensor if(batt < 3) {//Ist der Batteriestand unter 10% - fehler = F_BATTERIE;//Weitergabe Fehler - situation = FEHLER;//Gerät sperren + Fehler = F_BATTERIE;//Weitergabe Fehler + situation = Fehler;//Gerät sperren } } else { BatteryLED = 0;//LED AUS @@ -174,21 +174,20 @@ } - +/* programmteil zuständig für tests led = !led; - /* do only output via serial what's really necessary (this makes your code slow)*/ + // do only output via serial what's really necessary (this makes your code slow) printf("%3.3f\n, %3.3f\n, %3.3f\n, %3d\n,%3d\n ", movement, weight, batt, timer_1); - /* ------------- stop hacking ------------- -------------*/ - // int T_loop_ms = duration_cast<milliseconds>(loop_timer.elapsed_time()).count(); // int dT_loop_ms = Ts_ms - T_loop_ms; // thread_sleep_for(dT_loop_ms); + */ thread_sleep_for(10); }