Time is good

Dependencies:   RoboClaw mbed

Fork of Robot2016_2-0 by ARES

Map/Objectif/objectif.cpp

Committer:
IceTeam
Date:
2016-05-04
Revision:
63:176d04975f06
Parent:
62:80a81e4ad9f8
Child:
64:24e1057a97f7

File content as of revision 63:176d04975f06:

#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;
}