STM3 ESC dual brushless motor controller. 10-60v, motor power rating tiny to kW. Ganged or independent motor control As used in 'The Brute' locomotive - www.jons-workshop.com
Dependencies: mbed BufferedSerial Servo FastPWM
DualBLS.h@3:ecb00e0e8d68, 2018-03-18 (annotated)
- Committer:
- JonFreeman
- Date:
- Sun Mar 18 08:17:56 2018 +0000
- Revision:
- 3:ecb00e0e8d68
- Parent:
- 2:04761b196473
- Child:
- 5:ca86a7848d54
Starting motors requires high-side mosfet drivers being enabled. Auto tickleup functions now included to switch high sides off and on again to charge high side supply capacitors (now 2u2, up from 100n)
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
JonFreeman | 2:04761b196473 | 1 | //#define POWER_OF_TWO 12 // Range is 4 to 13, is log2N |
JonFreeman | 2:04761b196473 | 2 | //typedef float ffty; // Choice of float or double float is HUGELY FASTER than double |
JonFreeman | 2:04761b196473 | 3 | const int HANDBRAKE = 0, |
JonFreeman | 2:04761b196473 | 4 | FORWARD = 8, |
JonFreeman | 2:04761b196473 | 5 | REVERSE = 16, |
JonFreeman | 2:04761b196473 | 6 | REGENBRAKE = 24; |
JonFreeman | 3:ecb00e0e8d68 | 7 | |
JonFreeman | 3:ecb00e0e8d68 | 8 | const double PI = 4.0 * atan(1.0), |
JonFreeman | 3:ecb00e0e8d68 | 9 | TWOPI = 8.0 * atan(1.0); |