Dependents:   RobotBase

Revision:
1:48028dcad4e2
Parent:
0:91d31b26ae9e
Child:
2:0d9bb8e1876b
diff -r 91d31b26ae9e -r 48028dcad4e2 Robot.cpp
--- a/Robot.cpp	Thu Jul 02 00:58:51 2015 +0000
+++ b/Robot.cpp	Fri Aug 21 04:51:19 2015 +0000
@@ -2,12 +2,11 @@
 #include "Robot.h"
 #include "I2CDevice.h"
 
-Robot::Robot( int numOfI2CDevice ) : mNumOfI2CDevice( numOfI2CDevice ){
-}
-
-Robot::~Robot(){
-    delete[] mI2CDevice;
-}
+// Steering : I2CMotor * 4, I2CServo * 4    ----  8
+// ShootingSystem : I2CServo * 2            ----  2
+// XBee : XBee * 1                          ----  1
+// Shooter: Shooter * 1                     ----  1
+const int Robot::mNumOfI2CDevice = 12;
 
 void Robot::update(){
     readI2CDevice();
@@ -25,4 +24,4 @@
     for ( int i = 0; i < mNumOfI2CDevice; ++i ){
         mI2CDevice[ i ]->read();
     }
-}
\ No newline at end of file
+}