Chen Wei Ting
/
LSM9DS1_project_5_zerotorque
zero torque and encoder
encoder.h
- Committer:
- JJting
- Date:
- 2018-08-14
- Revision:
- 8:9c3b291b3288
- Parent:
- 0:c23e915f255b
File content as of revision 8:9c3b291b3288:
#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