added gy80 dcm
Dependencies: mbed DCM_AHRS_GY80 PID MMA8451Q
Fork of quadCommand by
Diff: quadCommand/motor/motor.cpp
- Revision:
- 45:088885f4a13d
- Parent:
- 38:9f33129afce2
- Child:
- 55:bca9c9e92da6
--- a/quadCommand/motor/motor.cpp Mon Jun 10 01:52:57 2013 +0000 +++ b/quadCommand/motor/motor.cpp Mon Jun 10 02:12:02 2013 +0000 @@ -27,7 +27,7 @@ /*the motor based on passed in percent value of speed. */ /*************************************************************************/ -void motor::setSpeed( int value ) +void motor::setSpeed( float value ) { // Is the value to small? if( value < 0 ) // Yup, just set to 0. @@ -77,7 +77,7 @@ /* */ /*************************************************************************/ -int motor::getSpeed() +float motor::getSpeed() { return currentSpeed; } \ No newline at end of file