Bruno Allaire-Lemay
/
APP1test
df
Fork of APP1 by
TestAccelerometer.hpp@8:862e28c7f6f6, 2017-01-15 (annotated)
- Committer:
- dupm2216
- Date:
- Sun Jan 15 03:32:36 2017 +0000
- Revision:
- 8:862e28c7f6f6
- Parent:
- 6:3facf0329142
- Child:
- 9:12519f9dd3cd
Fix NaN bug with forces > 1g; ; Problem was with forces higher than 1g because the algorithm uses arc cos with this value.; Fix is to assume the accelerometer is flat when the force is > 1g
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
dupm2216 | 3:1a9d0f0a50bf | 1 | #ifndef TEST_ACCELEROMETER_HPP |
dupm2216 | 3:1a9d0f0a50bf | 2 | #define TEST_ACCELEROMETER_HPP |
dupm2216 | 3:1a9d0f0a50bf | 3 | |
dupm2216 | 3:1a9d0f0a50bf | 4 | namespace accelerometer |
dupm2216 | 3:1a9d0f0a50bf | 5 | { |
dupm2216 | 3:1a9d0f0a50bf | 6 | void run_all_tests(); |
dupm2216 | 3:1a9d0f0a50bf | 7 | void test_raw_axis_data_to_int(); |
dupm2216 | 3:1a9d0f0a50bf | 8 | void test_set_standby_and_active(); |
dupm2216 | 5:f59b51ac4b40 | 9 | void test_g_force_from_int_axis_data(); |
dupm2216 | 5:f59b51ac4b40 | 10 | void test_angle_from_int_axis_data(); |
dupm2216 | 8:862e28c7f6f6 | 11 | void test_angle_from_int_axis_data_when_above_1g_is_corrected_to_zero(); |
dupm2216 | 3:1a9d0f0a50bf | 12 | }; |
dupm2216 | 3:1a9d0f0a50bf | 13 | |
dupm2216 | 3:1a9d0f0a50bf | 14 | #endif |