Time is good

Dependencies:   RoboClaw mbed

Fork of Robot2016_2-0 by ARES

Committer:
IceTeam
Date:
Wed May 04 23:35:03 2016 +0200
Revision:
60:8d2320a54a32
Parent:
57:86f491f5b25d
Child:
62:80a81e4ad9f8
Commit de test map/objectif

Who changed what in which revision?

UserRevisionLine numberNew contents of line
IceTeam 57:86f491f5b25d 1 #include "objectif.h"
IceTeam 57:86f491f5b25d 2
IceTeam 57:86f491f5b25d 3 /* Dernier Changement : Romain 20h20 */
IceTeam 57:86f491f5b25d 4
IceTeam 60:8d2320a54a32 5 objectif::objectif (int ntype, float nx_obj, float ny_obj, float nthet_obj, AX12 * np, ControlleurPince * npince) {
IceTeam 60:8d2320a54a32 6 Parasol = np;
IceTeam 60:8d2320a54a32 7 pince = npince;
IceTeam 60:8d2320a54a32 8 type = ntype;
IceTeam 60:8d2320a54a32 9 x_objectif = nx_obj;
IceTeam 60:8d2320a54a32 10 y_objectif = ny_obj;
IceTeam 60:8d2320a54a32 11 thet_objectif = nthet_obj;
IceTeam 60:8d2320a54a32 12 }
IceTeam 57:86f491f5b25d 13 bool Objectif::Action () {
IceTeam 57:86f491f5b25d 14 switch(type) {
IceTeam 57:86f491f5b25d 15 case OBJ_BLOC:
IceTeam 60:8d2320a54a32 16 return obj_bloc_action();
IceTeam 60:8d2320a54a32 17 break;
IceTeam 60:8d2320a54a32 18 case OBJ_PARA:
IceTeam 60:8d2320a54a32 19 return obj_para_action();
IceTeam 60:8d2320a54a32 20 break;
IceTeam 57:86f491f5b25d 21 default:
IceTeam 60:8d2320a54a32 22 break;
IceTeam 57:86f491f5b25d 23 }
IceTeam 60:8d2320a54a32 24 }
IceTeam 60:8d2320a54a32 25
IceTeam 60:8d2320a54a32 26 bool Objectif::obj_bloc_action () {
IceTeam 60:8d2320a54a32 27 return true;
IceTeam 60:8d2320a54a32 28 }
IceTeam 60:8d2320a54a32 29
IceTeam 60:8d2320a54a32 30 bool Objectif::obj_para_action(); () {
IceTeam 57:86f491f5b25d 31 return true;
IceTeam 57:86f491f5b25d 32 }