ARES / Mbed 2 deprecated Robot 2016

Dependencies:   mbed

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?

UserRevisionLine numberNew 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 }