28029 Parallax Inc, 28029 Datasheet - Page 145

KIT PARTS SMART SENSORS W/TEXT

28029

Manufacturer Part Number
28029
Description
KIT PARTS SMART SENSORS W/TEXT
Manufacturer
Parallax Inc
Datasheet

Specifications of 28029

Accessory Type
Parts Kit
Product
Microcontroller Accessories
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
For Use With/related Products
BASIC Stamp® or Javelin Modules
Lead Free Status / RoHS Status
Lead free / RoHS Compliant, Contains lead / RoHS non-compliant
Other names
28029PAR
integer
fraction
brads
table
temp
axisOffset
' -----[ Main Routine ]-------------------------------------------------------
DEBUG "Click the Transmit Windowpane, ", CR, ' Wait for user.
DEBUGIN character
DO
LOOP
' -----[ Subroutine - Compass_Calibrate ]-------------------------------------
' -----[ Subroutine - Get_And_Store_Axis_Offsets ]----------------------------
' This subroutine prompts the user to point the compass north, then east, then
DEBUG "Type a character: ", CR,
DEBUGIN Character
DEBUG CR
IF character = "c" OR character = "C" THEN ' "c" -> calibrate
ELSEIF character = "r" OR character = "R" THEN
ENDIF
DEBUG CR, "Press any key to",
DEBUGIN character
DEBUG CR, CR
Compass_Calibrate:
GOSUB Compass_Calibrate
GOSUB Calibration_Review
GOSUB Get_And_Store_Axis_Offsets
GOSUB Get_And_Store_Interpolation
GOSUB Get_And_Store_Low_Value_Address
DEBUG CR, "CALIBRATION COMPLETED...", CR,
RETURN
"then press Enter... ", CR, CR
"C
"R
"> "
CR, "continue"
"You are now ready to run ", CR,
"TestCalibratedCompass.bs2.", CR
- calibrate ", CR,
- review calibration settings", CR,
VAR
VAR
VAR
VAR
VAR
VAR
Word
Nib
Byte
Byte(2)
Word(2)
Word
Chapter 4: Hitachi HM55B Compass Module · Page 133
' Integer values for display
' Fractional values for display
' Binary radian measurements
' Stores table values
' Stores axis measurements
' Stores axis offset value
' Main loop
' Menu
' Get user selection
' "r" -> review settings
' wait for user
' Repeat main loop

Related parts for 28029