OSDN Git Service

キャリブレーションしなくてもある程度動くように初期値を調整
authorkanja <hoge@hoge.hg>
Thu, 19 Sep 2013 11:23:28 +0000 (20:23 +0900)
committerkanja <hoge@hoge.hg>
Thu, 19 Sep 2013 11:23:28 +0000 (20:23 +0900)
ETBalanceRunner.cpp
ETLinePos.cpp

index 47d2855..f531b78 100644 (file)
@@ -11,7 +11,7 @@ namespace ecrobot{
 \r
 ETBalanceRunner::ETBalanceRunner(Motor& motorL, Motor& motorR, GyroSensor& gyro, Nxt& nxt)\r
        : m_motorL(motorL), m_motorR(motorR), m_gyro(gyro), m_nxt(nxt),\r
-       m_bInitialized(false), m_gyrooffset(610), m_bException(false), m_msec(0)\r
+       m_bInitialized(false), m_gyrooffset(590), m_bException(false), m_msec(0)\r
 {\r
 }\r
 ETBalanceRunner::~ETBalanceRunner(void)\r
index 6a94c5f..0906863 100644 (file)
@@ -4,7 +4,7 @@
 namespace ecrobot{\r
 \r
 ETLinePos::ETLinePos(LightSensor& light)\r
-       : m_light(light), m_black(0), m_white(1000)\r
+       : m_light(light), m_black(276), m_white(459)\r
 {\r
 }\r
 ETLinePos::~ETLinePos(void)\r