16 navigator.
spin(35, angle_direction);
19 navigator.
spin(150, angle_direction);
24 navigator.
moveOnLine(250, target_brightness, 30,
true);
26 navigator.
spin(100,
true);
30 navigator.
moveOnLine(100, target_brightness, 30,
false);
35 navigator.
moveOnLine(100, target_brightness, 30,
false);
37 navigator.
spin(100,
false);
38 navigator.
moveOnLine(200, target_brightness, 30,
false);
40 navigator.
spin(100,
true);
44 navigator.
moveOnLine(100, target_brightness, 30,
false);
49 navigator.
moveOnLine(100, target_brightness, 30,
true);
50 navigator.
spin(100,
false);
51 navigator.
moveOnLine(200, target_brightness, 30,
true);
53 navigator.
spin(100,
true);
58 navigator.
moveOnLine(100, target_brightness, 30,
false);
63 navigator.
moveOnLine(100, target_brightness, 30,
true);
65 navigator.
spin(100,
false);
66 navigator.
moveOnLine(150, target_brightness, 30,
true);
72 navigator.
moveOnLine(250, target_brightness, 30,
true);
74 navigator.
spin(90,
true);
78 navigator.
moveOnLine(60, target_brightness, 30,
false);
83 navigator.
moveOnLine(100, target_brightness, 30,
false);
85 navigator.
spin(110,
false);
86 navigator.
moveOnLine(750, target_brightness, 30,
true);
void moveOnLine(float distance, std::int16_t target, std::int8_t pwm=20, bool is_leftside_line=true)
指定した距離だけライントレースする
void move(float distance, std::int8_t pwm=20)
指定した距離まで走行体を移動させる
void moveToColor(float distance, std::int16_t target_brightness, Color target_color, std::int8_t speed=20, bool is_leftside_line=true)
指定した距離分ライントレースして指定した色があると停止する
void liftDown(std::uint8_t angle, std::int8_t pwm=20)
void spin(float angle, bool clockwise=false, std::int8_t pwm=10)
指定した角度まで走行体を回転させる(基本左エッジ)
void block00()
アナログ数字が0,デジタル数字が0
void throwBlock(bool angle_direction=false)
リフターを使ってブロックを放って後ろを向く
void block01()
アナログ数字が0,デジタル数字が1
void liftUp(std::uint8_t angle, std::int8_t pwm=20)