summaryrefslogtreecommitdiff
path: root/Layout/LayoutDemoSampling.h
diff options
context:
space:
mode:
authorLeon Lindenfelser <llindenfelser@multitech.com>2015-12-10 16:28:45 -0600
committerLeon Lindenfelser <llindenfelser@multitech.com>2015-12-10 16:28:45 -0600
commit8f3d5d0a8e9539ebcc203f5dd7c3661cad101a35 (patch)
treebb04e45e7d6c97098048bc64358b513e69644dce /Layout/LayoutDemoSampling.h
parent0ae5b17f7977f197e59110d5cf6450d49ae0ba24 (diff)
downloadmtdot-box-evb-factory-firmware-8f3d5d0a8e9539ebcc203f5dd7c3661cad101a35.tar.gz
mtdot-box-evb-factory-firmware-8f3d5d0a8e9539ebcc203f5dd7c3661cad101a35.tar.bz2
mtdot-box-evb-factory-firmware-8f3d5d0a8e9539ebcc203f5dd7c3661cad101a35.zip
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.
Diffstat (limited to 'Layout/LayoutDemoSampling.h')
-rw-r--r--Layout/LayoutDemoSampling.h6
1 files changed, 3 insertions, 3 deletions
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);