movemotor function. still to finish input variables and how to pass PWM and Direction pin and QEI

Dependencies:   QEI mbed

movemotor.h

Committer:
roosbulthuis
Date:
2015-10-19
Revision:
0:7098cdb29180

File content as of revision 0:7098cdb29180:

#ifndef MOVEMOTOR_H_
#define MOVEMOTOR_H_

void Go_flag_motor();
double PI(double error, const double Kp, const double Ki, double Ts, double &e_int);
void motor1_Controller();
void move_motor(string state);

Ticker aansturen;
volatile bool flag_motor;
QEI wheel (PTC10, PTC11, NC, 624); //how to call this?
const double pulses_per_revolution;
const double M1_timestep;
const int cw;
const int ccw;

#endif /* MOVEMOTOR_H_ */