PI depth control test
Dependencies: MS5803 mbed Servo
Diff: IMUDepthControl.h
- Revision:
- 0:df16f9bfc07b
- Child:
- 1:07e046bbcb84
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/IMUDepthControl.h Wed Aug 06 20:17:02 2014 +0000 @@ -0,0 +1,16 @@ +#pragma once +#include "MS5803.h" + +class IMUDepthControl +{ +private: + MS5803 IMU; + float m_set_point; + float m_Kp; + float m_Ki; + float m_errorsum; +public: + IMUDepthControl(PinName sda, PinName scl, float Kp, float Ki); + void setPoint(float setpoint); + float iterate(); +}; \ No newline at end of file