DoubleCoilGun
Fork of CoilGun by
Diff: coilgun.cpp
- Revision:
- 12:7cc6aeaa4bf8
- Parent:
- 11:49959d33916f
--- 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){