read encoder and Dynamixel angle

Dependencies:   MX28 PID mbed

Committer:
JJting
Date:
Sat Aug 04 05:55:50 2018 +0000
Revision:
0:2dbbe7d28fab
can read encoder and Dynamixel angle

Who changed what in which revision?

UserRevisionLine numberNew contents of line
JJting 0:2dbbe7d28fab 1 #ifndef _ENCODER_H_
JJting 0:2dbbe7d28fab 2 #define _ENCODER_H_
JJting 0:2dbbe7d28fab 3
JJting 0:2dbbe7d28fab 4 #include "mbed.h"
JJting 0:2dbbe7d28fab 5
JJting 0:2dbbe7d28fab 6 extern void init_SPI_encoder();
JJting 0:2dbbe7d28fab 7 extern void init_encoder();
JJting 0:2dbbe7d28fab 8 extern void angle_measure();
JJting 0:2dbbe7d28fab 9 extern int angle_count(unsigned short,unsigned short);
JJting 0:2dbbe7d28fab 10
JJting 0:2dbbe7d28fab 11 extern DigitalOut encoder_cs;
JJting 0:2dbbe7d28fab 12 extern SPI spi_encoder;
JJting 0:2dbbe7d28fab 13
JJting 0:2dbbe7d28fab 14 extern unsigned short encoder_value;
JJting 0:2dbbe7d28fab 15 extern unsigned short angle;
JJting 0:2dbbe7d28fab 16 extern unsigned short angle_old;
JJting 0:2dbbe7d28fab 17 extern int angle_dif;
JJting 0:2dbbe7d28fab 18 extern int a_dif;
JJting 0:2dbbe7d28fab 19 extern int Angle;
JJting 0:2dbbe7d28fab 20 extern unsigned short k;
JJting 0:2dbbe7d28fab 21
JJting 0:2dbbe7d28fab 22
JJting 0:2dbbe7d28fab 23 #endif