Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DS1307 EthernetInterface TextLCD WebSocketClient mbed-rtos mbed
Fork of Hoofdprogramma by
Revision 6:c95e2d561599, committed 2014-12-18
- Comitter:
- R0375604
- Date:
- Thu Dec 18 09:29:46 2014 +0000
- Parent:
- 5:1c493bae26fc
- Child:
- 7:0e4e558f57fe
- Commit message:
- Versie, MET RGB stappen En Servo stappen; Zonder Ethernet;
Changed in this revision
| Hoofdprogramma.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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)
{
