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.
Fork of CoilGun by
Revision 12:7cc6aeaa4bf8, committed 2016-09-17
- 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 |
--- 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){