Skip to content

Latest commit

 

History

History
73 lines (43 loc) · 3.54 KB

README.md

File metadata and controls

73 lines (43 loc) · 3.54 KB

Summary

Members Descriptions
class Walrus Class to interface with the Walrus submersible temperature and presure sensor.

class Walrus

Class to interface with the Walrus submersible temperature and presure sensor.

The Walrus is an encapsulated submersible pressure and temperature sensor intended for water-level or barometric monitoring.

DOI

Summary

Members Descriptions
public Walrus() Instantiate Walrus object.
public uint8_t begin(uint8_t Address_) Begin communications with the Walrus using a prescribed address.
public float getTemperature(uint8_t Location) Return calculated temperature from Walrus.
public float getTemperature() Return calculated temperature from sensor, using a predefined offset. WHAT DOES THIS OFFSET DO?
public float getPressure() Return calculated pressure from sensor.
public String getHeader() Return header.
public String getString() Return measurement data as a string.

Members

public Walrus()

Instantiate Walrus object.

public uint8_t begin(uint8_t Address_)

Begin communications with the Walrus using a prescribed address.

Parameters

  • Address_ I2C address of Walrus DOES NOT YET USE A VARIABLE ADDRESS! THIS DEFAULT ADDRESS CURRENTLY CLASHES WITH HAAR'S DEFAULT!

public float getTemperature(uint8_t Location)

Return calculated temperature from Walrus.

This calculated temperature can be from either the MS5803 sensor, which primarily measures pressure, or from the

Parameters

  • Location TEMP_REG_0: Read dedicated temperature sensor. TEMP_REG_1: Read temperature sensor withn the MS5803. APPEARS TO JUST WORK WIHT TEMP_REG_0 FOR NOW

public float getTemperature()

Return calculated temperature from sensor, using a predefined offset. WHAT DOES THIS OFFSET DO?

public float getPressure()

Return calculated pressure from sensor.

This is the MS5803 sensor, which can come in a variety of different pressure ranges and sensitivities.

public String getHeader()

Return header.

"Pressure [mBar],Temp DH [C],Temp DHt [C],"

public String getString()

Return measurement data as a string.

String(getPressure()) + "," + String(getTemperature(0))

  • "," + String(getTemperature(1)) + ",";

Generated by Moxygen