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.
Dependencies: mbed CANBuffer Watchdog MODSERIAL mbed-rtos xbeeRelay IAP
Fork of SystemManagement by
Diff: Libs/DC_DC/DC_DC.h
- Revision:
- 36:0afc0fc8f86b
- Parent:
- 30:91af74a299e1
- Child:
- 38:8efacce315ae
--- a/Libs/DC_DC/DC_DC.h Wed Jan 07 03:36:43 2015 +0000
+++ b/Libs/DC_DC/DC_DC.h Thu Jan 22 07:58:51 2015 +0000
@@ -20,13 +20,12 @@
FailStart=64,
FailStop=128,
};
-const int DC_DC_FILTER_TAPS = 10;
+const int DC_DC_FILTER_TAPS = 50;
class DC_DC{
public:
DC_DC(PinName _dcdcPin, PinName _dcdcCurrent, PinName _fan1, PinName _fan2, PinName _pump1, PinName _pump2, float period, float slew);
float getCurrent() { return current; }
- void zeroCurrent();
void set(bool on);
void setPwm(enum Channel_T chan, float duty);
float readPwm(enum Channel_T chan);
@@ -50,7 +49,7 @@
Timer stopTimer;
volatile bool starting;
volatile bool stopping;
-
+ volatile bool isControlPinOn;
DigitalOut dcdcControl;
AnalogIn dcdcCurrent;
volatile float currentOffset;
