Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed PowerControl
Fork of Projet_S5 by
Diff: analyzer.cpp
- Revision:
- 9:40197c24ce2c
- Parent:
- 8:9bf215a760f5
- Child:
- 10:61b4d6c67dd7
--- a/analyzer.cpp Sat Apr 05 22:40:09 2014 +0000
+++ b/analyzer.cpp Mon Apr 07 14:08:36 2014 +0000
@@ -1,3 +1,11 @@
+/*!
+ * \file analyzer.cpp
+ * \brief Class that analyzes the mouvement in C and C++
+ * \author Equipe P02
+ * \version 0.1
+ * \date 02/04/2014
+ */
+
#include "analyzer.h"
Analyzer::Analyzer()
@@ -41,9 +49,9 @@
bool deplacement[3] = {0};
int code_mouvement = 0;
- deplacement[0] = x.difference();
- deplacement[1] = y.difference();
- deplacement[2] = z.difference();
+ deplacement[0] = x.isMouvement();
+ deplacement[1] = y.isMouvement();
+ deplacement[2] = z.isMouvement();
Serial pc(USBTX, USBRX);
