engine_control/source/application/include/engines.h

32 lines
529 B
C
Raw Permalink Normal View History

2016-08-11 12:06:45 +00:00
/*
* engines.h
*
* Created on: Aug 10, 2016
* Author: tkl
*/
#ifndef SOURCE_APPLICATION_INCLUDE_ENGINES_H_
#define SOURCE_APPLICATION_INCLUDE_ENGINES_H_
struct engine_ctrl {
const struct driver *pwm;
};
static struct engine_ctrl left_forward = {
2016-08-22 19:56:12 +00:00
.pwm = &pwm_4,
2016-08-11 12:06:45 +00:00
};
2016-08-11 19:35:45 +00:00
static struct engine_ctrl right_backward = {
2016-08-22 19:56:12 +00:00
.pwm = &pwm_3,
2016-08-11 12:06:45 +00:00
};
static struct engine_ctrl right_forward = {
2016-08-22 19:56:12 +00:00
.pwm = &pwm_2,
2016-08-11 12:06:45 +00:00
};
2016-08-11 19:35:45 +00:00
static struct engine_ctrl left_backward = {
2016-08-22 19:56:12 +00:00
.pwm = &pwm_1,
2016-08-11 19:35:45 +00:00
};
2016-08-11 12:06:45 +00:00
#endif /* SOURCE_APPLICATION_INCLUDE_ENGINES_H_ */