Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of Lab_6_WaG by
wag.h
- Committer:
- phn10
- Date:
- 2018-04-19
- Revision:
- 64:72f7f5757f0d
- Parent:
- 58:69f9a4607a16
- Child:
- 65:b8f3339b9268
File content as of revision 64:72f7f5757f0d:
/******************************************************************************
* EECS 397
*
* Assignment Name: Lab 6: WaG
*
* Authors: Sam Morrison and Phong Nguyen
* File name: utility.h
* Purpose: Header for WaG functions
*
* Created: 04/03/2018
* Last Modified: 04/03/2018
*
******************************************************************************/
#ifndef WAG_H
#define WAG_H
#include "mbed.h"
#include "io_pins.h"
#include "analog.h"
#include "display.h"
#include "laser.h"
#include "stepper.h"
#include "utility.h"
//Station Constants
#define STATION_A 0
#define STATION_B 1
//player constants
#define GNOLLER 1
#define WHACKER 0
//Calibration status constants
#define CALIBRATED 1
#define NOT_CALIBRATED 0
//delay times
#define VOLLEY_DELAY 5
#define LASER_DELAY 0.125
//timer expired
#define WHACK_EXPIRED_TIMER 5
void gnoll();
void whack(int sensor_no, float * sensor_values);
#endif
