Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
06/16/06 07:34
Read: times


 
#118393 - Specification!
Responding to: ???'s previous message
Aha - you're back!
What was the big panic, then?

Kiran Kumar said:
Let me make it clear that its not the problem with the formula i use to calculate but with the floating point number that C51 does not support.

Wouldn't it have saved everyone a load of time if you'd made that clear in the first place?!

I hope you have also updated your cross-post on the Keil forum with this necessary information...

You said:
i want an C code which can calculate Accurate distance b/w 2 given latitudes and longitudes. iam using ... KEIL IDE for C coding

That gave no indication that you already knew the formula, and only wanted the double-precision floating point!

i did the same in VC++ and C#.NET i got the precision i needed

Well VC++ runs on a 32-bit machine, probably clocking at a GHz or so, and with hundreds of MB of RAM, etc, etc...

Expecting to get the same performance out of a mere 8-bit controller is optimistic, to say the least!

it support only 32 bit how to enable the 64 bit calculation.

That is clearly stated on the product datasheet - you chose the wrong product!

You will have to make or buy your own double-precision floating-point library, or pick a more suitable processor.

See this thread on the Keil forum:
http://www.keil.com/discuss/docs/thread7218.htm

Some libraries are suggested, and some chips with hardware maths support.


You still haven't mentioned how you manage to get input data with 10cm precision in the first place...

List of 32 messages in thread
TopicAuthorDate
Calculating accurate Distance b/w            01/01/70 00:00      
   Nothing to do with Keil?            01/01/70 00:00      
      Keil-specific            01/01/70 00:00      
         Of course, but does that not mean that t            01/01/70 00:00      
            Eternities.            01/01/70 00:00      
               maybe differencial gps            01/01/70 00:00      
                  If it is differential gps ...            01/01/70 00:00      
               actually, it's just a ruse            01/01/70 00:00      
                  You Cynic!            01/01/70 00:00      
                     I guess you're right, Andy            01/01/70 00:00      
   haversine formula            01/01/70 00:00      
      I think the problem isn't the formula ..            01/01/70 00:00      
         basically stuffed            01/01/70 00:00      
   Over what range?            01/01/70 00:00      
   Cross-posting            01/01/70 00:00      
   So what was the big panic, then?            01/01/70 00:00      
      Clearly........            01/01/70 00:00      
         is that a problem?            01/01/70 00:00      
            Nooooo eric.            01/01/70 00:00      
               well, you often seem to be wound up enou            01/01/70 00:00      
                  it's the coffee, doncha know ...            01/01/70 00:00      
                     its the morons who want impossible thing            01/01/70 00:00      
            Good humor!!            01/01/70 00:00      
         and he does that because it works            01/01/70 00:00      
         Yet to be solved!!!            01/01/70 00:00      
            Write your own library!            01/01/70 00:00      
               Fixed-point math            01/01/70 00:00      
            Specification!            01/01/70 00:00      
               Maths            01/01/70 00:00      
                  shooting sparrows with RPGs and shooting            01/01/70 00:00      
                     Someone's being misled            01/01/70 00:00      
                     On double precision floating point            01/01/70 00:00      

Back to Subject List