bom.c File Reference

Implementation for using the BOM. More...

#include <dragonfly_lib.h>
#include "bom.h"
#include "dio.h"
#include "analog.h"

Defines

#define MONKI   PF0
#define MONKL   _PIN_E2
#define MONK1   _PIN_E3
#define MONK0   _PIN_E4
#define MONK3   _PIN_E6
#define MONK2   _PIN_E7
#define BOM_VALUE_THRESHOLD   200

Functions

void output_high (int which)
void output_low (int which)
int get_max_bom (void)
 Returns the location of the maximum BOM reading.
void bom_on (void)
 Turns the BOM on.
void bom_off (void)
 Turns the BOM off.

Variables

const int lookup [16] = {7,6,5,0xe,1,4,3,2,0xf,0,0xd,8,0xc,0xb,9,0xa}


Detailed Description

Implementation for using the BOM.

Copyright (c) 2007 Colony Project

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Contains functions for using the Bearing and Orientation Module (BOM)

Author:
Colony Project, CMU Robotics Club

Generated on Thu Nov 8 23:15:40 2007 for libdragonfly by  doxygen 1.5.3