Dual Brushless Motor ESC, 10-62V, up to 50A per motor. Motors ganged or independent, multiple control input methods, cycle-by-cycle current limit, speed mode and torque mode control. Motors tiny to kW. Speed limit and other parameters easily set in firmware. As used in 'The Brushless Brutalist' locomotive - www.jons-workshop.com. See also Model Engineer magazine June-October 2019.
Dependencies: mbed BufferedSerial Servo PCT2075 FastPWM
Update 17th August 2020 Radio control inputs completed
Diff: main.cpp
- Revision:
- 17:cc9b854295d6
- Parent:
- 16:d1e4b9ad3b8b
--- a/main.cpp Tue Jun 09 09:20:19 2020 +0000 +++ b/main.cpp Sun Aug 16 14:13:19 2020 +0000 @@ -202,13 +202,13 @@ return "1.0.y2020.m05.d21\0"; // Version string, readable using 'ver' serial command } -bool read_temperature (float & t) { +/*bool read_temperature (float & t) { // pc.printf ("test param temp = %7.3f\r\n", t); if (!temp_sensor_exists) return false; t = temp_sensor; return true; -} +}*/ void setVI_A (double v, double i) { @@ -448,6 +448,11 @@ RC_chan_2.set_chanmode (user_settings.rd(RCIN2), user_settings.rd(RCIN2REVERSE)) ; } +void rcins_report () { + pc.printf ("RC1 pulsewidth %d, period %d, pulsecount %d\r\n", RC_chan_1.pulsewidth(), RC_chan_1.period(), RC_chan_1.pulsecount()); + pc.printf ("RC2 pulsewidth %d, period %d, pulsecount %d\r\n", RC_chan_2.pulsewidth(), RC_chan_2.period(), RC_chan_2.pulsecount()); + pc.printf ("\r\n"); +} int main() // Programme entry point {