From: kanja Date: Thu, 19 Sep 2013 11:23:28 +0000 (+0900) Subject: キャリブレーションしなくてもある程度動くように初期値を調整 X-Git-Url: http://git.osdn.net/view?p=tondenhei%2Fet2013.git;a=commitdiff_plain;h=078c24d66551228b65b5e9adf07ee13ab17043e9 キャリブレーションしなくてもある程度動くように初期値を調整 --- diff --git a/ETBalanceRunner.cpp b/ETBalanceRunner.cpp index 47d2855..f531b78 100644 --- a/ETBalanceRunner.cpp +++ b/ETBalanceRunner.cpp @@ -11,7 +11,7 @@ namespace ecrobot{ ETBalanceRunner::ETBalanceRunner(Motor& motorL, Motor& motorR, GyroSensor& gyro, Nxt& nxt) : m_motorL(motorL), m_motorR(motorR), m_gyro(gyro), m_nxt(nxt), - m_bInitialized(false), m_gyrooffset(610), m_bException(false), m_msec(0) + m_bInitialized(false), m_gyrooffset(590), m_bException(false), m_msec(0) { } ETBalanceRunner::~ETBalanceRunner(void) diff --git a/ETLinePos.cpp b/ETLinePos.cpp index 6a94c5f..0906863 100644 --- a/ETLinePos.cpp +++ b/ETLinePos.cpp @@ -4,7 +4,7 @@ namespace ecrobot{ ETLinePos::ETLinePos(LightSensor& light) - : m_light(light), m_black(0), m_white(1000) + : m_light(light), m_black(276), m_white(459) { } ETLinePos::~ETLinePos(void)