View Single Post
  #2   Spotlight this post!  
Unread 30-06-2009, 23:13
ttldomination's Avatar
ttldomination ttldomination is offline
Sunny
no team
Team Role: Mentor
 
Join Date: Mar 2007
Rookie Year: 2007
Location: Roanoke, TX
Posts: 2,066
ttldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond reputettldomination has a reputation beyond repute
Re: What are RobotC tasks?

Dear Aaron,

I'm not sure exactly how much Java you know, but RobotC resembles Java on a great scale.

I'm not entirely sure of the tasks issue you're having as I have not worked with tasks myself.

And you definitely can create a function to return data. Generally, I used return data functions to do conversion for FTC joystick controls, but the way to do it is

int functioname (int a)

where the first 'int' is the type of data you are returning.
the 'functioname' is the name of the funciton
and the second 'int' is the type of data you are inputting.
and the 'a' is the name of the data you're inputting (for the particular function)

To return the value, in the function block, just type 'return b'

Where b is some value whose type matches the output type you set the function to.

Hope that helps. PM me for more.
__________________
1261: 2007-2012
1648: 2013-2014
5283: 2015