here is my code and when i first start our robot with this code it worked smoothly but than I used the navx sensor etc. after i deployed some codes after that it didn’t work actually the right part did not work robot was moving forward and reverse but the right left command did not work I reimaged the roborio I deployed new codes but it doesn’t work but when i use the right joystick i can see that its value changes on the drivestation how can i fix that
You don’t use the imaging tool for the Rio2 like you would a Rio1. Make sure you’re following the directions: Imaging your roboRIO 2 — FIRST Robotics Competition documentation
i dont wann to image it i want to format it where am I going to do that roborio imaging tool right?
If you’re referring to the “format target” language used on the Imaging Tool, then its the same thing. Please follow the steps on that page. I highly recommend reading that page in its entirety before trying anything.
you say if i follow this steps it is the same thing with formatting am i right. The reason why I do this is that the getrightx command does not work when I drive the robot with differential drive, but when I do getleftx, the robot works and progresses, we only define both the right-left and forward-backward commands in one place, and I do not want this. do you have any advice about this
If your code does anything at all, even the wrong thing, then the rio image is almost certainly not your problem, and reformatting is not your solution.
If you want help debugging your code, we need a lot more information. Specifically, we need to see your code (ideally as a link to github or similar source control system), a description of what is on your robot (motors, etc) and whats connected to what (i.e. CAN IDs, PWM ports used, etc), what programming language was used, and so on.
Also, you should either change the title and move this to a more programming-focused category, or just create a new post there with that information.