Permalink
Browse files

Problem found, Winch_Unit_Test now works

  • Loading branch information...
1 parent 15b134b commit 14f82453c33eff454be59126a3915f3d53578091 @Fumon Fumon committed Apr 12, 2011
Showing with 7 additions and 7 deletions.
  1. +1 −1 Winch_Unit_test/Winch_Unit_test.pde
  2. +6 −6 winchtesttest/winchtesttest.pde
View
2 Winch_Unit_test/Winch_Unit_test.pde
@@ -3,7 +3,7 @@
#define DEBUG 0
//Winch Constants
-#define WinchHomeSwitch 8 //Homing Endstop
+#define WinchHomeSwitch A1 //Homing Endstop
#define loweringtime 2000 //Time to lower the winch before raising it again in milliseconds
#define loweringDirection FORWARD
#define raisingDirection BACKWARD
View
12 winchtesttest/winchtesttest.pde
@@ -37,10 +37,10 @@ void setup() {
}
void loop() {
- winchMotor.run(FORWARD);
- delay(1000);
- winchMotor.run(BACKWARD);
- delay(1000);
- winchMotor.run(RELEASE);
- delay(1000);
+ winchMotor.run(FORWARD);
+ delay(1000);
+ winchMotor.run(BACKWARD);
+ delay(1001);
+ winchMotor.run(RELEASE);
+ delay(1000);
}

0 comments on commit 14f8245

Please sign in to comment.