after all ... PBP is not so bad ...


Closed Thread
Results 1 to 24 of 24

Hybrid View

  1. #1
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    ... MkBasic 7.2 now shows ... 1001 Words , MkBasicPro ... 601 Words !!! ( using WORDS ); to answer Ioannis, we loose here 1/2 degree in the result ... so, depending on the resolution required, ( 1 or .1 degree), program size changes a lot with MkE compilers !!!

    PbP " only " 470 Words ... always is the winner.
    Bravo Alain!!!

  2. #2
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224


    Did you find this post helpful? Yes | No

    Default

    après quelques tortillages de cerveau ...

    on se rend compte que " angle " passe de 26 tribord à 26 babord pour la tension d'entrée qui passe de 3.02v à 5.02v , ce, de façon linéaire ...

    si l'on y regarde de plus près ... et ,compte tenu de l'affichage en degrés, sans décimales ...

    ça nous fait tout simplement ...

    26 degrés de variation pour 200 points de variation du résultat de conversion ...

    d'où ... la fabuleuse équation devient tout simplement :

    angle = 13 * ABS ( result-823 ) / 100 ...

    Qui a éclaté de rire ???
    Hi Alain,

    Was it too late for the original student to use this new formula considering the time constraints you mentioned?

    Regards, Mike
    Last edited by Mike, K8LH; - 4th May 2010 at 13:32.

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


    Did you find this post helpful? Yes | No

    Smile

    Quote Originally Posted by Mike, K8LH View Post
    Hi Alain,

    Was it too late for the original student to use this new formula considering the time constraints you mentioned?

    Regards, Mike
    Halas yes, Mike ... He PMed me he had no time to change his report and explain how to simplify the formula, once having seen the practical result, so he had to use the whole original formula for programming ...

    despite I sent him the reduced program.

    no " magics " allowed in such reports ...

    he's just authorized to mention the soft can be modified and reduced , while presenting his work at the blackboard ... and next year students will make the mod ...

    Alain

    But ... being honest ... you've cheated a bit !!!
    Last edited by Acetronics2; - 4th May 2010 at 16:13.
    ************************************************** ***********************
    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 " !!!
    *****************************************

  4. #4
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Acetronics View Post
    But ... being honest ... you've cheated a bit !!!
    How so? If you mean that I took advantage of all your hard work and careful analysis when I simplified the formula then you are correct (LOL).

    Quote Originally Posted by Acetronics View Post
    2) as the input swings from 3.02v to 5.02 v ... the output value is ... 26 starboard to 26 port ...
    Your summary made it easy to recognize the ralationship of 52° spread across 100 (8-bit) or 400 (10-bit) ADC counts. You really should have spotted this yourself when you wrote it (LOL).

    Anyway, I'm sorry the student could not take advantage of the simplified formula.

    Regards, Mike

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