harurobo_mbed_undercarriage_sub

Revision:
0:9b75a5e505d0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Maxon_setting.h	Sat Dec 22 02:50:21 2018 +0000
@@ -0,0 +1,29 @@
+#ifndef HARUROBO2019_MAXON_SETTING_H
+#define HARUROBO2019_MAXON_SETTING_H
+#include "mbed.h"
+#include "stdarg.h"
+
+#define DEBUG_MODE                              // compile as debug mode (comment out if you don't use)
+#ifdef DEBUG_MODE
+#define DEBUG_PRINT                             // enable debug_printf
+#endif
+
+static int16_t m1=0, m2=0, m3=0, m4=0;  //int16bit = int2byte
+
+void UserLoopSetting();
+
+void DAC_Write(int16_t data, DigitalOut* DAC_cs);
+
+void MotorControl(int16_t val_md1, int16_t val_md2, int16_t val_md3, int16_t val_md4);
+
+
+#ifdef DEBUG_MODE
+void Debug_Control(); //m1,m2,m3,m4の値がこのライブラリ内の変数となっているので恐らくこのままではこの関数は動作しない。改良の必要あり。
+#endif
+
+
+#ifdef DEBUG_PRINT
+void debug_printf(const char* format,...);
+#endif
+
+#endif
\ No newline at end of file