Lab3 Final copy

Dependencies:   mbed MMA7660

Files at this revision

API Documentation at this revision

Comitter:
hellohello
Date:
Tue May 04 11:38:43 2021 +0000
Parent:
5:af5a6c9606e6
Commit message:
lab 3 version 4 with notes

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Mon May 03 17:40:07 2021 +0000
+++ b/main.cpp	Tue May 04 11:38:43 2021 +0000
@@ -2,6 +2,26 @@
 //embedded systems lab question 3 Aidan Cleary T00209564
 //Lab 3: Digital sensors & equations in C
 
+/*
+q2:To test the result of the calculations. I downloaded the clinometer and tested
+the mbed device. The tera term results were very close to the results on my phone app.
+In my code I floated the X,Y,Z and roll angle on tera term. It would change results
+every second.
+
+High-pass filter, LMS algorithm and Kalman filter can be used to reduce offset and drift
+there by improving the static stability and position accuracy by reducing noise, offset.
+
+I initially used a /r/n after the printf statements. This resulted in a new line being
+printed every second full of numbers. It got very confusing. I didn’t want to see a load
+of numbers every second so decided to replace the code to /r instead. This just floated
+the values I wanted to see every second on the tera term interface. This was far easier
+to read and I am satisfied with the result of the program. One other issue is had was trying
+to tell which way was the X, Y and Z axis, but after moving it about by hand I was able to
+eventually figure it out.  In this lab it was also very interesting to see the way that
+formulas are implemented into the C++ language.
+
+*/
+
 #include "mbed.h"//preprosser command
 #include "MMA7660.h"//preprocesser command