Go to Post You know, one year we need to stake out the AndyMark building for several weeks before Kickoff so we can see what the game pieces will be. Hidden webcam? :rolleyes: - DonRotolo [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 Rating: Thread Rating: 3 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 13-01-2006, 20:12
Nine9cracker's Avatar
Nine9cracker Nine9cracker is offline
Newbie in training
AKA: Felix hong
FRC #0368 (kika mana)
Team Role: Programmer
 
Join Date: Jan 2006
Location: Honolulu , HI
Posts: 11
Nine9cracker is an unknown quantity at this point
Easy C programming , Worth teaching?

Ok I been trying to program easy C from lab view and I came with a conclusion. It would be good but its not worth the time to teach the other programmers since we took a programing course during the winter break and are very use to programming the standard way(Mplab). So what do you guys feel about programming with lab view? Worth it or not?
__________________
Leela: They say Zapp Brannigan single-handedly saved the Octillion system from a horde of rampaging Killbots!
Fry: Wow.
Bender: A grim day for robotkind. Eh, but we can always build more Killbots.
Zapp: "Killbots? A trifle. It was simply a matter of outsmarting them."
Fry: "Wow, I never would've thought of that."
Zapp: "You see, killbots have a preset kill limit. Knowing their weakness, I sent wave after wave of my own men at them until they reached their limit and shut down."

Last edited by Nine9cracker : 13-01-2006 at 20:26.
  #2   Spotlight this post!  
Unread 13-01-2006, 20:52
rappo's Avatar
rappo rappo is offline
Drag and drop that for loop!
FRC #0696 (Circuit Breakers)
Team Role: Programmer
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Glendale, California
Posts: 49
rappo is a jewel in the roughrappo is a jewel in the roughrappo is a jewel in the roughrappo is a jewel in the rough
Re: Easy C programming , Worth teaching?

If you already know the language, it's probably not worth it - getting used to a whole new interface is time consuming, and you're probably better off sticking with what you know/learned how to do. But, if you're all new to programming languages in general, I guess EasyC is the way to go.
__________________
Team 696 Circuit Breakers
2006 LA Regional - Radio Shack Innovation in Control Award
  #3   Spotlight this post!  
Unread 13-01-2006, 20:56
artdutra04's Avatar
artdutra04 artdutra04 is offline
VEX Robotics Engineer
AKA: Arthur Dutra IV; NERD #18
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Greenville, TX
Posts: 3,078
artdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond repute
Re: Easy C programming , Worth teaching?

Quote:
Originally Posted by Nine9cracker
Ok I been trying to program easy C from lab view and I came with a conclusion. It would be good but its not worth the time to teach the other programmers since we took a programing course during the winter break and are very use to programming the standard way(Mplab). So what do you guys feel about programming with lab view? Worth it or not?
I just kinda picked up EasyC in just a few hours. For someone who has programmed before, it was mostly self-explanitory. For seasoned veterans at programming, I would recommend using EasyC for "prototyping" code. Since it uses the flowchart blocks for building its code, it can quickly be used to verify that a camera tracking or accelerometer function works. The drag and drop is a lot quicker than hand coding or copy/pasting it in MPLAB. Once your code works fine in EasyC, then I would suggest that veteran programmers move on and redo everything in MPLAB if they want. Or you can continue to use EasyC. It's really up to your own personal preference.
__________________
Art Dutra IV
Robotics Engineer, VEX Robotics, Inc., a subsidiary of Innovation First International (IFI)
Robowranglers Team 148 | GUS Robotics Team 228 (Alumni) | Rho Beta Epsilon (Alumni) | @arthurdutra

世上无难事,只怕有心人.
  #4   Spotlight this post!  
Unread 13-01-2006, 21:29
BradAMiller BradAMiller is offline
Registered User
AKA: Brad
#0190 ( Gompei and the Herd)
Team Role: Mentor
 
Join Date: Mar 2004
Location: Worcester, MA
Posts: 591
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: Easy C programming , Worth teaching?

Quote:
Originally Posted by Nine9cracker
Ok I been trying to program easy C from lab view and I came with a conclusion. It would be good but its not worth the time to teach the other programmers since we took a programing course during the winter break and are very use to programming the standard way(Mplab). So what do you guys feel about programming with lab view? Worth it or not?
If you like the EasyC style of programming but would prefer typing C programs into an editor you can program directly to the EasyC runtime system. The library is called WPILib and you can read about it here.

Currently the installable version is slightly messed up, but you can look at the document and the examples (they are essently the same as what you would write). I'll put up the real stuff Saturday with real downloadable example MPLab projects.

Brad
  #5   Spotlight this post!  
Unread 13-01-2006, 22:33
kevlarman kevlarman is offline
"why cant i install Linux?" guy
AKA: Roman Tetelman
None #0100
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2005
Location: Belmont, CA
Posts: 11
kevlarman is an unknown quantity at this point
Re: Easy C programming , Worth teaching?

I briefly looked at easyC, and it seems useful for teaching newer programmers, but it's hard to mix easyC code and code you wrote the regular way (copying and pasting is a great way to introduce bugs) because it completely changes the structure of the code. It also hides some useful features (like interupts, or being able to wait for less than one millisecond) while leaving in other things that would completely perplex newer programmers, for example the operator menu contains things like '^=' and '?:'. The big problem i have with it is you can't mix easyC and hand-written code because of the huge difference in structure.
  #6   Spotlight this post!  
Unread 13-01-2006, 23:32
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: Easy C programming , Worth teaching?

EasyC hides all the background work to make it easy to control sensors that
would have been other wise difficult or time consuming for programmers to integrate.
For instance you could have the camera and gyro working together
to drive the robot in 15 or so blocks of code.

I highly recommend everyone check out tutorial programs 6 & 7 they truly
show the power of EasyC and WPIlib over writing everything by hand.
While I can appreciate everyone who wants to code by hand, do all the
sensor timings and make the code so clean you can save that extra byte of
memory. There is a hard way and an easy way to accomplish the same goal.

When you get a flat tire you can change a tire with an impact gun or a tire iron in the end you get the same result.

Last edited by Kingofl337 : 13-01-2006 at 23:35.
  #7   Spotlight this post!  
Unread 14-01-2006, 20:49
binary_sandman's Avatar
binary_sandman binary_sandman is offline
Registered User
AKA: andrew sweet
FRC #1388 (Eagle robotics)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2003
Location: california
Posts: 12
binary_sandman is infamous around these parts
Re: Easy C programming , Worth teaching?

programing in c is so easy i never programed before and i picked it up in while programing last year. our programers have already finshed
drive moters
auton mode
just under 5 days
1388 all the way
  #8   Spotlight this post!  
Unread 14-01-2006, 21:37
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Re: Easy C programming , Worth teaching?

Quote:
Originally Posted by binary_sandman
programing in c is so easy i never programed before and i picked it up in while programing last year. our programers have already finshed
drive moters
auton mode
just under 5 days
1388 all the way
That is quite the arrogant statement. You are saying that you completed all the programming, without having a robot to test it on, in five days? I doubt it.

With that being said. I would probably only use EasyC for the flowchart capabilities. But even that is over-kill, why not just use a flowcharting program?
__________________
http://www.mikesorrenti.com/
  #9   Spotlight this post!  
Unread 14-01-2006, 23:45
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: Easy C programming , Worth teaching?

Mike, I don't think your response was in line with the Gracious Professionalism that FIRST was founded on. Especially seeing your not even talking about the right product. EasyC does not use flow charting, it based on drag and drop C which teaches programmers the syntax they need to learn to program freehand in C.

With the WPIlib for a back end, EasyC has all the sensors for this years competition and more. This includes the CMUCam, Gyro, Encoders, gear tooth sensors, and more. It is very possible for a team to have built and completed most of the programing without a finished robot because EasyC allows you to focus on the problem not the minor details of setting up all sensors. With just a few Victors on a piece of plywood and some motors you can see what is going on very quickly. Plus, on-line mode allows you to see what is going on real-time and you can use the data you collected to write your code.

Good Luck 1388

Last edited by Kingofl337 : 14-01-2006 at 23:50.
  #10   Spotlight this post!  
Unread 14-01-2006, 23:55
Mike's Avatar
Mike Mike is offline
has common ground with Matt Krass
AKA: Mike Sorrenti
FRC #0237 (Sie-H2O-Bots (See-Hoe-Bots) [T.R.I.B.E.])
Team Role: Programmer
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Watertown, CT
Posts: 1,003
Mike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond reputeMike has a reputation beyond repute
Re: Easy C programming , Worth teaching?

Quote:
Originally Posted by Kingofl337
Mike, I don't think your response was in line with the Gracious Professionalism that FIRST was founded on. Especially seeing your not even talking about the right product. EasyC does not use flow charting, it based on drag and drop C which teaches programmers the syntax they need to learn to program freehand in C.

With the WPIlib for a back end, EasyC has all the sensors for this years competition and more. This includes the CMUCam, Gyro, Encoders, gear tooth sensors, and more. It is very possible for a team to have built and completed most of the programing without a finished robot because EasyC allows you to focus on the problem not the minor details of setting up all sensors. To some degree with just a few victors on a piece of plywood and some motors you can see what is going on very quickly.

Good Luck 1388
I don't see anything Non-GP about my post. All I said was that I doubt a team has completed what normally takes 6 weeks in 5 days. That's a perfectly reasonable doubt. I was also mildly annoyed at the way that he was seeming to use any post to "brag" that his programming was already done. This may be an unreasonable annoyance on my part.

If I understand EasyC, this "drag and drop C" is basically flowcharting that generates code.

Also, if you read the post I quoted it said that he did not use EasyC. It may be perfectly possible to program a theoretical robot in 5 days using EasyC. I would not know, as I have not tried. The person I quoted, however, said that he programmed it purely in text-based C. That is what I was doubting.

And yes, good luck 1388. Good luck to all teams.
__________________
http://www.mikesorrenti.com/
  #11   Spotlight this post!  
Unread 15-01-2006, 00:02
Matt Krass's Avatar
Matt Krass Matt Krass is offline
"Old" and Cranky. Get off my lawn!
AKA: Dark Ages
FRC #0263 (Sachem Aftershock)
Team Role: Mentor
 
Join Date: Oct 2002
Rookie Year: 2002
Location: Long Island, NY
Posts: 1,187
Matt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond reputeMatt Krass has a reputation beyond repute
Send a message via AIM to Matt Krass
Re: Easy C programming , Worth teaching?

First point, telling somebody they aren't GP doesn't seem all that Gracious and Professional to me, that could have been handled privately, there was no reason to bring it out here.

Secondly, I agree with Mike, there's just no way you're done, not without a completed robot, you may have made a lot of progress but I'm willing to put up a sizable bet you're not done. You can't have finished programming something you haven't even built, or are you going to try and tell me you finished the robot too?

Everyone needs to chill out here.

As far as teaching EasyC I see it to be a good method, one of many though, to teach new programmers, other than that I don't personally have much use for it, but other teams might, so my suggestion is do what suits your needs.
__________________
Matt Krass
If I suggest something to try and fix a problem, and you don't understand what I mean, please PM me!

I'm a FIRST relic of sorts, I remember when we used PBASIC and we got CH Flightsticks in the KoP. In my day we didn't have motorized carts, we pushed our robots uphill, both ways! (Houston 2003!)
  #12   Spotlight this post!  
Unread 15-01-2006, 14:36
Astronouth7303's Avatar
Astronouth7303 Astronouth7303 is offline
Why did I come back?
AKA: Jamie Bliss
FRC #4967 (That ONE Team)
Team Role: Mentor
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Grand Rapids, MI
Posts: 2,071
Astronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud ofAstronouth7303 has much to be proud of
Question Re: Easy C programming , Worth teaching?

Quote:
Originally Posted by Mike
With that being said. I would probably only use EasyC for the flowchart capabilities. But even that is over-kill, why not just use a flowcharting program?
Speaking of which, I would like to know some recomendations. This is my first year having a programming team, and one of the things that is getting pushed at me is flowcharting. I would like to have software to do it.

Any recomendations?
  #13   Spotlight this post!  
Unread 16-01-2006, 11:25
pwilczynski's Avatar
pwilczynski pwilczynski is offline
Registered User
FRC #0236 (Techno Ticks)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 1993
Location: Connecticut
Posts: 52
pwilczynski is on a distinguished road
Re: Easy C programming , Worth teaching?

Quote:
Originally Posted by artdutra04
I would recommend using EasyC for "prototyping" code.
Thats my feeling as well. It's a useful tool for a beginnner and has enough bells and whistles to do basic coding.

Using it for really tough programming....if you're doing tough programming you shouldn't use it. You have a limited number of commands, and espesially given that most real world applications call for C, not EasyC, you might as well learn it sometime.
  #14   Spotlight this post!  
Unread 16-01-2006, 11:39
Bharat Nain's Avatar
Bharat Nain Bharat Nain is offline
Registered User
no team
Team Role: Alumni
 
Join Date: Jan 2004
Rookie Year: 2003
Location: New York
Posts: 2,000
Bharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond reputeBharat Nain has a reputation beyond repute
Send a message via AIM to Bharat Nain Send a message via MSN to Bharat Nain
Re: Easy C programming , Worth teaching?

I played around with EasyC for a few hours yesterday and I really like it. While I like writing code myself(and I will this year), I'd rather play around with flowcharts to get the program done ASAP. It's the same job done in less time - and in most cases less effort. IMHO, you can do quite advanced coding with it too. You cannot make a whole lot of syntax errors either. This really is a gift for rookie programmers.
__________________
-= Bharat Nain =-

Whatever you do, you need courage. Whatever course you decide upon, there is always someone to tell you that you are wrong. There are always difficulties arising that tempt you to believe your critics are right. To map out a course of action and follow it to an end requires some of the same courage that a soldier needs. Peace has its victories, but it takes brave men and women to win them. - Ralph Waldo Emerson
  #15   Spotlight this post!  
Unread 16-01-2006, 14:03
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,187
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: Easy C programming , Worth teaching?

Quote:
Originally Posted by Bharat Nain
I played around with EasyC for a few hours yesterday and I really like it. While I like writing code myself(and I will this year), I'd rather play around with flowcharts to get the program done ASAP. It's the same job done in less time - and in most cases less effort. IMHO, you can do quite advanced coding with it too. You cannot make a whole lot of syntax errors either. This really is a gift for rookie programmers.
You would love using WPILib in MPLab then Bharat. It runs a bit slower than IFI default code, but all of the drivers for the kit sensors are built in and run perfectly.

WPILib is great for prototyping code for the veteran programmer. All the fun of writing code, none of the hassles of IFI default. For example, I just wrote a absolute heading based drive system (robot always moves in the direction the jostick is pointing) in about 10 minutes with 7 lines of code...
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
Programming Vex w/ MPLab dababyjebus FIRST Tech Challenge 27 25-04-2008 09:11
Programming - Getting Started Mark McLeod Programming 80 16-04-2008 23:37
Organizing a programming team. scitobor 617 Programming 7 28-01-2005 19:18
What do you think about how easy theyre making programming? Leav Programming 76 11-01-2005 12:07
Robot Programming Education phrontist Programming 11 03-05-2004 07:32


All times are GMT -5. The time now is 20:38.

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