View unanswered posts | View active topics It is currently Fri Oct 30, 2020 3:59 am

Reply to topic  [ 2 posts ] 
Arrays? How should the syntax be? 
Author Message

Joined: Tue Apr 24, 2012 7:52 pm
Posts: 3
Post Arrays? How should the syntax be?
im trying to use arrays to save joystick moves using easyc and some user codes added.

for my arrays im using

int Joy1[1500];

i then set a variable n based on time

and i set to my array like this:

Joy1[n] = GetJoystickAnalog;

this should save a # between 127 and -127
i reset n to 0 then in a for loop:

i print to screen:

PrintToScreen ("J1:", Joy[n]);

i get realy weird huge #'s like -102154451 ect.

i think the problem is in the arrays but what am i doing wrong?

Thu Nov 01, 2012 5:01 pm
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 722
Post Re: Arrays? How should the syntax be?
Would you be able to post all of the code (using the
brackets) so we can see exactly what is going on? This will help us debug the program a bit more thoroughly. Thank you in advance.

Check out our Blog! And our Facebook page!
Need help? Take a look at our updated help documentation and the ROBOTC Forums.

Mon Nov 12, 2012 12:22 pm
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.