Would anyone like to see these two programs re-wrote to work with the new PIC-C language?
If so, I’d be glad to re-write them.
Please post your thoughts, opinions, etc…
Would anyone like to see these two programs re-wrote to work with the new PIC-C language?
If so, I’d be glad to re-write them.
Please post your thoughts, opinions, etc…
If you could please try and keep the cross platform (or at least dual-platform) nature of these applications it’d be much appreciated, I’ll run code on linux for you if you don’t have an installation free to test upon. Might end up helping fix a few things too, assuming it’s open-source? (if you’re using rob’s code as a base open-source is not optional.)
*Originally posted by djcapelis *
**If you could please try and keep the cross platform (or at least dual-platform) nature of these applications it’d be much appreciated, I’ll run code on linux for you if you don’t have an installation free to test upon. Might end up helping fix a few things too, assuming it’s open-source? (if you’re using rob’s code as a base open-source is not optional.) **
Keeping it cross platform is something I doubt I can do…I’ve looked through the code, and if both (or even if one) runs on linux right now, I highly doubt it’ll matter when/if I re-write the code.
Both will be off of Rob’s code, I’m just going to make the necessary changes for the language. This way, people that are used to how it was will still be able to use it…unless I end up having to re-do everything (dreads that).
Thanks for help, I’ll keep in touch with you as soon as I get more info on the language.
I’d be more than glad to try to help as well if you need it.
YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! YES!! …
I was going to post this myself, but you beat me 2 it. I wish there were some way i could help.
Mike & Rick: You both can help with cross-platform stuff, and I’m sure I’ll IM you both about the code
Thanks for all the help, and I’m glad many people really do like these programs.
[Sorry if I sound like Rob, I’m just really suprised honestly that these tools have helped out a lot of people]
/ponders what Rob would post if he read this thread
*Originally posted by Raven_Writer *
/ponders what Rob would post if he read this thread
Don’t worry, I’m here.
As of right now, I am planning on updating at least RoboEmu (RoboGUI is a mess right now, and I don’t think it’s anywhere near as popular). As for cross-platform compatibility, that’s definately in the plans.
A few problems:
a) RoboEmu will basically need to be gutted and re-written from the ground up.
b) I’m not on a team and have no controller to test things with.
c) I haven’t seen a formal spec for the language yet. (Please don’t say implement all of C. That’s about the same as writing a C compiler, which is a HUGE project and one that I doubt anyone here has the time to take on).
So, that said, here’s what I need from you guys:
Remember, competition doesn’t start until January. I will definately try to have something done significantly before that.
-Rob
*Originally posted by rbayer *
**…So, that said, here’s what I need from you guys:
- can somebody find me the language spec?
- are you all willing to test code for me?
- please be patient. I love working on RoboEmu, but this a gigantic change. Luckily, version 2.0, which I almost finished this summer, should be easier to adapt to the new controller and will be much easier to keep cross-platform compatible.
- even though RoboEmu is GPL, so you are technically free to do whatever you want with it, I think it would be benneficial to coordinate everything through me so that somebody doesn’t end up duplicating work I’ve already done. …**
Thanks Rob for the great work.
Yea, I haven’t found out about the code either, I hope that something comes with the new edubot controller that will give us just the basics if anything.
I’ll definitly help beta test as well
*Originally posted by rbayer *
**1. can somebody find me the language spec?-Rob **
If we’re to be using MPLAB to program a PIC18F8520 in C, I’m almost 100% sure we’ll be using C18. The User’s Guide document on that page contains a lot of the spec of the language (I’m not sure if it’s 100% complete, but it seems to be very comprehensive), and the Libraries document explains Microchip’s libraries for common processor functions (ADC, Timers, PWM, USART, etc.).
Hope this helps, some. I’m not sure what, if anything, I’ll be able to do concerning the actual development of the software, though. Sorry.
*Originally posted by rbayer *
c) I haven’t seen a formal spec for the language yet. (Please don’t say implement all of C. That’s about the same as writing a C compiler, which is a HUGE project and one that I doubt anyone here has the time to take on).
Rob,
Why try to interpret the C code as it runs? As you say, implementing all of the language constructs would be a lot of work. It would be much more efficient to just compile the user’s RC code into a native library on the host’s workstation and then link it in at runtime… I would think that would simplify the porting of your application quite a bit. Most likely IFI will provide some sort of library for the RC that will have some standard functions for reading inputs, writing outputs, setting PWMs, etc., so all you’d have to do is provide the same interface for the user’s code to work with.
Besides, it’ll be much harder to interpret programs written for the new processor and maintain real-time speed than it was with the pokey BASIC Stamp.
*Originally posted by Dave Flowerday *
**Rob,
Why try to interpret the C code as it runs? As you say, implementing all of the language constructs would be a lot of work. It would be much more efficient to just compile the user’s RC code into a native library on the host’s workstation and then link it in at runtime… I would think that would simplify the porting of your application quite a bit. Most likely IFI will provide some sort of library for the RC that will have some standard functions for reading inputs, writing outputs, setting PWMs, etc., so all you’d have to do is provide the same interface for the user’s code to work with.Besides, it’ll be much harder to interpret programs written for the new processor and maintain real-time speed than it was with the pokey BASIC Stamp. **
Hmm if that can be done, then all you would need to write would be an assembly interpreter. The PIC instruction set is very small.
And rob, don’t worry about testing. I think people are quite eager to test. The full details im guessing will be out around the 10th.
*Originally posted by Rickertsen2 *
**Hmm if that can be done, then all you would need to write would be an assembly interpreter. The PIC instruction set is very small. **
No, you wouldn’t. The point is that you compile and run it natively on the [Windows|Linux|MacOS] platform. No interpretation of C, assembly, or anything else.
Sweet… if IFI releases said library… we’ll have to see a bit before anything can really happen.
I need to learn to be more patient.
*Originally posted by djcapelis *
**Sweet… if IFI releases said library… we’ll have to see a bit before anything can really happen.I need to learn to be more patient. **
lol.
If I get enough info., I might be able to re-write my FIRST Editor to use the PIC-C language.
*Originally posted by Dave Flowerday *
**No, you wouldn’t. The point is that you compile and run it natively on the [Windows|Linux|MacOS] platform. No interpretation of C, assembly, or anything else. **
OOO i get you now… That would be even better, but has more inherent difficulties than you may think.
IMHO it would probably be better to write an interpreter for .asm files that have already been compiled. Let me just say no matter how it is done, this will be no easy feat.
Eh, an ASM intepreter doesn’t seem all that bad… only 26 instructions to implement and you’ve got the entire capabilities of the mc pretty much dealt with.
*Originally posted by djcapelis *
**Eh, an ASM intepreter doesn’t seem all that bad… only 26 instructions to implement and you’ve got the entire capabilities of the mc pretty much dealt with. **
i guess. But you also have model the effects of all the registers. Still a far less daunting task then a C interpreter.
If you realy want to simulate the pic you should take a look at gpsim from the gnupic project.
http://www.dattalo.com/gnupic/gpsim.html
It should make Rob’s job a lot easier.
oh yea i forgot all about gpsim.