12 std::int32_t pre_left_motor;
13 std::int32_t pre_right_motor;
18 void update(std::int32_t left_motor, std::int32_t right_motor);
24 float relativeAngleMean(std::int32_t current_left_motor, std::int32_t current_right_motor);
float relativeAngleMean(std::int32_t current_left_motor, std::int32_t current_right_motor)
左右モータの相対角度の平均値を計算する
void reset()
左右モータ角度の過去値を0にリセットする
float angularDifference(std::int32_t left_motor, std::int32_t right_motor)
左右モータ角度の差を計算する(右手系/反時計回りが正)
std::int32_t absoluteValueOfAngle(std::int32_t motor)
モータ角度の絶対値を計算する
float absoluteAngleMean(std::int32_t left_motor, std::int32_t right_motor)
左右モータの絶対角度の平均値を計算する
void update(std::int32_t left_motor, std::int32_t right_motor)
左右モータ角度の過去値を現在値へ更新する