![]() |
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. |
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.
|
Re: EasyC Wish List
Quote:
You can write any number 0-999 to the OI Display You can also turn on or off the LED's |
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.
|
Re: EasyC Wish List
Quote:
|
Re: EasyC Wish List
Quote:
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. |
Re: EasyC Wish List
Quote:
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. |
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. |
Re: EasyC Wish List
Good call on switch. Would have been helpful for our team as well.
|
Re: EasyC Wish List
How about more help on the use of libraries? I never did figure out how to use "math."
|
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.... - |
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). |
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! |
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 |
Re: EasyC Wish List
Quote:
Sorry, I didn't know how to do this before. |
| All times are GMT -5. The time now is 02:50. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi