frequency change?

Fork of BridgeDriver by Jason T

Revision:
7:7dabd934ebe4
Parent:
5:c1f32ce026f6
Child:
8:36e2cd31ccf3
diff -r d4afd3284a04 -r 7dabd934ebe4 BridgeDriver.h
--- a/BridgeDriver.h	Thu Jul 24 21:30:41 2014 +0000
+++ b/BridgeDriver.h	Thu Jul 24 21:48:32 2014 +0000
@@ -27,10 +27,10 @@
      
     
     public:
-        enum Bridges{ BRIDGE_A, 
-                  BRIDGE_B, 
-                  BRIDGE_C, 
-                  BRIDGE_D 
+        enum  Motors{ MOTOR_A, 
+                  MOTOR_B, 
+                  MOTOR_C, 
+                  MOTOR_D 
                 };
         
         
@@ -39,21 +39,21 @@
         ~BridgeDriver();
         
         void enablePwm(uint8_t enPwmA, uint8_t enPwmB, uint8_t enPwmC, uint8_t enPwmD);
-        void enablePwm(Bridges bridge, uint8_t enPwm);
+        void enablePwm(Motors motor, uint8_t enPwm);
 
         
         void enableBraking(uint8_t enBrakeA, uint8_t enBrakeB, uint8_t enBrakeC, uint8_t enBrakeD);  //1 - drives output to GND when off; 0 - floats output when off
-        void enableBraking(Bridges bridge, uint8_t enBrake);
+        void enableBraking(Motors motor, uint8_t enBrake);
         
         int forceBrake(uint8_t ch);             //force a specific channel to GND without changing braking default
-        int forceBrake(Bridges bridge);     //force a specific motor to GND without changing braking default
+        int forceBrake(Motors motor);     //force a specific motor to GND without changing braking default
         int forceFloat(uint8_t ch);             //force a specific channel to float without changing braking default
-        int forceFloat(Bridges bridge);     //force a specific motor to float without changing braking default
+        int forceFloat(Motors motor);     //force a specific motor to float without changing braking default
         
         int drive(uint8_t state);
         int drive(uint8_t ch, uint8_t on);
-        float drive(Bridges bridge, float speed); //speed from -1 to 1, speed of 0 will coast or brake depending on setting of _braking
-        float drive(Bridges bridge, int8_t dir, float speed); 
+        float drive(Motors motor, float speed); //speed from -1 to 1, speed of 0 will coast or brake depending on setting of _braking
+        float drive(Motors motor, int8_t dir, float speed); 
             //dir: 1=fwd,  -1=rev, 0=brake (irregardless of setting of _braking
             //speed from 0 to 1, speed of 0 will coast or brake depending on setting of _braking