View unanswered posts | View active topics It is currently Thu Oct 02, 2014 6:49 am






Reply to topic  [ 5 posts ] 
code writing help 
Author Message
Rookie

Joined: Wed Oct 13, 2010 12:27 am
Posts: 4
Post code writing help
could one of u geniuses help me write this code


The purpose of the LDR’S are to track the sun light and turn the solar panels 1 degree every 15 mins. Then after it has completed a course of 8 hours it should come back to its original position it was the previous day. (at night time).



3. The solar panels are already tilted to 15 degrees and it only need the LDR’S to be programmed to move 1 degree every 15 mins for an course of 8 hours. That’s all when it comes to programming the tracker.


Wed Oct 13, 2010 12:40 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3223
Location: Rotterdam, The Netherlands
Post Re: code writing help
Perhaps if you show us what you've done so far, we can point you in the right direction.

- Xander

_________________
| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]


Wed Oct 13, 2010 2:12 am
Profile WWW
Rookie

Joined: Wed Oct 13, 2010 12:27 am
Posts: 4
Post Re: code writing help
Hi Xander
I'm have no idea where to start....I just started this unit in school and this was an assignment the lecturer wanted us to get info from the internet and do.....since i've never done any coding i'm stuck bigtime.....I have no idea how he expects us to do this without teaching us anything?....I didnt think it would be agood idea to make a fuss since he will be marking my final paper ....if u could atleast give me a rought idea i coould try modifyng it. cheers for your help


Wed Oct 13, 2010 4:12 am
Profile
Site Admin
Site Admin

Joined: Tue May 15, 2007 9:02 am
Posts: 405
Post Re: code writing help
A good place to start learning how to program the Cortex is here: http://www.education.rec.ri.cmu.edu/products/teaching_robotc_cortex/index.html

Also, you can check out the Sample Programs in ROBOTC by going to File > Open Sample Program. You'll find lots of examples on how to use the sensors, motors, ect.

_________________
Jesse Flot
CMU Robotics Academy
ROBOTC Support


Wed Oct 13, 2010 9:15 am
Profile
Site Admin
Site Admin

Joined: Thu Jul 05, 2007 12:45 pm
Posts: 35
Location: Carnegie Mellon
Post Re: code writing help
Maddy,

Another place to look is in the sample programs.

There are lots of sample programs that have all of the comments built into them.

I think that it is great for new programmers to begin to learn to program by looking at other peoples code. The fact that these programs include all of the comments explaining what each line of code does will really help you.

Good luck!


Fri Oct 15, 2010 11:08 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 5 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


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.