Time is good

Dependencies:   RoboClaw mbed

Fork of Robot2016_2-0 by ARES

Committer:
IceTeam
Date:
Wed May 04 21:51:00 2016 +0000
Revision:
63:176d04975f06
Parent:
62:80a81e4ad9f8
Child:
64:24e1057a97f7
Correction des TREEEEEEES nombreux bugs;

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 62:80a81e4ad9f8 13
IceTeam 62:80a81e4ad9f8 14 bool objectif::Action () {
IceTeam 57:86f491f5b25d 15 switch(type) {
IceTeam 57:86f491f5b25d 16 case OBJ_BLOC:
IceTeam 60:8d2320a54a32 17 return obj_bloc_action();
IceTeam 60:8d2320a54a32 18 break;
IceTeam 60:8d2320a54a32 19 case OBJ_PARA:
IceTeam 60:8d2320a54a32 20 return obj_para_action();
IceTeam 60:8d2320a54a32 21 break;
IceTeam 57:86f491f5b25d 22 default:
IceTeam 60:8d2320a54a32 23 break;
IceTeam 57:86f491f5b25d 24 }
IceTeam 60:8d2320a54a32 25 }
IceTeam 60:8d2320a54a32 26
IceTeam 62:80a81e4ad9f8 27 bool objectif::obj_bloc_action () {
IceTeam 60:8d2320a54a32 28 return true;
IceTeam 60:8d2320a54a32 29 }
IceTeam 60:8d2320a54a32 30
IceTeam 63:176d04975f06 31 bool objectif::obj_para_action() {
IceTeam 57:86f491f5b25d 32 return true;
IceTeam 57:86f491f5b25d 33 }