$(common_src_path)/HidSensor_Gyro3D.cpp \
$(common_src_path)/HidSensor_Compass3D.cpp \
$(common_src_path)/HidSensor_ALS.cpp \
+ $(common_src_path)/HidSensor_Pressure.cpp \
$(common_src_path)/RotVecSensor.cpp \
$(common_src_path)/SynthCompassSensor.cpp \
$(common_src_path)/OrientationSensor.cpp \
#include "HidSensor_Gyro3D.h"
#include "HidSensor_Compass3D.h"
#include "HidSensor_ALS.h"
+#include "HidSensor_Pressure.h"
#include "OrientationSensor.h"
#include "RotVecSensor.h"
#include "SynthCompassSensor.h"
GyroSensor::sSensorInfo_gyro3D,
SynthCompassSensor::sSensorInfo_compass,
ALSSensor::sSensorInfo_als,
+ PressureSensor::sSensorInfo_pressure,
RotVecSensor::sSensorInfo_rotvec,
OrientationSensor::sSensorInfo_orientation,
};
sensors[gyro] = new GyroSensor();
sensors[compass] = new CompassSensor();
sensors[light] = new ALSSensor();
+ sensors[pressure] = new PressureSensor();
sensors[rotvec] = new RotVecSensor();
sensors[syncompass] = new SynthCompassSensor();
sensors[orientation] = new OrientationSensor();
case ID_M:
return compass;
case ID_PR:
+ return pressure;
case ID_T:
return -EINVAL;
case ID_GY:
rotvec,
syncompass,
orientation,
+ pressure,
numSensorDrivers,
numFds,
};
#define CONVERT_M_MG_VTF16E14_Y(s,d,x) (convert_from_vtf_format(s,d,x)/10)
#define CONVERT_M_MG_VTF16E14_Z(s,d,x) (convert_from_vtf_format(s,d,x)/10)
+/* from bar to mbar(= hPA) */
+#define CONVERT_PR_HPA_VTF16E14(s,d,x) ((1000.0f)*convert_from_vtf_format(s,d,x))
+
/*****************************************************************************/
#endif // SENSOR_CONFIG_H