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 PID ADXL345 Camera_LS_Y201 ITG3200 RangeFinder mbos xbee_lib Motor Servo
Module_Batterie/Module_Batterie.cpp@36:1bbd2fb7d2c8, 2014-03-19 (annotated)
- Committer:
- Gaetan
- Date:
- Wed Mar 19 11:01:10 2014 +0000
- Revision:
- 36:1bbd2fb7d2c8
- Parent:
- 15:793cf784dc7a
Checksum correct pour l'envoi de n'importe quel message Mavlink. Reste ? g?rer la reception de messages
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Gaetan | 10:c8d73680b9fd | 1 | /* Copyright (c) 2012 - 2013 AUTHEUR |
| Gaetan | 10:c8d73680b9fd | 2 | * |
| Gaetan | 10:c8d73680b9fd | 3 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED |
| Gaetan | 10:c8d73680b9fd | 4 | * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| Gaetan | 10:c8d73680b9fd | 5 | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT |
| Gaetan | 10:c8d73680b9fd | 6 | * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, |
| Gaetan | 10:c8d73680b9fd | 7 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT |
| Gaetan | 10:c8d73680b9fd | 8 | * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| Gaetan | 10:c8d73680b9fd | 9 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| Gaetan | 10:c8d73680b9fd | 10 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| Gaetan | 10:c8d73680b9fd | 11 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| Gaetan | 10:c8d73680b9fd | 12 | */ |
| Gaetan | 10:c8d73680b9fd | 13 | |
| Gaetan | 10:c8d73680b9fd | 14 | /* |
| Gaetan | 10:c8d73680b9fd | 15 | * Description |
| Gaetan | 10:c8d73680b9fd | 16 | * Input |
| Gaetan | 10:c8d73680b9fd | 17 | * Output |
| NicolasH | 14:ca1bcc05e423 | 18 | */ |
| NicolasH | 14:ca1bcc05e423 | 19 | |
| NicolasH | 14:ca1bcc05e423 | 20 | #include "Module_Batterie.h" |
| NicolasH | 14:ca1bcc05e423 | 21 | |
| NicolasH | 14:ca1bcc05e423 | 22 | // Pointeur sur la classe systeme d'exploitation instancié dans le main |
| NicolasH | 14:ca1bcc05e423 | 23 | extern mbos *os; |
| NicolasH | 14:ca1bcc05e423 | 24 | |
| NicolasH | 14:ca1bcc05e423 | 25 | |
| NicolasH | 14:ca1bcc05e423 | 26 | /* CONSRTRUCTEUR(S) */ |
| NicolasH | 14:ca1bcc05e423 | 27 | ModuleBatterie::ModuleBatterie() |
| NicolasH | 14:ca1bcc05e423 | 28 | { |
| NicolasH | 14:ca1bcc05e423 | 29 | |
| NicolasH | 14:ca1bcc05e423 | 30 | } |
| NicolasH | 14:ca1bcc05e423 | 31 | |
| NicolasH | 14:ca1bcc05e423 | 32 | /* DESTRUCTEUR */ |
| NicolasH | 14:ca1bcc05e423 | 33 | ModuleBatterie::~ModuleBatterie() |
| NicolasH | 14:ca1bcc05e423 | 34 | { |
| NicolasH | 14:ca1bcc05e423 | 35 | |
| NicolasH | 14:ca1bcc05e423 | 36 | } |
| NicolasH | 14:ca1bcc05e423 | 37 | |
| NicolasH | 14:ca1bcc05e423 | 38 | /* Point d'entrée de la tache Module Batterie */ |
| Gaetan | 15:793cf784dc7a | 39 | void ModuleBatterie::ModuleBatterie_Task(void) |
| NicolasH | 14:ca1bcc05e423 | 40 | { |
| NicolasH | 14:ca1bcc05e423 | 41 | while(1){ |
| NicolasH | 14:ca1bcc05e423 | 42 | // Code |
| NicolasH | 14:ca1bcc05e423 | 43 | } |
| NicolasH | 14:ca1bcc05e423 | 44 | } |
| NicolasH | 14:ca1bcc05e423 | 45 | |
| NicolasH | 14:ca1bcc05e423 | 46 |
