Use IQS62X sensor and move motor by detected angle
Dependencies: DRV8830 IQS62x IQSDisplayTerminal UIT_ACM1602NI mbed
Fork of Nucleo_ACM1602_I2C_DC by
Diff: main.cpp
- Revision:
- 10:ef379cbc0004
- Parent:
- 9:b58e7d72a91c
- Child:
- 11:80b6c5d77073
--- a/main.cpp Mon Oct 02 19:12:02 2017 +0000
+++ b/main.cpp Mon Oct 02 19:38:45 2017 +0000
@@ -195,7 +195,9 @@
lspeed= mvalL.ReturnMotorVol(cnt, sw_in[0],sw_in[1]);
rspeed= -mvalR.ReturnMotorVol(cnt, sw_in[2],sw_in[3]);
+
motorL.speed(lspeed);
+ wait_ms(1);
motorR.speed(rspeed);
//motorL.speed(0.5);
//motorR.speed(0.3);
