NXC: polling the value of the Dexter pressure sensor (70 psi version):
Code: Select all
task main(){
int val = SensorValue[port];
pressure = ((val / 1023) - 0.04) / 0.0018;
}
Code: Select all
task main(){
int val = SensorValue[port];
pressure = ((val / 1023) - 0.04) / 0.0018;
}
Users browsing this forum: No registered users and 1 guest