Project aiming to make a self-controlled solar reflector
Dependencies: Accelerometer LCD Inverter Algorithm MotorDriver Anemometer GUI ArduinoJson Misc Definitions Pushbutton WebSocketClient temp_fan
Diff: main.cpp
- Revision:
- 22:6c8535dab84a
- Parent:
- 21:e9978d9823fe
- Child:
- 23:5dff9aed3727
--- a/main.cpp Wed Mar 24 23:02:37 2021 +0000 +++ b/main.cpp Wed Mar 24 23:17:31 2021 +0000 @@ -75,6 +75,16 @@ t.start(); //Start timer t_disp.start(); if (flag_eth){gui.getSunAngle();} +if (flag_eth){ + topL = "ETHERNET"; + botL = "CONNECTED"; + lcd.LCD_display(topL, botL); +} +else{ + topL = "ETHERNET"; + botL = "NOT CONNECTED"; + lcd.LCD_display(topL, botL); +} wait_us(1000000); topL = "PUT SENSORS IN"; @@ -563,6 +573,7 @@ //////////////////////////////////////////////////////////////////////// case OP_ATRACK:{ flag_aTrack = !flag_aTrack; + gui.activeTracking(flag_aTrack); if (flag_eth){gui.windSpeed(ane.getWind());} fan.checkTemp(&mode);if(mode != OP_ATRACK){break;} topL = "TRACKING MODE:";