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:
- 10:61b4d6c67dd7
- Parent:
- 9:40197c24ce2c
- Child:
- 11:9c0786fc06b4
--- a/analyzer.cpp Mon Apr 07 14:08:36 2014 +0000
+++ b/analyzer.cpp Mon Apr 07 18:33:53 2014 +0000
@@ -10,7 +10,14 @@
Analyzer::Analyzer()
{
- allMouvement[0x0002] = new Mouvement(0x0002, 0x0002, "Z vertical, main face au ciel");
+ string pan("ACE");
+
+ trame = new Trame(p13, p14);
+ trame->sendATCommand("ID", pan.c_str(), pan.length());// Set le PANID selon le fichier de config
+ trame->sendATCommand("WR", 0, 0); // Écrit la valeur du PANID en mémoire
+ trame->sendATCommand("AC", 0, 0); // Applique les changements effectués
+
+ /*allMouvement[0x0002] = new Mouvement(0x0002, 0x0002, "Z vertical, main face au ciel");
allMouvement[0x0003] = new Mouvement(0x0003, 0x0003, "Z vertical, main face au ciel INVERSE");
allMouvement[0x0004] = new Mouvement(0x0004, 0x0004, "Z vertical, main face au sol");
allMouvement[0x0005] = new Mouvement(0x0005, 0x0005, "Z vertical, main face au sol INVERSE");
@@ -29,7 +36,7 @@
allMouvement[0x0400] = new Mouvement(0x0400, 0x0400, "Y vertical, main face au sol");
allMouvement[0x0500] = new Mouvement(0x0500, 0x0500, "Y vertical, main face au sol INVERSE");
allMouvement[0x0600] = new Mouvement(0x0600, 0x0600, "Y horizontal");
- allMouvement[0x0700] = new Mouvement(0x0700, 0x0700, "Y horizontal INVERSE");
+ allMouvement[0x0700] = new Mouvement(0x0700, 0x0700, "Y horizontal INVERSE");*/
}
Analyzer::~Analyzer()
