DoubleCoilGun

Dependents:   Telliskivi2_2014

Fork of CoilGun by Reiko Randoja

Files at this revision

API Documentation at this revision

Comitter:
Reiko
Date:
Sat Sep 17 11:50:59 2016 +0000
Parent:
11:49959d33916f
Commit message:
Shorter discharge kicks

Changed in this revision

coilgun.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 49959d33916f -r 7cc6aeaa4bf8 coilgun.cpp
--- a/coilgun.cpp	Fri Nov 21 18:09:22 2014 +0000
+++ b/coilgun.cpp	Sat Sep 17 11:50:59 2016 +0000
@@ -71,7 +71,7 @@
     kickActive = false;
 
     if (!chipActive && state != discharging){ //Used when discharging 
-        chargePin = 1; // Don't start charging again
+        chargePin = 1; // autocharge
         state = idle; //(let state stay "discharging")
     }
 }
@@ -93,7 +93,7 @@
     chipActive = false;
 
     if (!kickActive && state != discharging){ //Used when discharging 
-        chargePin = 1; // Don't start charging again
+        chargePin = 1; // autocharge
         state = idle; //(let state stay "discharging")
     }
     
@@ -129,7 +129,7 @@
 }
 
 void Coilgun::dischargeKick(void) {
-    kick(300, 0, 0, 0, false);
+    kick(200, 0, 0, 0, false);
 }
 
 void Coilgun::changeState(State new_state){