FM-test

Dependencies:   MODSERIAL mbed-rtos mbed

Fork of Master by Ohnishi_Gundan

Committer:
9uS7
Date:
Mon Sep 15 04:05:56 2014 +0000
Revision:
13:3f0505bbe284
Parent:
3:12e1f116ea42
add fmStop and fmRestart

Who changed what in which revision?

UserRevisionLine numberNew contents of line
9uS7 0:4f07ba929908 1 #ifndef _INC_MY_CONTROL
9uS7 0:4f07ba929908 2 #define _INC_MY_CONTROL
9uS7 0:4f07ba929908 3
9uS7 0:4f07ba929908 4 #include "mbed.h"
9uS7 0:4f07ba929908 5
9uS7 1:e1cfb5850088 6 #define red_v 0.01
9uS7 1:e1cfb5850088 7 #define center_pos 0.80
9uS7 1:e1cfb5850088 8 #define late_time 0.3
9uS7 1:e1cfb5850088 9 #define zeroPWM 0.17
9uS7 0:4f07ba929908 10
9uS7 3:12e1f116ea42 11 #define MOTOR_PULL 0x30
9uS7 3:12e1f116ea42 12 #define MOTOR_LOOSE 0x31
9uS7 3:12e1f116ea42 13 #define MOTOR_OPEN 0x32
9uS7 3:12e1f116ea42 14 #define MOTOR_BRAKE 0x33
9uS7 3:12e1f116ea42 15
9uS7 2:c610e1a7fbcd 16 void motorSetup(void);
9uS7 2:c610e1a7fbcd 17
9uS7 0:4f07ba929908 18 void pull(float); //pull motor(power) power:0~1
9uS7 0:4f07ba929908 19 void loose(float); //loose motor(power) power:0~1
9uS7 1:e1cfb5850088 20 void brake(void); //brake motor()
9uS7 1:e1cfb5850088 21 void open(void); //open motor()
9uS7 0:4f07ba929908 22
9uS7 3:12e1f116ea42 23 void motor( char, float ); //motor(function,power) function:MOTOR_XX power:0~1
9uS7 3:12e1f116ea42 24
9uS7 2:c610e1a7fbcd 25 void resetPos(void);
9uS7 2:c610e1a7fbcd 26
9uS7 3:12e1f116ea42 27 void getSensor(float*,float*); //getSensor(&ir,&fsr);
9uS7 3:12e1f116ea42 28
9uS7 0:4f07ba929908 29 #endif