From 8f3d5d0a8e9539ebcc203f5dd7c3661cad101a35 Mon Sep 17 00:00:00 2001 From: Leon Lindenfelser Date: Thu, 10 Dec 2015 16:28:45 -0600 Subject: Fixed acceleration values... use int16_t not uint16_t. Added a timer to sensor read loops so they can't get stuck in eternal loops. Changed light sensor data rate from 1.56 to 6.25. --- Layout/LayoutDemoSampling.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Layout/LayoutDemoSampling.h') diff --git a/Layout/LayoutDemoSampling.h b/Layout/LayoutDemoSampling.h index f3faceb..a590966 100644 --- a/Layout/LayoutDemoSampling.h +++ b/Layout/LayoutDemoSampling.h @@ -15,9 +15,9 @@ class LayoutDemoSampling : public Layout { void updateSw2(std::string sw2); void updateCountdown(uint32_t seconds); void updateInterval(uint32_t seconds); - void updateAccelerationX(uint16_t x); - void updateAccelerationY(uint16_t y); - void updateAccelerationZ(uint16_t z); + void updateAccelerationX(int16_t x); + void updateAccelerationY(int16_t y); + void updateAccelerationZ(int16_t z); void updatePressure(float pressure); void updateAltitude(float altitude); void updateTemperature(float temperature); -- cgit v1.2.3