![]() |
Re: What language do you use?
Quote:
|
Re: What language do you use?
Here are some good video's of what you can do in easyC
http://www.checkmate40.com/Video/2006/ma_sf2m1.html http://www.checkmate40.com/Video/2006/GSR_Auto.mov http://www.checkmate40.com/Video/2006/new_096.html This was a 3 speed, mecanum drive robot, with 8 autonomous modes that could run from all 3 spots and adjust the final distance from the goal. We used an xBox360 controller rewired to the DB15. It was 100% programmed in easyC for FRC. I don't say this to brag but just to point out the capabilities of this tool. After working with the kids programming I very much doubt there is anything you can't do with easyC in a FIRST robotics environment. This is what it comes down to. The function of easyC its not to replace C as language its designed to teach C. It's a tool designed to enable rapid testing and develop programs specifically geared towards FRC and VEX robotic platforms. easyC was developed after team 40 and mentors from intelitek coming to the conclusion it's way to much work to program these robots even to do the simplest of tasks. Like a simple closed loop proportional drive system. Add to the fact that most teams give the robot to the programmers 3 days before ship and say, "Get to work" that or compromise a design because they don't think they can program it. In the end all I'm asking is open your mind and give easyC for FRC a shot, a dedicated attempt to program your 05 or 06 robot. For most experienced programmers I bet you can program your entire Operator Control in under 1/2hr. easyC is just a tool, designed to make life a little easier for the FIRST community. |
Re: What language do you use?
C and Assembly for robotics - I'm a low-level guy
C++ when I need compiled OOP capability JAVA when I want to have portability Ti-Basic for fun Dabbled in a few others, few compare to C in terms of versatility and reliability. Plus, several of the major programming languages use a similar syntax to C, so knowing C inside and out has other advantages. I didn't like Java (and don't think I'd like EasyC) because of its inherent lack of settable pointers - I know, most people think they are the devil, and it's true they can royally screw something up if done incorrectly, but passing something by address is hugely faster than by value. Sparks |
Re: What language do you use?
Robotics: C
General Purpose Embedded: C Fast Routines: Assembly School: Java Calculator: TIbasic and C (yes, there is a compiler) Quick/Dirty Interfaces and I/O: VB6 (NOT .NET), C++, or QB -Q |
Re: What language do you use?
Robotics: C
Most other things: Ruby Learning C# though as a sort of middle-ground. |
Re: What language do you use?
Robotics: C
Simple Programs: C+ (Yes, C and C++ mixture. If you can call it that) Complex Programs: C++ Web Development: PHP, SQL (MySQL), XHTML, CSS, Javascript Low-Level (Such as OS-DEV): x86 ASM School: Java (which I used to hate with a passion; not so much anymore) Among other things... SX Assembly for the SX52 Microcontroller (Crazy thing, 80MHz! You can write a video kernel in it - software black and white NTSC :-) ) And I've experimented with many C-based scripting languages. |
Re: What language do you use?
C#
|
Re: What language do you use?
MICRO32 , for low-level h/w bit pushing projects
MACRO32, for assembler level BLISS for high level... Of course my first "electronics" class in high school votech did involve 6.3VAC and filaments.... But seriously, any programming language can be used... it is how you use it that counts as long as the resulting run-time execution profile, code size, or data space used doesn't put you at a disadvantage over some other language or tool. Personally, I always look at the assembler generated by the compiler to see if I'm using things correctly to match the processor architecture. If a line of C code is compiled into 30-40 instructions, then I probably didn't choose the best programming method for solving the problem. For example, in one piece of code I just finished I needed to walk an array and move all the entries up one until some end condition. Putting the code in a loop looked good in C - nice and compact - until I looked at the compiled code. It took some 196 cycles on average to do all the array indexing computations, move the data around, and do end condition check for just 2 array entries with the for loop. In contrast, unwinding the for loop across the whole array array[0] = array[1]; array[1] = array[2]; ... takes only 64 cycles to always move the whole array even though its like 8-10x more C code. The particular chunk of code started life as a singly linked list structure, but computationally it was just too expensive in terms of compiled code size and execution time. Building a lookaside/ordered index table as a companion to the data structures was much more effecient on the current processor in this case. The argument of using oop or this or that os is often moot - none of those run very well at all on the current architecture. Moving to a processor that does run linux, say, still doesn't begin to address the issues introduced by using a full blown os; namely no pre-emptive scheduling and very long latency issues in terms of use within a real-time system such as a robot. Yes, there are flavors and changes you can make to get linux to almost be rtos capable, but that typically means either throwing some serious h/w at it or reduction of kernel services to something that means you're really not running linux but some strangled subset there of. The flip side is learning to program well with an architecture that is both powerful and weak at the same time. The test of learning to program well is capitalizing on the PICs strengths while recognizing and avoiding its weaknesses as much as possible. If you can do this using some other language or interface - great! Go for it! But for now, I'll stick to C and EasyC as both put me only at a slight disadvantage over assembler if the proper programming method is found and utilized. Bud |
Re: What language do you use?
For the robot I code in C. Last year, we started a dashboard in VB.NET (that was the main language that my friend and I knew) but eventually converted over to C# after discovering dashboard code that already had most of the work done on it (it was posted on ChiefDelphi somewhere).
Personally, I used .NET for a while, but I found that everything Microsoft makes for development products (that is worth using that is) is very expensive. I do like the express editions of .NET 2.0, but they are somewhat limiting, especially SQL Server Express. For a job I was doing last year I was forced to switch over to PHP running on an Apache server with a MySQL database backend, and it was so much less restrictive than Microsoft, it was free, and it was more logical I found. I ended up switching my hosting from Microsoft Hosting (on IIS:ahh:) to Linux Hosting (on Apache). |
Re: What language do you use?
C for FIRST
Turing for School:eek: Learnt abit of Java2 overr the summer and im learning visual basic and possibly python before the summer:D |
Re: What language do you use?
C for the robot,
C or C++ for applications (C++ for our team's dashboard), Perl for what I don't know how to do in C/C++, and I'm probably going to learn C# for Microsoft's Robotics Studio. |
Re: What language do you use?
C for FIRST
PHP and MySQL for web design (not very good yet) VB6 (yuck) for prototyping Windows apps (hey, it's my primary language and what got me interested in programming for robotics) C++ for whatever apps I need for programming class. That's about it. I've known a ton more, but forgotten them because they don't matter (like Not Quite C for the Lego RCX). JBot |
Re: What language do you use?
Personally, I always look at the assembler generated by the compiler to see if I'm using things correctly to match the processor architecture.[/quote]
Not to sound like an idiot, but how do you do this? I know assembly language quite well, but I never really found an application for it in practical programming. Is there a way to do this in FRC programming as well? |
Re: What language do you use?
Quote:
|
Re: What language do you use?
In MPLAB IDE, View->Disassembly Listing or View->Program Memory.
If using Program Memory view, I select the "Symbolic" tab at the bottom of the window. For example, Code:
void EventHandler_Remove( void )Code:
526: for (ndx=0; ndx<MAX_EVENT; ndx++)Code:
void EventHandler_Remove( void )Bud |
| All times are GMT -5. The time now is 19:41. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi