View unanswered posts | View active topics It is currently Wed Dec 11, 2019 8:10 pm






Reply to topic  [ 2 posts ] 
Joystick values not updating 
Author Message
Rookie

Joined: Tue Feb 03, 2015 12:30 am
Posts: 1
Post Joystick values not updating
Hi - I am trying to use a joystick to control servo motors. I wrote a very simple program as below. Problem is that although the joystick values in the Basic Joystick screen update, the variable values (e.g. joystick.joy1_y1) do not update when seen in debug mode.
Please help! What am I doing wrong?

#include "JoystickDriver.c"
task main()
{
int y1value = 0;
int y2value = 0;

while(true)
{
getJoystickSettings(joystick);

y1value = joystick.joy1_y1;
y2value = joystick.joy1_y2;

}

}


Tue Feb 03, 2015 12:42 am
Profile
Rookie

Joined: Tue May 12, 2015 10:12 am
Posts: 1
Post Re: Joystick values not updating
Hello,
I don't know what is the solution for this kind of issues, in fact I have exactly the same problem even if I use simple programs so as to try to use a motor..
So if you found the solution since february, is it possible to know where is the matter ? Thank you, and if it's not solved I hope we can find the solution soon..


Tue May 12, 2015 10:22 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.