#include <EtRobocon2018.h>
main的なクラス
EtRobocon2018.h の 22 行目に定義があります。
EtRobocon2018::EtRobocon2018 |
( |
| ) |
|
コンストラクタ。各センサー等の初期化を行う
TODO Courseクラスに移す
EtRobocon2018.cpp の 29 行目に定義があります。
void speakerSetVolume(uint8_t volume)
void EtRobocon2018::loop |
( |
| ) |
|
実際にマシンを動かすときの処理
EtRobocon2018.cpp の 56 行目に定義があります。
59 auto brightness = target_brightness;
60 #ifdef IS_RIGHT_COURSE
62 rightCourse.run(brightness, light_black, light_white, light_gray);
65 leftCourse.run(brightness, light_black, light_white, light_gray);
void EtRobocon2018::start |
( |
int |
bluetooth_command | ) |
|
タッチセンサが押されたときに行われる処理
EtRobocon2018.cpp の 35 行目に定義があります。
38 #ifdef IS_RIGHT_COURSE
40 firstCode = ui.getFirstCode();
43 ui.setBrightnessWithColor(light_white,
"white");
44 ui.setBrightnessWithColor(light_black,
"black");
45 ui.setBrightnessWithColor(light_gray,
"gray");
46 target_brightness = (light_black + light_white) / 2;
47 controller.
printDisplay(7,
"Brightness W:%d, B:%d, T:%d", light_white, light_black,
走行体が走り出す前にユーザが入力するインターフェースを提供するクラス
void printDisplay(int8_t row, const char *format,...)
void EtRobocon2018::waitStarter |
( |
int |
bluetooth_command | ) |
|
スイッチを入れたときに行われる処理
EtRobocon2018.cpp の 69 行目に定義があります。
73 if(bluetooth_command == 1) {
void tslpTsk(int16_t time)
bool isPressed(void) const
このクラス詳解は次のファイルから抽出されました: