Use IQS62X sensor and move motor by detected angle
Dependencies: DRV8830 IQS62x IQSDisplayTerminal UIT_ACM1602NI mbed
Fork of Nucleo_ACM1602_I2C_DC by
Diff: MotorMove.h
- Revision:
- 9:b58e7d72a91c
- Parent:
- 8:f7ad1d7176ba
--- a/MotorMove.h Sat Sep 30 16:43:51 2017 +0000
+++ b/MotorMove.h Mon Oct 02 19:12:02 2017 +0000
@@ -13,19 +13,21 @@
float vol_decel[DECEL_SIZE];
float vol_accel[ACCEL_SIZE];
float down_ratio;
+ int bflag_up;
+ int bflag_down;
- void up_motor_set (int time_counter, int speed);
- void down_motor_set (int time_counter, int speed);
+ void up_motor_set (int time_counter, float speed);
+ void down_motor_set (int time_counter, float speed);
float ReturnMotorVol(int time_counter, int sw_flag1,int sw_flag2);
private:
int start_time_count;
float Voltage;
+ int accel_count;
+ int decel_count;
- int bflag_up;
- int bflag_down;
};
\ No newline at end of file
