Adjusting Code

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!!

void loop(void){

mpu.getMotion6(&ax, &ay, &az, &gx, &gy, &gz);
.
data[0] = map(ax, -17000, 17000, 300, 400); //Send X axis data
data[1] = map(ay, -17000, 17000, 100, 200); //Send Y axis data

}

You will need to post your full code. Please read How to use this forum - please read., specifically point #7 about posting code and point #8 about attachments if the code is too big (9000 character limit for a post).

The sub-title of forum section where you posted this is "For problems with Arduino itself, NOT your project" (emphasis added); I have asked a moderator to move it.

Thread moved.