harurobo_mbed_undercarriage_sub
Maxon_setting.h
- Committer:
- yuki0701
- Date:
- 2018-12-22
- Revision:
- 0:9b75a5e505d0
File content as of revision 0:9b75a5e505d0:
#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