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
Map/Obstacles/Obs_robot.cpp@0:b127c787a51b, 2015-05-24 (annotated)
- Committer:
- Jagang
- Date:
- Sun May 24 12:30:47 2015 +0000
- Revision:
- 0:b127c787a51b
Nettoyage du code d'asserv.; L'asserv ne fonctionne plus, juste test, moteurs ? 20% sur 1m
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Jagang | 0:b127c787a51b | 1 | #include "Obs_robot.h" |
Jagang | 0:b127c787a51b | 2 | |
Jagang | 0:b127c787a51b | 3 | Obs_robot::Obs_robot(float robotRadius, int id, float x, float y, float size, float temps):Obs_circle(robotRadius,id,x,y,size) |
Jagang | 0:b127c787a51b | 4 | { |
Jagang | 0:b127c787a51b | 5 | this->temps = temps; |
Jagang | 0:b127c787a51b | 6 | } |
Jagang | 0:b127c787a51b | 7 | |
Jagang | 0:b127c787a51b | 8 | void Obs_robot::update(float dt) |
Jagang | 0:b127c787a51b | 9 | { |
Jagang | 0:b127c787a51b | 10 | temps -= dt; |
Jagang | 0:b127c787a51b | 11 | if(temps <= 0) |
Jagang | 0:b127c787a51b | 12 | desactivate(); |
Jagang | 0:b127c787a51b | 13 | } |