- Don't think anything was changed or updated.... simply viewed the class

Dependents:   Component_Test_Interface

Fork of BridgeDriver by Jason T

Revision:
8:36e2cd31ccf3
Parent:
7:7dabd934ebe4
Child:
9:00e8b7afb2c7
--- a/BridgeDriver.h	Thu Jul 24 21:48:32 2014 +0000
+++ b/BridgeDriver.h	Mon Jul 28 18:17:29 2014 +0000
@@ -6,7 +6,7 @@
 #define BRIDGEDRIVER_H
 
 
-#define PWM_PERIOD 0.001
+#define DEFAULT_PWM_PERIOD 0.0002
 
 //pin definitions
 #define PIN_CH1 P1_18 //hardware PWM1[1]
@@ -58,6 +58,7 @@
             //speed from 0 to 1, speed of 0 will coast or brake depending on setting of _braking
             
         void diagnostic(TextLCD_I2C *lcd);
+        void setPWMperiod(float newPWMperiod);
         
         
         
@@ -74,6 +75,7 @@
         int8_t  _dir[4];        //dir of 1 means lower # ch is driving, dir of -1 means higher number ch is driving
         uint8_t _braking[4]; 
         uint8_t _oldLedState;   //for setLed functions. Kept external to overload function
+        float _PWMperiod;
         
         void enableCh(uint8_t ch, uint8_t en);
         void setLed(uint8_t ch, uint8_t en);