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
omegaPX209/omegaPX209.hpp
- Committer:
- danstrider
- Date:
- 2017-10-23
- Revision:
- 10:085ab7328054
- Parent:
- 9:d5fcdcb3c89d
- Child:
- 14:85b64a4d08e8
File content as of revision 10:085ab7328054:
/* Matthew Kelly October 24th, 2013 The purpose of this class is to define a a data structure with all of the necessary information and member functions... to fully describe a single ultrasonic transducer for use in a relative positioning system. */ #include "mbed.h" #define density_of_water_g_cc 1.00 // g/cm^3 (or 1.03 g/cm^3) class omegaPX209 { public: omegaPX209(PinName pin); void initialize(); float getPsi(); // returns pressure [psi] float getDepth(); // returns water depth [ft] private: AnalogIn depthP; Ticker pulse; float P; // Pressure [psi] float cal; // Volts per psi float multiplier; // Maximum voltage in (of ADC system) };