Eindprogramma met alle functies
Dependencies: DS1307 EthernetInterface TextLCD WebSocketClient mbed-rtos mbed
Fork of Hoofdprogramma by
Diff: Hoofdprogramma.cpp
- Revision:
- 6:c95e2d561599
- Parent:
- 5:1c493bae26fc
- Child:
- 7:0e4e558f57fe
--- a/Hoofdprogramma.cpp Tue Dec 16 20:26:57 2014 +0000 +++ b/Hoofdprogramma.cpp Thu Dec 18 09:29:46 2014 +0000 @@ -218,9 +218,9 @@ G.write(0.25f); // 25% duty cycle B.write(0.75f); // 75% duty cycle } - else if(InstelTemp1 - 4 > temp1) + else if(InstelTemp1 - 3 > temp1) { - R.write(0.00f); // 0% duty cycle Paars + R.write(0.00f); // 0% duty cycle Blauw G.write(0.00f); // 0% duty cycle B.write(0.50f); // 50% duty cycle } @@ -256,15 +256,15 @@ //---------------------Stappen naar rechts -> Te WARM----------------------------------------------- if(InstelTemp3 + 1 < temp3 && temp3 <= InstelTemp3 + 2) { - Servo = (120 * 0.000511 + 0.026); // rechts + Servo = (110 * 0.000511 + 0.026); // rechts } else if(InstelTemp3 + 2 < temp3 && temp3 <= InstelTemp3 + 3) { - Servo = (140 * 0.000511 + 0.026); // rechts + Servo = (130 * 0.000511 + 0.026); // rechts } else if(InstelTemp3 + 3 < temp3 && temp3 <= InstelTemp3 + 4) { - Servo = (160 * 0.000511 + 0.026); // rechts + Servo = (150 * 0.000511 + 0.026); // rechts } else if(InstelTemp3 + 4 < temp3) { @@ -273,15 +273,15 @@ //---------------------Stappen naar links -> Te KOUD----------------------------------------------- else if(InstelTemp3 - 1 > temp3 && temp3 >= InstelTemp3 - 2) { - Servo = (80 * 0.000511 + 0.026); // links + Servo = (70 * 0.000511 + 0.026); // links } else if(InstelTemp3 - 2 > temp3 && temp3 >= InstelTemp3 - 3) { - Servo = (60 * 0.000511 + 0.026); // links + Servo = (50 * 0.000511 + 0.026); // links } else if(InstelTemp3 - 3 > temp3 && temp3 >= InstelTemp3 - 4) { - Servo = (40 * 0.000511 + 0.026); // links + Servo = (30 * 0.000511 + 0.026); // links } else if(InstelTemp3 - 4 > temp3) {