Shop OBEX P1 Docs P2 Docs Learn Events
help with PING sample code — Parallax Forums

help with PING sample code

trucutrutrucutru Posts: 4
edited 2008-11-28 05:08 in BASIC Stamp
Hey I'd like to find out where the constants 889 and 2257 in the PING sample code

RawToIn········ CON···· 2257··················· ' 1 / 73.746 (with **)
RawToCm········ CON···· 889··················· ' 1 / 29.034 (with **)
IsHigh········· CON···· 1······················ ' for PULSOUT
IsLow·········· CON···· 0

Thanks

PS the equation next to the comment do not equal its correspondents constants

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-11-27 18:59
    Read the description of the ** operator in the Basic Stamp Manual. It provides for the division in the comments, but using just integer arithmetic.
  • trucutrutrucutru Posts: 4
    edited 2008-11-28 05:08
    thanks i shoulve mread it all the way through the first time
Sign In or Register to comment.