aWWDefs.teaIndex

This file contains mode codes and default defined values for use with the Wheel Watcher.  This device may be attached to a servo.  It provides quadrature encoder outputs that can be used to determine servo position.  A typical application of the Wheel Watcher is to use a pair of them to provide feedback for two modified servos mounted on a differentially steered robot base.  The aWWEnc.tea program may be launched as a separate process that continually monitors encoder input.

If necessary, a user can edit this file to change the IO assignments, but this is not recommended.

Mode Codes

AWWDEFS_A_AND_B 0 Mode code for doing 32 counts per revolution.
  Uses channels A and B as inputs.
  AWWDEFS_B_AND_DIR 1 Mode code for doing 64 counts per revolution.
  Uses DIR and channel B as inputs.
  AWWDEFS_QUADCT_AB 2 Mode code for doing 128 counts per revolution.
  Uses channels A and B as inputs.

Default Defined Values

AWWDEFS_LMO_SERVO 0 Index of output used to drive right servo.
  AWWDEFS_RMO_SERVO 1 Index of output used to drive right servo.
  AWWDEFS_LMO_DIR 1 Index of digital IO pin used for left direction input.
  AWWDEFS_LMO_CHA 1 Index of digital IO pin used for left channel A input.
  AWWDEFS_LMO_CHB 2 Index of digital IO pin used for left channel B input.
  AWWDEFS_RMO_DIR 3 Index of digital IO pin used for right direction input.
  AWWDEFS_RMO_CHA 3 Index of digital IO pin used for right channel A input.
  AWWDEFS_RMO_CHB 4 Index of digital IO pin used for right channel B input.
  AWWDEFS_LMO_ENC 28 Index of 2-byte scratchpad location used to store left encoder tally.
  AWWDEFS_RMO_ENC 30 Index of 2-byte scratchpad location used to store right encoder tally.

Example:

Related:


version: 1.0, build n.a.
© Copyright 1994-2012 Acroname, Inc., Boulder, Colorado.  All rights reserved.