working version with calibration done

Fork of Eurobot2013 by Oskar Weigl

globals.h

Committer:
xiaxia686
Date:
2013-04-09
Revision:
11:5ba926692210
Parent:
10:2bd9f4e02b74

File content as of revision 11:5ba926692210:

#ifndef GLOBALS_H
#define GLOBALS_H

#include "mbed.h"
#define PI 3.14159265

#define ROBOT_PRIMARY

// IR turret defines go here, p30 is reserved for the hardware counter
#define STEPPER_PIN p21 //p21 pwmout
#define IR_SENSOR_PIN p17

// serial interface to the mainboard
#define MBED_MAIN_SERIAL_TX p28
#define MBED_MAIN_SERIAL_RX p27



//enables ui
//#define UION



#ifdef ROBOT_PRIMARY
// Primary defs go here

#else
// Secondary defs go here

#endif



//sonar constants
static const float sonarvariance = 0.01*0.01; //0.01m std

//IR constants
static const float IRvariance = 0.0073*0.0073; //std = 0.0073

//High speed serial port
extern Serial pc;


#endif