2022_Ateam_MOTORprogramをscrp_slaveでメインマイコンからコントローラー状況を読み取れるように改良。 また、モータに0以外のpwmが送られている場合に基盤付属のledが点灯するようにした。

Dependencies:   SBDBT arrc_mbed BNO055

Revision:
12:894e5ac49810
Parent:
11:264f992664b0
diff -r 264f992664b0 -r 894e5ac49810 library/function.hpp
--- a/library/function.hpp	Tue Mar 22 00:35:37 2022 +0000
+++ b/library/function.hpp	Fri Apr 08 07:35:55 2022 +0000
@@ -10,12 +10,13 @@
 int l_y_component;
 int l2_num;
 int r2_num;
+int right_phase;
 bool up;
 bool down;
 bool l1;
 bool r1;
 bool auto_start;
-bool stop;
+int stop;
 bool auto_move;
 bool redZone = 0;
 
@@ -109,4 +110,5 @@
     return true;
 }
 
+
 #endif
\ No newline at end of file