Example #1
0
static PyObject* set_motor_value_python(PyObject* self, PyObject* args){
	int ret,motor,val;
	PyObject* d;METH_NOARGS
	if (!PyArg_ParseTuple(args, "Oii", &d,&motor,&val))
		return NULL;
	struct ms_control* data;
	data = (struct ms_control*)PyLong_AsVoidPtr(d);
	ret=set_motor_value(data,motor,val);
	return Py_BuildValue("i", ret);
}
Example #2
0
void Moteur::eteindre()
{
     set_motor_value(0);
}
Example #3
0
void Moteur::allumer()
{
    set_motor_value(0);
}