etrobocon2018 feat.KatLab  770af34cce41ae9c30c41303275e1add2daae0c3 (with uncommitted changes)
 全て クラス 名前空間 ファイル 関数 変数 列挙型 列挙値 フレンド マクロ定義 ページ
マクロ定義 | 関数
lifter_check.cpp ファイル
#include "Controller.h"
#include "Lifter.h"
#include "app.h"
#include "ev3api.h"
#include "util.h"
#include "kernel_cfg.h"
lifter_check.cpp の依存先関係図:

[ソースコード]

マクロ定義

#define DEBUG
 
#define _debug(x)   (x)
 

関数

void main_task (intptr_t unused)
 
void bt_task (intptr_t unused)
 

マクロ定義詳解

#define _debug (   x)    (x)

lifter_check.cpp24 行目に定義があります。

#define DEBUG

ファイル名 : app.c

概要 : ETロボコンのTOPPERS/HRP2用Cサンプルプログラム

注記 : Bluetooth通信リモートスタート機能付き

lifter_check.cpp21 行目に定義があります。

関数詳解

void bt_task ( intptr_t  unused)

概要 : Bluetooth通信によるリモートスタート。 Tera Termなどのターミナルソフトから、 ASCIIコードで1を送信すると、リモートスタートする。 引数 : unused 返り値 : なし

lifter_check.cpp64 行目に定義があります。

65 {
66  while(1) {
67  uint8_t c = fgetc(g_bluetooth); /* 受信 */
68  switch(c) {
69  case '1':
70  g_bluetooth_command = 1;
71  break;
72  default:
73  break;
74  }
75  fputc(c, g_bluetooth); /* エコーバック */
76  }
77 }
void main_task ( intptr_t  unused)

lifter_check.cpp33 行目に定義があります。

34 {
35  /* Open Bluetooth file */
36  g_bluetooth = ev3_serial_open_file(EV3_SERIAL_BT);
37  assert(g_bluetooth != NULL);
38 
39  /* Bluetooth通信タスクの起動 */
40  act_tsk(BT_TASK);
41 
42  msg_f("ET-Robocon2018", 1);
43  msg_f(" create from github.com/korosuke613/etrobocon2018", 2);
44 
45  Controller controller;
46  Lifter lifter{ controller };
47 
48  lifter.liftUp();
49  lifter.liftDown();
50 
51  ter_tsk(BT_TASK);
52  fclose(g_bluetooth);
53 
54  ext_tsk();
55 }
void msg_f(const char *str, int32_t line)
Definition: util.cpp:17
走行体のアームを操作するクラス。
Definition: Lifter.h:20

呼び出し関係図: