Dependencies:   I2CMotor I2CServo Robot XBee

Dependents:   OBROT_ALL

Files at this revision

API Documentation at this revision

Comitter:
inst
Date:
Fri Nov 13 08:16:11 2015 +0000
Parent:
3:49d3d84b737d
Commit message:
;

Changed in this revision

I2CDevice.cpp Show annotated file Show diff for this revision Revisions of this file
Robot.lib Show annotated file Show diff for this revision Revisions of this file
XBee.lib Show annotated file Show diff for this revision Revisions of this file
--- a/I2CDevice.cpp	Wed Oct 14 06:01:14 2015 +0000
+++ b/I2CDevice.cpp	Fri Nov 13 08:16:11 2015 +0000
@@ -27,12 +27,13 @@
             return mI2C[ 0 ];
         }
     }
-    for ( int i = I2CDeviceID::ANGLE_MANAGER; i < Robot::mNumOfI2CDevice; ++i ){
-        // NOT Steering and XBee
+    for ( int i = I2CDeviceID::ANGLE_MANAGER; i < Robot::getNumOfI2CDevices(); ++i ){
+        // NOT ( Steering and XBee )
         if ( mAddress == OBROT::mI2CDeviceAddress[ i ] ){
             return mI2C[ 1 ];
         }
     }
     
+    // XBee
     return mI2C[ 2 ];
 }
--- a/Robot.lib	Wed Oct 14 06:01:14 2015 +0000
+++ b/Robot.lib	Fri Nov 13 08:16:11 2015 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/users/inst/code/Robot/#0d9bb8e1876b
+https://developer.mbed.org/users/inst/code/Robot/#4dbbd511a49d
--- a/XBee.lib	Wed Oct 14 06:01:14 2015 +0000
+++ b/XBee.lib	Fri Nov 13 08:16:11 2015 +0000
@@ -1,1 +1,1 @@
-https://developer.mbed.org/users/inst/code/XBee/#869012d317b5
+https://developer.mbed.org/users/inst/code/XBee/#115488d3ca1a