Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Sourceforge PIC float

Status
Not open for further replies.
I'm going to need to do some floating point math for a project where I'd like to convert Lat/Long data from a GPS to Universal Tranverse Mercator, and then to Military Grid Reference System. I've avoided floating point in the past by inflating them by orders of ten, but with this some of the math already has stuff in the millions and very small decimals, so inflating would lead to ridiculous inflation.

I've downloaded the sourceforge PICfloat collection of files. I must admit, it is information overload. Is there a tutorial file somewhere for this that explains things like "if you want to do trig, include these headers..." or "here is how you set up your files for a floating point division and here is what you need to call in order to bring it back to ascii numbers"

Thanks
 
You might want a high level language for that sort of stuff. Swordfish BASIC would be my choice as it has a math module and is easy to learn and use.
 
I took a look at the language reference guide for Swordfish basic. It does look very easy to learn, but that 200 byte RAM limit will be tough to work with. If the full version was 50 or 60 bucks, I'd be all over it..... but $160+ is a little steep for me.
 
Alright Blueroom, you guys have got me sold on Swordfish. Are there any tutorials out there that show you how to use it with the assumption that you don't know any BASIC? I googled and did not find much.

EDIT: How close is this to other basic languages? As in.... if to just google "basic language tutorial" would the info therein put me in the right direction?
 
Last edited:
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top