Mindstorms 3rd Party ROBOTC Drivers RobotC
[Home] [Download] [Submit a bug/suggestion] [ROBOTC Forums] [Blog] [Support this project]
Files | Defines | Functions

dPressure Sensor
[Dexter Industries]

Files

file  dexterind-pressure.h
 

ROBOTC dPressure Sensor Driver.


Defines

#define DPRESS_VREF   4.85

Functions

bool DPRESSreadPress250kPa (tSensors link, float &pressure)
bool DPRESSreadPress250PSI (tSensors link, float &pressure)
bool DPRESSreadPress500kPa (tSensors link, float &pressure)
bool DPRESSreadPress500PSI (tSensors link, float &pressure)

Detailed Description

Dexter Industries dPressure Sensor driver


Define Documentation

#define DPRESS_VREF   4.85

The voltage reference is assumed to be around 4V85

Definition at line 38 of file dexterind-pressure.h.


Function Documentation

bool DPRESSreadPress250kPa ( tSensors  link,
float &  pressure 
)

Read the pressure in kiloPascals
Note: This function is for the dPressure 250

Parameters:
linkthe dPressure Sensor port number
pressurethe pressure in kiloPascals
Returns:
true if no error occured, false if it did
Examples:
dexterind-pressure-test1.c.

Definition at line 55 of file dexterind-pressure.h.

bool DPRESSreadPress250PSI ( tSensors  link,
float &  pressure 
)

Read the pressure in kiloPascals
Note: This function is for the dPressure 250

Parameters:
linkthe dPressure Sensor port number
pressurethe pressure in Pounds per Square Inch
Returns:
true if no error occured, false if it did
Examples:
dexterind-pressure-test1.c.

Definition at line 86 of file dexterind-pressure.h.

bool DPRESSreadPress500kPa ( tSensors  link,
float &  pressure 
)

Read the pressure in kiloPascals
Note: This function is for the dPressure 500

Parameters:
linkthe dPressure 500 Sensor port number
pressurethe pressure in kiloPascals
Returns:
true if no error occured, false if it did

Definition at line 98 of file dexterind-pressure.h.

bool DPRESSreadPress500PSI ( tSensors  link,
float &  pressure 
)

Read the pressure in kiloPascals
Note: This function is for the dPressure 500

Parameters:
linkthe dPressure 500 Sensor port number
pressurethe pressure in Pounds per Square Inch
Returns:
true if no error occured, false if it did

Definition at line 129 of file dexterind-pressure.h.