Monitoring the Pressure Difference

In this code we are going to monitor the pressure values which will be displayed on our monitor.

.

// Do not remove the include below
#include "PlutoPilot.h"
#include "Estimate.h"
#include "Utils.h"
#include "Sensor.h"

//The setup function is called once at Pluto's hardware startup
void plutoInit()
{
// Add your hardware initialization code here
}



//The function is called once before plutoLoop when you activate Developer Mode
void onLoopStart()
{
  // do your one time stuff here

}



// The loop function is called in an endless loop
void plutoLoop()
{

	Monitor.println("Pressure is ", Barometer.get(PRESSURE));
//Add your repeated code here

}



//The function is called once after plutoLoop when you deactivate Developer Mode
void onLoopFinish()
{

// do your cleanup stuffs here

}




Last updated

Was this helpful?