Hello!! iam working on a hand gestured controlled robot and i have such code that works perfectly making the car go back and forth, right and left but the car doesn't stop when i stop tilting the MPU6050. i need to adjust it by adding a code to make stop!!
mpu.getMotion6(&ax, &ay, &az, &gx, &gy, &gz);
data = map(ax, -17000, 17000, 300, 400); //Send X axis data
data = map(ay, -17000, 17000, 100, 200); //Send Y axis data