Takahashi Shu / Mbed 2 deprecated 1-CAN-th2mot-mbed2-01_02

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
teriyaki
Date:
Thu Jan 14 07:48:02 2021 +0000
Parent:
3:43a6f6157fcf
Commit message:
Takahashi_0114

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Sep 17 07:09:17 2020 +0000
+++ b/main.cpp	Thu Jan 14 07:48:02 2021 +0000
@@ -27,7 +27,8 @@
 
 char c_sent=0, c_read=0;   // counters of sent and read
 char dseg[8]={0xFF, 0x01, 0x00, 0x64, 0x00, 0x80, 0x00, 0x00};  //data_segment
-
+char dseg[9]={0xff, 0x02, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};  //data segment_2
+ 
 //  byte manipu using the union Hoge, char MUST be unsigned.
 union Hoge{ unsigned char c[2]; uint16_t ii; };
 
@@ -62,6 +63,8 @@
        pc.scanf("%lf", &th);
 
        th2mot(th, id);
+       
+       
        wait(0.2);             // dummy wait 0.2[s]
        if(can1.read(msg)) {   // org=can2
           c_read++; led2 = !led2;
--- a/mbed.bld	Thu Sep 17 07:09:17 2020 +0000
+++ b/mbed.bld	Thu Jan 14 07:48:02 2021 +0000
@@ -1,1 +1,1 @@
-https://os.mbed.com/users/mbed_official/code/mbed/builds/3a7713b1edbc
\ No newline at end of file
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file