// $Id: FakeLocation.h,v 1.1.2.2 2003/08/26 09:08:06 cssharp Exp $ /* Copyright (c) 2002 Intel Corporation * All rights reserved. * * This file is distributed under the terms in the attached INTEL-LICENSE * file. If you do not find these files, copies can be found by writing to * Intel Research Berkeley, 2150 Shattuck Avenue, Suite 1300, Berkeley, CA, * 94704. Attention: Intel License Inquiry. * * Author: Matt Welsh */ /** * Provides a "fake" location value to motes based on reading three * ADC values for X, Y, and Z coordinates. The TinyViz LocationPlugin * sets these values to represent the location of the mote in the display. * @author Matt Welsh */ enum { FAKE_LOCATION_X_PORT = 128, FAKE_LOCATION_Y_PORT = 129, FAKE_LOCATION_Z_PORT = 130, FAKE_LOCATION_SCALING = 65535, /* Value of 1.0 in location space */ };