harurobo_mbed_undercarriage_sub

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Maxon_setting.h Source File

Maxon_setting.h

00001 #ifndef HARUROBO2019_MAXON_SETTING_H
00002 #define HARUROBO2019_MAXON_SETTING_H
00003 #include "mbed.h"
00004 #include "stdarg.h"
00005 
00006 #define DEBUG_MODE                              // compile as debug mode (comment out if you don't use)
00007 #ifdef DEBUG_MODE
00008 #define DEBUG_PRINT                             // enable debug_printf
00009 #endif
00010 
00011 static int16_t m1=0, m2=0, m3=0, m4=0;  //int16bit = int2byte
00012 
00013 void UserLoopSetting();
00014 
00015 void DAC_Write(int16_t data, DigitalOut* DAC_cs);
00016 
00017 void MotorControl(int16_t val_md1, int16_t val_md2, int16_t val_md3, int16_t val_md4);
00018 
00019 
00020 #ifdef DEBUG_MODE
00021 void Debug_Control(); //m1,m2,m3,m4の値がこのライブラリ内の変数となっているので恐らくこのままではこの関数は動作しない。改良の必要あり。
00022 #endif
00023 
00024 
00025 #ifdef DEBUG_PRINT
00026 void debug_printf(const char* format,...);
00027 #endif
00028 
00029 #endif