Go to Post Weird. On a forum where people talk about robots, we have a robot trying to talk to people. - dellagd [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 22-03-2006, 13:34
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: EasyC Wish List

Thanks for the feed back keep it coming!

On #4 request you can use a user code block and do
/*
--YOUR CODE--
*/

and it comment out everthing in the middle.
  #17   Spotlight this post!  
Unread 04-04-2006, 23:44
gt6872c gt6872c is offline
Curtis Sharif
FRC #0469 (Las Guerrillas)
Team Role: Engineer
 
Join Date: Oct 2001
Rookie Year: 2001
Location: West Bloomfield, MI
Posts: 4
gt6872c is an unknown quantity at this point
Re: EasyC Wish List

Is it possible to write to any of the other User Bytes [besides User_Byte1 using the SetUserDisplay() function] that are sent back to the OI from the RC using EasyC? Thanks in advance.
  #18   Spotlight this post!  
Unread 05-04-2006, 11:27
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: EasyC Wish List

Quote:
Originally Posted by gt6872c
Is it possible to write to any of the other User Bytes [besides User_Byte1 using the SetUserDisplay() function] that are sent back to the OI from the RC using EasyC? Thanks in advance.

You can write any number 0-999 to the OI Display
You can also turn on or off the LED's
  #19   Spotlight this post!  
Unread 05-04-2006, 14:18
Gdeaver Gdeaver is offline
Registered User
FRC #1640
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 2001
Location: West Chester, Pa.
Posts: 1,370
Gdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond reputeGdeaver has a reputation beyond repute
Re: EasyC Wish List

My biggest wish for Easy-C has nothing to do with the IDE. It's the painfully slow down load that irritated us last Thurs. and Fri. while we working on the ball feeder code. I thought it might be the serial-USB driver but its the same with different chip and drivers. It took a matter of seconds to change the parameters, add a block and move stuff around. It really proved the advantage of a graphic IDE. We could have gotten things debugged much sooner if it wasn't so slow on the down load. Over all I say that Easy-C really did make the programming part of the season easy. Much better than watching the students battle MPLAB all season last year. Thanks intelliteck and First for putting A visual IDE in the kit this year.
  #20   Spotlight this post!  
Unread 11-04-2006, 07:32
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: EasyC Wish List

Quote:
Originally Posted by Gdeaver
My biggest wish for Easy-C has nothing to do with the IDE. It's the painfully slow down load that irritated us last Thurs. and Fri. while we working on the ball feeder code. I thought it might be the serial-USB driver but its the same with different chip and drivers. It took a matter of seconds to change the parameters, add a block and move stuff around. It really proved the advantage of a graphic IDE. We could have gotten things debugged much sooner if it wasn't so slow on the down load. Over all I say that Easy-C really did make the programming part of the season easy. Much better than watching the students battle MPLAB all season last year. Thanks intelliteck and First for putting A visual IDE in the kit this year.
If you have a laptop with a serial port on it, the downloads go about 3X faster than through the USB adapter. I have an older laptop that I'm keeping around for exactly that reason.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
  #21   Spotlight this post!  
Unread 12-04-2006, 00:35
P1h3r1e3d13's Avatar
P1h3r1e3d13 P1h3r1e3d13 is offline
Unregistered User
FRC #0295
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2006
Location: San Diego/Granite Bay
Posts: 46
P1h3r1e3d13 is an unknown quantity at this point
Re: EasyC Wish List

Quote:
Originally Posted by gt6872c
Is it possible to write to any of the other User Bytes [besides User_Byte1 using the SetUserDisplay() function] that are sent back to the OI from the RC using EasyC? Thanks in advance.
It took me a while to get the following figured out, so here's what (I think) I know about your question:

I do not think there is anything called User_Byte1 that exists by default in EasyC.
Nor am I aware of any User Bytes other than the one that shows up as uXXX on the OI.

The "hard" C default code includes code that controls the OI LEDs based on joystick and button inputs (and maybe it controls the User Byte - I don't remember). An EasyC project, by default, does not send anything to the UB or the OI LEDs. All you can do is essentially the same as you can do in "hard" C: add OILED() and SetUserByte() commands. You can, of course, set them to variables.

If this doesn't address your question, perhaps a little more detail on what you are trying to do might help me/us.

Last edited by P1h3r1e3d13 : 12-04-2006 at 00:40.
  #22   Spotlight this post!  
Unread 18-04-2006, 05:14
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 592
BradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant futureBradAMiller has a brilliant future
Re: EasyC Wish List

Quote:
Originally Posted by gt6872c
Is it possible to write to any of the other User Bytes [besides User_Byte1 using the SetUserDisplay() function] that are sent back to the OI from the RC using EasyC? Thanks in advance.
As delivered you can write write values to the LEDs or the numeric display. EasyC looks at the setting of the display mode switch on the OI and either sends whatever you set for the single bit (LEDs) display or it sends the value you set for the numeric user display. So if you press the display select button on the OI and cycle to the U - user display setting, you'll see the number that you put in the SetUserDisplay function. If you set it to anything else, you'll see the LEDs have the values set with the SETOILED function.

Now, if you want to get more data back to the OI, you can connect a laptop to the dashboard port, then you can send lots of data back. We built a display with an image of a car dashboard and rendered dials for the tach and speedometer. The dials indicated the robot speed and ball pitcher speed. And there were a bunch of other indicators for low battery, etc.
__________________
Brad Miller
Robotics Resource Center
Worcester Polytechnic Institute
  #23   Spotlight this post!  
Unread 26-04-2006, 07:48
gabrielse's Avatar
gabrielse gabrielse is offline
Registered User
FRC #1748 (Lab Rats)
Team Role: Teacher
 
Join Date: Jun 2005
Rookie Year: 2004
Location: Baltimore
Posts: 55
gabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to behold
Re: EasyC Wish List

I wish the next version of EasyC has a built in implementation of a switch statement.

Our student programmer this year had a hard time following a mess of nested if statements.

She learned how to make state diagrams and to implement them using switch statements. She had a much easier time debugging and writing code with switch statements.

We are training new programmers with EasyC. A "non-user code" switch statement would really help. Thanks.
  #24   Spotlight this post!  
Unread 02-05-2006, 21:46
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: EasyC Wish List

Good call on switch. Would have been helpful for our team as well.
  #25   Spotlight this post!  
Unread 04-05-2006, 00:02
P1h3r1e3d13's Avatar
P1h3r1e3d13 P1h3r1e3d13 is offline
Unregistered User
FRC #0295
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2006
Location: San Diego/Granite Bay
Posts: 46
P1h3r1e3d13 is an unknown quantity at this point
Re: EasyC Wish List

How about more help on the use of libraries? I never did figure out how to use "math."
  #26   Spotlight this post!  
Unread 04-05-2006, 18:08
Chris_Elston's Avatar
Chris_Elston Chris_Elston is offline
Controls Engineer
AKA: chakorules
FRC #1501 (Team THRUST)
Team Role: Engineer
 
Join Date: Feb 2004
Rookie Year: 2001
Location: Huntington, Indiana
Posts: 751
Chris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond reputeChris_Elston has a reputation beyond repute
Re: EasyC Wish List

I wish in the next version we could "record" all the varibles in our program for some many CPU loops. Like define 100 loops. Then hit record.....

Let the CPU loop 100 times, and store all the varibles in our project into a database. Then for DEBUG MODE, we can hit "play" and step though each CPU loop, pausing and stepping through our code like a cpu pointer, only when we hover over the varible, it will display the value of that varible, and type of varible during play back mode.....

In other words, I know we probablly can't have online debugging, pausing, stepping, but the ability to record so many CPU cycles, then play back would be really SWEET....of course, any If statements would excute correctly based on the value of that varible pulled from the recorded session.


and please do fix the project printing....It would be nice to print out ALL the functions like in a project print, instead of each one....



-
__________________
Team T.H.R.U.S.T. 1501
Download all of our past robot's source code here:Repository

Favorite CD quote:
"That can't be their 'bot. not nearly enough (if any) rivets to be a 1501 machine." ~RogerR: Team #1369
  #27   Spotlight this post!  
Unread 05-05-2006, 02:35
P1h3r1e3d13's Avatar
P1h3r1e3d13 P1h3r1e3d13 is offline
Unregistered User
FRC #0295
Team Role: Alumni
 
Join Date: Jan 2006
Rookie Year: 2006
Location: San Diego/Granite Bay
Posts: 46
P1h3r1e3d13 is an unknown quantity at this point
Re: EasyC Wish List

That would be really, really cool.
As a (poor) substitute (and you probably already figured as much anyway), I did something like that by putting a PrintScreen for each variable (or a printf for several) at the end of the loop (or after each time you change the variable), and incrementing a counter variable each loop. Then change your main While(1) loop to While(counter <=100) (or just make it a For() loop).
  #28   Spotlight this post!  
Unread 31-05-2006, 10:02
gabrielse's Avatar
gabrielse gabrielse is offline
Registered User
FRC #1748 (Lab Rats)
Team Role: Teacher
 
Join Date: Jun 2005
Rookie Year: 2004
Location: Baltimore
Posts: 55
gabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to behold
Re: EasyC Wish List

EasyC is great. I'm using it to teach some students programming for next year. They are learning to debug. However, they aren't at the "user code" phase of their programming development yet. I have three suggestions that I believe would make that process easier.

1. In order to debug it really helps to print out multiple variables on a single line so the output is real-time readable. It is possible to use usercode to make PrintToScreen print two variables on the same line. It would be more convenient if it wasn't necessary to use usercode.

Earlier in this thread it was suggested that the newline character was made optional. That would do the trick, or an option to add multiple variables would work.

2. The ability to comment out an entire if statement. It is possible to comment out the contents of an if statement, but it would be more convenient if you could comment out an if statement and all its contents at the same time.

3. The ability to easily cut & paste a function from one EasyC program to another. This step is a precurser to creating a library. If this already possible, please let me know how to do it.

Thanks!
  #29   Spotlight this post!  
Unread 31-05-2006, 10:34
tacman1123 tacman1123 is offline
Registered User
AKA: Tac Tacelosky
FRC #1900
Team Role: Mentor
 
Join Date: May 2006
Rookie Year: 2006
Location: Washington, DC
Posts: 17
tacman1123 is an unknown quantity at this point
Send a message via AIM to tacman1123
Re: EasyC Wish List

It would be nice if the UserCode block were not just a single, 60 character line, but rather a larger, multi-line input window, that preserved the formatting.

The ability to type directly into the C program would be even better, but I realize that's more difficult to do.

Tac
  #30   Spotlight this post!  
Unread 13-06-2006, 08:53
gabrielse's Avatar
gabrielse gabrielse is offline
Registered User
FRC #1748 (Lab Rats)
Team Role: Teacher
 
Join Date: Jun 2005
Rookie Year: 2004
Location: Baltimore
Posts: 55
gabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to beholdgabrielse is a splendid one to behold
Re: EasyC Wish List

Quote:
Originally Posted by gabrielse
3. The ability to easily cut & paste a function from one EasyC program to another. This step is a precurser to creating a library. If this already possible, please let me know how to do it.
Go to: Options --> Add Existing Function

Sorry, I didn't know how to do this before.
Closed Thread


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
Stocking up on parts *wish list Greg Needel Technical Discussion 3 13-12-2006 21:28
Dean's Holiday Wish List DUCKIE Dean Kamen's Inventions 5 06-12-2006 22:59
2006 KOP Wish List Andrew Blair Kit & Additional Hardware 33 19-05-2006 17:08
FIRST Wish List Justin Montois FRC Game Design 29 11-05-2005 15:48
New Regional Wish List Anne Shade General Forum 61 28-04-2003 21:48


All times are GMT -5. The time now is 18:24.

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