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 #include "omegaPX209.hpp"
mkelly10 9:d5fcdcb3c89d 10
mkelly10 9:d5fcdcb3c89d 11 omegaPX209::omegaPX209(): depthP(p19)
mkelly10 9:d5fcdcb3c89d 12 {
mkelly10 9:d5fcdcb3c89d 13
mkelly10 9:d5fcdcb3c89d 14 }
mkelly10 9:d5fcdcb3c89d 15
mkelly10 9:d5fcdcb3c89d 16 void omegaPX209::initialize()
mkelly10 9:d5fcdcb3c89d 17 {
mkelly10 9:d5fcdcb3c89d 18 P = 0; // Pressure [psi]
mkelly10 9:d5fcdcb3c89d 19 cal = 12; // Volts per psi
mkelly10 9:d5fcdcb3c89d 20 multiplier = 3.3; // Maximum voltage in
mkelly10 9:d5fcdcb3c89d 21 }
mkelly10 9:d5fcdcb3c89d 22
mkelly10 9:d5fcdcb3c89d 23 float omegaPX209::calcP()
mkelly10 9:d5fcdcb3c89d 24 {
mkelly10 9:d5fcdcb3c89d 25 P = depthP*multiplier*cal;
mkelly10 9:d5fcdcb3c89d 26 return P;
mkelly10 9:d5fcdcb3c89d 27 }