Help needed with joystick

I need to make an app that will control a car using arduino. When sending signals with a joystick to move the car it doesn't work. What's wrong with this code?




Stay in Screen1 for Bluetooth projects.

Switching screens breaks the connection.

I know but it's supposed to be connected in the screen that it is right now.