#pragma once

#include "mcuRealTimeClock.hpp"

static TIM_HandleTypeDef hBE_CTDTimer = { .Instance = TIM2 };


//TODO This needs to be a singleton
class BuoyancyEngine
{
public:
	BuoyancyEngine();
	void StartSBE41Timer();
	void StopSBE41Timer();
	
	float getBellowsPosition();
	float increaseBuoyancy();
	float decreaseBuoyancy();
	float stopMotor();
	
protected:
	float runPID(float pressure);
	
private:
	void InitSBE41Timer();
}
;
