zero torque and encoder

Dependencies:   MX28 PID mbed

Fork of LSM9DS1_project_5_zerotorque by Chen Wei Ting

Revision:
0:c23e915f255b
diff -r 000000000000 -r c23e915f255b encoder.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/encoder.h	Sun Aug 05 13:15:56 2018 +0000
@@ -0,0 +1,23 @@
+#ifndef _ENCODER_H_
+#define _ENCODER_H_
+
+#include "mbed.h"
+
+extern void init_SPI_encoder();
+extern void init_encoder();
+extern void angle_measure();
+extern int angle_count(unsigned short,unsigned short);
+
+extern DigitalOut encoder_cs;
+extern SPI spi_encoder;
+
+extern unsigned short encoder_value;
+extern unsigned short angle;
+extern unsigned short angle_old;
+extern int angle_dif;
+extern int a_dif;
+extern int Angle;
+extern unsigned short k;
+
+
+#endif
\ No newline at end of file