To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.pbforthOpen lugnet.robotics.rcx.pbforth in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / pbFORTH / 28
27  |  29
Subject: 
Useful constants
Newsgroups: 
lugnet.robotics.rcx.pbforth
Date: 
Wed, 14 Apr 1999 10:07:27 GMT
Reply-To: 
ROBOTS@JPSC.COavoidspam.UK
Viewed: 
1595 times
  
\ I still need to figure out how the datalog and transfer progress
\ segments work, I'll be spending some time inside Kehoa's disassembly I
\ think

BASE @ HEX

( codes for POWER_GET )
4000 CONSTANT pwrOnOffButtonState
4001 CONSTANT pwrRawBatteryVoltage

( segment codes for LCD_SHOW/LCD_HIDE )
3006 CONSTANT lcdStandingFigure
3007 CONSTANT lcdWalkingFigure
3008 CONSTANT lcdSensor0ViewSelected
3009 CONSTANT lcdSensor0Active
300A CONSTANT lcdSensor1ViewSelected
300B CONSTANT lcdSensor1Active
300C CONSTANT lcdSensor2ViewSelected
300D CONSTANT lcdSensor2Active
300E CONSTANT lcdMotor0ViewSelected
300F CONSTANT lcdMotor0BackwardArrow
3010 CONSTANT lcdMotor0ForwardArrow
3011 CONSTANT lcdMotor1ViewSelected
3012 CONSTANT lcdMotor1BackwardArrow
3013 CONSTANT lcdMotor1ForwardArrow
3014 CONSTANT lcdMotor2ViewSelected
3015 CONSTANT lcdMotor2BackwardArrow
3016 CONSTANT lcdMotor2ForwardArrow
3018 CONSTANT lcdDatalogIndicator   ( sub addressed !!!!! )
  EF4F CONSTANT C_DatalogCount      ( not sure about this !!!!! )
3019 CONSTANT lcdDownloadInProgress ( sub addressed !!!!! )
301A CONSTANT lcdUploadInProgress   ( sub addressed !!!!! )
  EF4E CONSTANT C_TransferCount     ( not sure about this !!!!! )
301B CONSTANT lcdBatteryLowIndicator
301C CONSTANT lcdShortRangeLight
301D CONSTANT lcdLongRangeLight

( comma codes for LCD_NUMDER)
0000 CONSTANT lcdSingleDigitNoPoint
3002 CONSTANT lcdNoDecimalPoint
3003 CONSTANT lcd10sDecimalPoint
3004 CONSTANT lcd100sDecimalPoint
3005 CONSTANT lcd1000sDecimalPoint

( number codes for LCD_NUMDER)
3017 CONSTANT lcdSingleDigitDigitOnRight
3001 CONSTANT lcdSignedNoLeadingZeros
301F CONSTANT lcdUnsignedLeadingZeros

( codes for SOUND_PLAY )
4003 CONSTANT sndQueued
4004 CONSTANT sndUnqueued

( sound codes for SOUND_PLAY )
0000 CONSTANT sndBlip
0001 CONSTANT sndBeepBeep
0002 CONSTANT sndDownwardTones
0003 CONSTANT sndUpwardTones
0004 CONSTANT sndLowBuzz
0005 CONSTANT sndFastUpwardTones
0006 CONSTANT sndLowBuzz2

( codes for BUTTON_GET )
0001 CONSTANT btnRun
0002 CONSTANT btnView      ( guess - check !!!!! )
0004 CONSTANT btnPgm       ( guess - check !!!!! )

( modes for MOTOR_SET )
0001 CONSTANT mtrForward
0002 CONSTANT mtrBackward
0003 CONSTANT mtrStop
0004 CONSTANT mtrFloat

( types for SENSOR_TYPE )
0000 CONSTANT snsRaw
0001 CONSTANT snsTouch
0002 CONSTANT snsTemperature
0003 CONSTANT snsLight
0004 CONSTANT snsRotation

( modes for SENSOR_MODE )
0000 CONSTANT snsModeRaw
0020 CONSTANT snsModeBoolean
0040 CONSTANT snsModeEdgeDetection  ( every transition counts )
0060 CONSTANT snsModePulseDetection ( only negative transitions count)
0080 CONSTANT snsModePercentOfScale
00A0 CONSTANT snsModeDegreesCelsius
00C0 CONSTANT snsModeDegreesFahrenheit
00E0 CONSTANT snsModeAngleDetection

BASE !

--
John & James Cooper, Wallington, UK



Message has 1 Reply:
  RE: Useful constants
 
(...) <snipped constant descriptions> John, These constants are indeed useful, but would make the resulting srec file pretty big. I have tried to make a TCL script to allow a sort of macro substitution. You can always load the constants after the (...) (26 years ago, 15-Apr-99, to lugnet.robotics.rcx.pbforth)

4 Messages in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR