yei

Dependencies:   interface mbed enc_1multi calPID motorout KondoServoLibrary

Fork of cat18_operate by Catch the GIANT Caplico!

Committer:
shimizuta
Date:
Fri Jun 22 08:07:09 2018 +0000
Revision:
0:c3a72fe24137
Child:
1:cc056c41ae30
add document

Who changed what in which revision?

UserRevisionLine numberNew contents of line
shimizuta 0:c3a72fe24137 1 /**@file
shimizuta 0:c3a72fe24137 2 *template
shimizuta 0:c3a72fe24137 3 */
shimizuta 0:c3a72fe24137 4 #include <mbed.h>
shimizuta 0:c3a72fe24137 5 #include "debug.h"//DEBUG("",変数);でデバッグ。
shimizuta 0:c3a72fe24137 6 //setup関連を集めた
shimizuta 0:c3a72fe24137 7 void Setups();
shimizuta 0:c3a72fe24137 8 void Tests();
shimizuta 0:c3a72fe24137 9 int main()
shimizuta 0:c3a72fe24137 10 {
shimizuta 0:c3a72fe24137 11 DEBUG("setup start\r\n");
shimizuta 0:c3a72fe24137 12 Setups();
shimizuta 0:c3a72fe24137 13 DEBUG("main start");
shimizuta 0:c3a72fe24137 14 while(1) {
shimizuta 0:c3a72fe24137 15 Tests();
shimizuta 0:c3a72fe24137 16 }
shimizuta 0:c3a72fe24137 17 }
shimizuta 0:c3a72fe24137 18
shimizuta 0:c3a72fe24137 19 void Setups()
shimizuta 0:c3a72fe24137 20 {
shimizuta 0:c3a72fe24137 21 }
shimizuta 0:c3a72fe24137 22
shimizuta 0:c3a72fe24137 23 void Tests()
shimizuta 0:c3a72fe24137 24 {
shimizuta 0:c3a72fe24137 25 static int count = 0;
shimizuta 0:c3a72fe24137 26 count ++;
shimizuta 0:c3a72fe24137 27 if (count > 100000) {
shimizuta 0:c3a72fe24137 28 count =0;
shimizuta 0:c3a72fe24137 29
shimizuta 0:c3a72fe24137 30 }
shimizuta 0:c3a72fe24137 31 }