most functionality to splashdwon, find neutral and start mission. short timeouts still in code for testing, will adjust to go directly to sit_idle after splashdown

Dependencies:   mbed MODSERIAL FATFileSystem

Committer:
mkelly10
Date:
Fri Oct 20 11:41:22 2017 +0000
Revision:
9:d5fcdcb3c89d
Child:
10:085ab7328054
Tested 10/19/17 Folders

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mkelly10 9:d5fcdcb3c89d 1 /*
mkelly10 9:d5fcdcb3c89d 2 Matthew Kelly
mkelly10 9:d5fcdcb3c89d 3 October 24th, 2013
mkelly10 9:d5fcdcb3c89d 4 The purpose of this class is to define a a data structure with all of the necessary information and member functions...
mkelly10 9:d5fcdcb3c89d 5 to fully describe a single ultrasonic transducer for use in a relative positioning system.
mkelly10 9:d5fcdcb3c89d 6 */
mkelly10 9:d5fcdcb3c89d 7
mkelly10 9:d5fcdcb3c89d 8 #include "mbed.h"
mkelly10 9:d5fcdcb3c89d 9
mkelly10 9:d5fcdcb3c89d 10 class omegaPX209 {
mkelly10 9:d5fcdcb3c89d 11 public:
mkelly10 9:d5fcdcb3c89d 12 omegaPX209();
mkelly10 9:d5fcdcb3c89d 13 void initialize();
mkelly10 9:d5fcdcb3c89d 14 float calcP(); // Calculates pressure
mkelly10 9:d5fcdcb3c89d 15
mkelly10 9:d5fcdcb3c89d 16 private:
mkelly10 9:d5fcdcb3c89d 17 AnalogIn depthP;
mkelly10 9:d5fcdcb3c89d 18 float P; // Pressure [psi]
mkelly10 9:d5fcdcb3c89d 19 float cal; // Volts per psi
mkelly10 9:d5fcdcb3c89d 20 float multiplier; // Maximum voltage in
mkelly10 9:d5fcdcb3c89d 21
mkelly10 9:d5fcdcb3c89d 22 };