Shop OBEX P1 Docs P2 Docs Learn Events
Propeller Object: HM55B Compass — Parallax Forums

Propeller Object: HM55B Compass

Beau SchwabeBeau Schwabe Posts: 6,559
edited 2006-09-19 20:07 in Propeller 1
I will be posting this to the Propeller object library soon.


·attachment.php?attachmentid=43170

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe

IC Layout Engineer
Parallax, Inc.

Comments

  • simonlsimonl Posts: 866
    edited 2006-09-12 10:44
    Hi Beau,

    Completely off-topic, but it's been niggling at me -- how do you pronounce your last name!? (shwarbay, shwob, shwabe?)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheers,

    Simon
  • Beau SchwabeBeau Schwabe Posts: 6,559
    edited 2006-09-12 18:50
    Hmmm....

    Beau:
    Boe

    Schwabe:
    Sh - Wah - Bee

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • MacGeek117MacGeek117 Posts: 747
    edited 2006-09-13 00:23
    Question-theta-what exactly is that? Degrees?
    RoboGeek

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "I reject your reality and subsitute my own!"

    Adam Savage, Mythbusters
    www.parallax.com
    www.goldmine-elec.com
    www.expresspcb.com
    www.startrek.com
    ·
  • Paul BakerPaul Baker Posts: 6,351
    edited 2006-09-13 00:27
    Theta is the most commonly used greek letter to represent an angle. It does not denote what·unit of measure is used for the angle (degrees, radians, gradiant).

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • MacGeek117MacGeek117 Posts: 747
    edited 2006-09-13 00:38
    I do understand that, but I just wanted to know what unit was being used. Thank you anyway.
    RoboGeek

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "I reject your reality and subsitute my own!"

    Adam Savage, Mythbusters
    www.parallax.com
    www.goldmine-elec.com
    www.expresspcb.com
    www.startrek.com
    ·
  • Paul BakerPaul Baker Posts: 6,351
    edited 2006-09-13 16:27
    Its a 13 bit number from $0000 to $1FFF indicating angle, what this represents is up to you, graphics.spin defines it terms of degrees: (Θ/$2000)x360º, however there is nothing preventing you from defining in radians: (Θ/$2000)x2π.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • Kaos KiddKaos Kidd Posts: 614
    edited 2006-09-19 20:07
    In all fairness, there is nothing indicating the unit of measurement as being defined externally of the application.
    We use Degrees because it's something we all grew up with, and ppl with med to heavy math know of radians or grads. But, in all actuallity, as long as the unit of measurement is equally distrubutited about the axis, it can be anything. For example: One could define each unit of measure as being most anything, as long as it's understood. Somewhere I saw and played with a formula that defined a circle to 1000 units. I assumed it was degrees. The whole expression was in INT math, was very fast, and confused the smack out of me, until I relized a circle was 1000 units, not 1000 degrees, hence the confusion.
    As my Professor stated: "As long as the unit measurment is defined as being equally distrubited around the axis, it is a valid unit of measurment."
    Also included was the understanding that you can't change the dynamics of a unit as defined within the same application.
    Meaning, once you "define" a unit of measurement, you cant change it.
    In this example, theta is the unit of measure, and it's being defined in the application as being a degree.
    As Paul indicated, there nothing that says we want it expressed as {Insert your own word} as being (Θ/$2000){enter your connotation}
    Ok, it's been a real long time but I think I got that right...
    ?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔

    Propeller + Hardware - extra bits for the bit bucket =· 1 Coffeeless KaosKidd

    ·
Sign In or Register to comment.