![]() |
[FTC]: Joystick Issues
Hi. As our team starts to work on some side projects over the summer, I've run into an issue with the joystick controller. To test it, I created a simple debugging program, but I still can't figure out why the joystick fails to work.
No matter where the joystick is, RobotC (code) seems to think it's still at (0,0), however, when bringing up the joystick control debug window, I can clearly see that RobotC can see the joystick movement. I've tested this in several different programs so far. I just wanted to make sure that I wasn't making some sort of systematic error in the code, so here is an example of the issue. Code:
#include "JoystickDriver.c" |
Re: [FTC]: Joystick Issues
Try
if (joystick.joy1_x1 != 0 || joystick.joy1_y1 != 0) You are doing a bitwise OR with | and you want to do a logical OR || |
Re: [FTC]: Joystick Issues
That solved it, thanks!
|
| All times are GMT -5. The time now is 18:22. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi