PBPro Maths Help


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Default Re: PBPro Maths Help

    Hi, Retep ...

    first you have to declare a dummy var ... and a Div flag

    then ...

    Code:
     
     
    IF Local > 32767 then    ' see PBP manual ... for the Why ???
       Local = Local/2
       Div = 1
    Else
       Div = 0
    ENDIF
     
    Dummy = 11
    Dummy = Dummy*7908 ; operation needed by PBP ...
    ActualSpeed = DIV32  Local
     
    IF Div THEN ActualSpeed = Actualspeed / 2    ' Ooops ! not *2 ...
     
    ActualSpeed = ActualSpeed + 1
    Last edited by Acetronics2; - 6th May 2011 at 07:19.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: PBPro Maths Help

    Thanks for the help so far, here is a different formula though.
    How to convert that to use max resolution and div 32 command etc.

    3600sph / (count * 0.000005 * 4550)

    Count will be a maximum of 10,000

  3. #3


    Did you find this post helpful? Yes | No

    Default Re: PBPro Maths Help

    Does this code look correct to implement the formula?


    'Formula Speed = 3600 / (Local * 0.000005 * 4550)

    Dummy = Local * 5
    Local = 10000
    Dummy = Dummy * 4550
    Dummy = DIV32 Local
    Count1 = 36000
    Local = Count1 * 10000
    Speed = div32 Dummy
    Speed = Speed / 1000

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