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

Committer:
JonFreeman
Date:
2018-03-18
Revision:
3:ecb00e0e8d68
Parent:
2:04761b196473
Child:
5:ca86a7848d54

File content as of revision 3:ecb00e0e8d68:

//#define POWER_OF_TWO 12     // Range is 4 to 13, is log2N
//typedef float ffty;     // Choice of float or double    float is HUGELY FASTER than double
const   int     HANDBRAKE   = 0,
                FORWARD     = 8,
                REVERSE     = 16,
                REGENBRAKE  = 24;

const   double      PI      = 4.0 * atan(1.0),
                    TWOPI   = 8.0 * atan(1.0);