g_captureID = num;
}
- //cvSetCaptureProperty(g_capture, CV_CAP_PROP_FRAME_WIDTH, width);
- //cvSetCaptureProperty(g_capture, CV_CAP_PROP_FRAME_HEIGHT, height);
+ cvSetCaptureProperty(g_capture, CV_CAP_PROP_FRAME_WIDTH, width);
+ cvSetCaptureProperty(g_capture, CV_CAP_PROP_FRAME_HEIGHT, height);
*frame = cvQueryFrame(g_capture);
result = (*frame != NULL);
Log(LOGDEBUG, "GET IMAGE?");
IplImage * frame = NULL;
- result = Camera_GetImage( 0, 1600, 1200 ,&frame); // Get a 1600x1200 image and place it into src
+ result = Camera_GetImage( 0, 800, 600,&frame); // Get a 1600x1200 image and place it into src
Log(LOGDEBUG, "Got image...");
// If an error occured when capturing image then return
double Vout = ADC_TO_MVOLTS(adc);
return ((Vout - 0.1*Vs)/(0.8*Vs))*(Pmax - Pmin) + Pmin;
*/
-
- return Data_Calibrate((double)adc, high_raw, high_cal, sizeof(high_raw)/sizeof(double));
+ return adc;
+ //return Data_Calibrate((double)adc, high_raw, high_cal, sizeof(high_raw)/sizeof(double));
}
case PRES_LOW0:
// Not calibrated!
- return (200.0 * (adc / ADC_RAW_MAX));
+ //return (200.0 * ((double)adc / ADC_RAW_MAX));
+ return adc;
default:
Fatal("Unknown Pressure id %d", id);
return -1; // Should never happen
$("#start-widget").hide();
} else {
$("#start-widget").show();
+ $("#start-widget input").removeAttr("disabled");
$("#experiment-stop").hide();
$("#pressure-widget").hide();
}