Skip to content

Commit

Permalink
update: ブロックdeトレジャー攻略前に経路計画を呼び出す処理を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
miyashita64 committed Nov 7, 2023
1 parent 00ef6c6 commit be22a85
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions module/EtRobocon2023.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,18 @@ void EtRobocon2023::start()
AreaMaster doubleLoopAreaMaster(Area::DoubleLoop, isLeftCourse, isLeftEdge, targetBrightness);
AreaMaster blockDeTreasureAreaMaster(Area::BlockDeTreasure, isLeftCourse, isLeftEdge,
targetBrightness);

// LAPゲートを通過する
lineTraceAreaMaster.run();
// 走行状態をlap(LAPゲート通過)に変更
setState("lap");

// ダブルループエリアを走行する
doubleLoopAreaMaster.run();

// ブロックdeトレジャーを攻略する
snprintf(buf, BUF_SIZE, "cd rear_camera_py && make hunt-%c", isLeftCourse? 'l' : 'r');
system(buf);
blockDeTreasureAreaMaster.run();

// 走行状態をfinish(ゴールライン通過(処理停止))に変更
Expand Down

0 comments on commit be22a85

Please sign in to comment.