NagaokaRoboticsClub_mbedTeam / ikarashiCAN

Dependencies:   DataControl

Files at this revision

API Documentation at this revision

Comitter:
ikarashikota
Date:
Fri Sep 09 07:17:01 2022 +0000
Parent:
2:05d0790d0fc6
Child:
4:d4c9f57a98c6
Commit message:
:-):-):-)

Changed in this revision

ikarashiCAN.h Show annotated file Show diff for this revision Revisions of this file
--- a/ikarashiCAN.h	Fri Aug 26 14:25:54 2022 +0000
+++ b/ikarashiCAN.h	Fri Sep 09 07:17:01 2022 +0000
@@ -33,7 +33,7 @@
 }
 void add(){
 
-    led != led;
+    led = !led;
 
     data++;
     ican1.setData(data);
@@ -79,7 +79,7 @@
     /** 送信するデータをセットする関数
      *
      * 一度送信するデータをセットします。
-     * @typedef T 無の型です。一旦値を保持するための型
+     * @typedef T 一旦値を保持するための型
      * @param _data 一旦値を保持する変数
      */
     template <class T>
@@ -120,6 +120,7 @@
     /** attach関数
      *
      * recieve関数のattachバージョン。データが送信されたときに自動で受信します。
+     * @attention mbed-os5以上だとバグるみたいです。mbed2を使うか、素のrecieve関数を使ってください
      */
     void startRecieve();