Go to Post Everyone has regrets in robotics- it's how you learn from them that makes all the difference. - Kevin Leonard [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Periodic Tasks Luke Pike NI LabVIEW 1 04-02-2009 01:14
RobotC tasks ratcateme Programming 1 07-11-2008 00:58
ROBOTC - Controller ShawnHanna Programming 1 30-01-2008 20:20
First logo and tasks Denman Rumor Mill 21 19-04-2005 11:32


All times are GMT -5. The time now is 13:44.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi