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:
- spm71
- Date:
- 2018-04-19
- Revision:
- 68:9245d6ce176e
- Parent:
- 66:70efa618c378
- Child:
- 72:aec869655869
File content as of revision 68:9245d6ce176e:
/****************************************************************************** * 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 5000 #define LASER_DELAY 0.125 //timer expired #define WHACK_EXPIRED_TIMER 5 void gnoll(int sensor_no, float * sensor_values); void whack(int sensor_no, float * sensor_values); void update_score(int hit, int miss); #endif