diff projects/d-box/DboxSensors.h @ 15:901d205d1a3c

Updated to latest PRU library; external PRU file no longer needed. Also catch SIGTERM as well as SIGINT to clean up gracefully.
author andrewm
date Sat, 07 Feb 2015 16:41:56 +0000
parents 8a575ba3ab52
children 59edd5780fef
line wrap: on
line diff
--- a/projects/d-box/DboxSensors.h	Fri Jan 23 15:35:10 2015 +0000
+++ b/projects/d-box/DboxSensors.h	Sat Feb 07 16:41:56 2015 +0000
@@ -37,7 +37,7 @@
 class DboxSensors
 {
 public:
-	int initSensors(int tk0_bus, int tk0_address, int tk1_bus, int tk1_address, int tk_file, int fsr_pin, int fsrmax, bool useNewSensors, int gpio0=-1, int gpio1=-1);
+	int initSensors(int tk0_bus, int tk0_address, int tk1_bus, int tk1_address, int tk_file, int fsr_pin, int fsrmax, int sensorTypeToUse, int gpio0=-1, int gpio1=-1);
 	int readSensors();
 	int getTKTouchCount(int index);
 	float *getTKXPositions(int index);
@@ -50,7 +50,7 @@
 	~DboxSensors();
 
 private:
-	bool newSensors;
+	int sensorType;
 
 	I2c_TouchKey TK0;
 	int tk0_touchCnt;