| 名称 | RaspberryPi ソフトウェア 関数レファレンス |
|---|---|
| 番号 | MIRSMG5D-SOFT-0006 |
| 版数 | 最終更新日 | 作成 | 承認 | 改訂記事 |
|---|---|---|---|---|
| A01 | 2024.03.25 | 牛丸真司 | 小谷進 | 初版 |
| 戻り値 | 0(成功) or それ以外(失敗) |
| sw_f | 前スイッチの測定値(LOW or HIGH) |
| sw_l | 左スイッチの測定値(LOW or HIGH) |
| sw_r | 右スイッチの測定値(LOW or HIGH) |
| 戻り値 | 0(成功) or それ以外(失敗) |
| 戻り値 | 0(成功) or それ以外(失敗) |
| 戻り値 | 測定値[cm] (不正な値を得た場合は-1) |
| 戻り値 | 測定値[cm] (不正な値を得た場合は-1) |
| 戻り値 | 0(成功) or それ以外(失敗) |
| serial_data | 受信データ |
| 戻り値 | 0(成功) or それ以外(失敗) |
| serial_data | 送信データ |
| command_data | 受信データ |
| 戻り値 | 0(成功) or それ以外(失敗) |
| command_data | 送信データ |
| serial_data | 入力データ |
| 戻り値 | 出力データ |
| middle_data | 入力データ |
| 戻り値 | 出力データ |
| middle_data | 入力データ |
| 戻り値 | 出力データ |
| command_data | 入力データ |
| 戻り値 | 出力データ |
| state | 走行モード |
| speed | 直進速度[cm/s] or 回転速度[deg/s] |
| dist | 直進距離[cm] or 回転角度[deg] |
| state | 走行モード |
| speed | 直進速度[cm/s] or 回転速度[deg/s] |
| dist | 直進距離[cm] or 回転角度[deg] |
| 戻り値 | 0(成功) or それ以外(失敗) |
| dist_l | 左タイヤ走行距離[cm] |
| dist_r | 右タイヤ走行距離[cm] |
| 戻り値 | 0(成功) or それ以外(失敗) |
| volt | 電圧[V] |
| 戻り値 | 0(成功) or それ以外(失敗) |
| dist | 正対補正距離[cm] |
| 戻り値 | 0(成功) or それ以外(失敗) |
| filename | ファイル名 |
| device | デバイス番号 |
| width | 幅[pixel] |
| height | 高さ[pixel] |
| 戻り値 | 0(成功) or それ以外(失敗) |
| device | デバイス番号 |
| ans | 数字 (取得する要素数はnumber.h内のNUM_LENにて設定) |
| dist | 撮影距離[cm] |
| 戻り値 | 認識した数字の個数 (エラー発生時は-1) |
| num | 数字データ |
| 戻り値 | 0(成功) or それ以外(失敗) |
| x_s | x座標[cm] |
| y_s | y座標[cm] |
| dir_s | 向き[deg] |
| dist | 直進距離[cm] |
| angle | 回転角度[deg] |
| dist | 正対補正距離[cm] |
| x_g | x座標[cm] |
| y_g | y座標[cm] |
| dir_g | 向き[deg] |
| 戻り値 | エリア名(1文字の英数でエリア名を与える) |