Time is good

Dependencies:   RoboClaw mbed

Fork of Robot2016_2-0 by ARES

Map/Objectif/objectif.cpp

Committer:
IceTeam
Date:
2016-05-04
Revision:
60:8d2320a54a32
Parent:
57:86f491f5b25d
Child:
62:80a81e4ad9f8

File content as of revision 60:8d2320a54a32:

#include "objectif.h"

/* Dernier Changement : Romain 20h20 */

objectif::objectif (int ntype, float nx_obj, float ny_obj, float nthet_obj, AX12 * np, ControlleurPince * npince) {
	Parasol = np;
	pince = npince;
	type = ntype;
	x_objectif = nx_obj;
	y_objectif = ny_obj;
	thet_objectif = nthet_obj;
}
bool Objectif::Action () {
	switch(type) {
		case OBJ_BLOC:
			return obj_bloc_action();
			break;
		case OBJ_PARA:
			return obj_para_action();
			break;
		default:
			break;
	}
}

bool Objectif::obj_bloc_action () {
	return true;
}

bool Objectif::obj_para_action(); () {
	return true;
}