View unanswered posts | View active topics It is currently Wed Jul 23, 2014 12:04 pm






Reply to topic  [ 8 posts ] 
Suggestion: New page/site or forum topic 
Author Message
Rookie

Joined: Tue Feb 26, 2008 4:41 pm
Posts: 27
Post Suggestion: New page/site or forum topic
Hey everybody,

It occured to me that it would be really useful for novice and rookie users (like myself!) to have a searchable website of catagorised snippets of simple code and information that people can input as they learn along the way. Such as:

Code:
while (nMotorRunState != RunSateIdle)
{
}


Is a great way of waiting for (doing nothing until) a motor to reach its target.

And:

"nMotorEncoderTarget can only be written to, it cannot be read from"


Both of these would be obvious to a more advanced user but to a beginner things like:

Code:
while (nMotorEncoder != nMotorEncoderTarget)
{
   //do something here
}


'Should' work. Maybe thats a bad example but you get the drift!

I think it would be a great help - I'd love some feedback on the idea.

Maybe you're thinking that that's the point of the forum anyway but I think generally people ask questions and get specific answers. What if you worked out a simple problem in your code, would you post it?

Well, there it is! Lay it on me!

Oli


Fri Mar 14, 2008 11:09 am
Profile
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:44 am
Posts: 439
Location: Pittsburgh, PA
Post 
Hey Oli, that seems like a neat idea. Do you want more of a "neat code tips that may be useful" area or more like a searchable help documentation that if you typed in something like "nMotorPID" it would give you a list of documentation that contains "nMotorPID" in it? If it's the latter, we do have that in our latest builds which is going to improve the Help functionality greatly.

If it's the first, maybe I can create a special forum for it?

Let's see if anyone else has any input on it.

_________________
Vu Nguyen
Software Training Development Team | Webmaster
Need more support? Use the ROBOTC Ticketing system

Robotc.net| Robomatter Store | Robotics Academy | CS2N


Fri Mar 14, 2008 4:07 pm
Profile
Rookie

Joined: Tue Feb 26, 2008 4:41 pm
Posts: 27
Post 
Hi Vu, thanks for your input!

I can definitely see a searchable help being put to good use. Though I think the the help as it is is pretty good; well catagorised and contains thorough explanations of what each 'function' does.

What I think might be missing is, as you say, 'neat code tips':

Its not always clear what the simplest way of using the code is - or how to just get to a specific goal (like the encoder target example in my previous post) as there are often many many routes (some of which wont work).

I think the help could do with a few more examples of use (but I would imagine these being 'code' instead of 'goal' focused).

The most fruitful method would probably come from novice users' learnings - little things that can keep you debugging for days!

To summarize - yes! a forum as you describe is the basis of my proposal.

Hope that made sense, I look forward to getting some feedback!

Oli


Sat Mar 15, 2008 4:33 pm
Profile
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post 
great idea!
That's even the point that's missing in RobotC help:
code snippets!
to EVERY topic!
with hyper links to RELATED code snippets and topics!

(BTW: I mayself made the same mistake with nmotorencoder :oops: - and never understood why it didn't work! ! :oops: :oops: )

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}


Mon Mar 17, 2008 2:57 pm
Profile
Guru
User avatar

Joined: Sat Mar 01, 2008 12:52 pm
Posts: 1030
Post 
(deleted, wrong topic)

_________________
regards,
HaWe aka Ford
#define S sqrt(t+2*i*i)<2
#define F(a,b) for(a=0;a<b;++a)
float x,y,r,i,s,j,t,n;task main(){F(y,64){F(x,99){r=i=t=0;s=x/33-2;j=y/32-1;F(n,50&S){t=r*r-i*i;i=2*r*i+j;r=t+s;}if(S){PutPixel(x,y);}}}while(1)}


Last edited by Ford Prefect on Mon Aug 18, 2008 4:23 am, edited 1 time in total.



Tue Mar 18, 2008 5:16 am
Profile
Site Admin
Site Admin

Joined: Wed Jan 24, 2007 10:44 am
Posts: 439
Location: Pittsburgh, PA
Post 
I created forums for the 3 platform types: NXT, RCX, and IFI.

Let's help put this together now :)

_________________
Vu Nguyen
Software Training Development Team | Webmaster
Need more support? Use the ROBOTC Ticketing system

Robotc.net| Robomatter Store | Robotics Academy | CS2N


Tue Mar 18, 2008 10:24 am
Profile
Rookie

Joined: Tue Feb 26, 2008 4:41 pm
Posts: 27
Post 
Ah brilliant!

Thanks Vu.

Lets hope people understand the concept and it should be worthwhile!

Oli


Wed Mar 19, 2008 10:08 am
Profile
Moderator
Moderator
User avatar

Joined: Wed Jan 31, 2007 3:39 am
Posts: 299
Location: San Diego, California. USA
Post Re: Suggestion: New page/site or forum topic
Forum update is great, if you log out and come back in, your unread topics are still unread :-).

The admin/moderator text is red, makes us look scary. :lol:

Scott B-)

_________________
Mmmm Legos B-)

My Robot Projects:
http://www.freewebs.com/robotprojects/


Sun Aug 17, 2008 3:27 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 8 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.