speed Calculations


Closed Thread
Results 1 to 19 of 19

Hybrid View

  1. #1
    Join Date
    Feb 2012
    Location
    PERTH AUSTRALIA
    Posts
    838


    Did you find this post helpful? Yes | No

    Default Re: speed Calculations

    i would love to avoid floats or long at all , which means a lot more if/then for ranging of the inputs for the distance and time options for a given time / distance input

    the result display would be returned to 1 byte for decimal display use , and a word value for the above decimal use ,
    i am bit lost on this one on how to get it going atm would not be too bad normally but i have only small amount of code space left , i am still trying to claw back some code space elsewhere

    varables i have so far

    Display Distance base measurement selection option

    00 = Feet
    01 = meters
    02 = miles
    03 = KM

    Display Time base measurement selection option
    00 = time in sec
    01 = time in minutes
    02 = Time in Hours
    03 = LAP SPEED

    Distance input values
    0 - 4000 - 2 bytes

    Time input values

    days, hours , min, sec , 1/100th - all 1 bytes

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,705


    Did you find this post helpful? Yes | No

    Default Re: speed Calculations

    one of the first rules in mathematical calculations is that 2000/2.xx is accurate to 0 decimal points
    2000.0 / 2.xx is accurate to 1 decimal point. to be accurate to 2 decimals all!! input figures must be measured to two decimals , otherwise its fantasy

  3. #3
    Join Date
    May 2013
    Location
    australia
    Posts
    2,705


    Did you find this post helpful? Yes | No

    Default Re: speed Calculations

    actually its worse than I made out
    see this
    http://courses.chem.indiana.edu/s117...on-SigFigs.pdf

Similar Threads

  1. CRC Calculations
    By timmers in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 16th June 2009, 18:10
  2. clock/timer calculations
    By virolay in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th January 2008, 21:20
  3. Incorrect calculations... please help.
    By bearpawz in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 29th January 2007, 23:03
  4. Calculations for using faster Clocks.
    By Tissy in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 18th April 2005, 15:24
  5. timing calculations
    By scorpion in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 28th November 2004, 23:58

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts