20 lines
298 B
C
20 lines
298 B
C
#ifndef SERVO_CONTROLLER_COMPONENT
|
|
#define SERVO_CONTROLLER_COMPONENT
|
|
|
|
#include "stdint.h"
|
|
|
|
typedef struct
|
|
{
|
|
int16_t currentServoA;
|
|
int16_t targetServoA;
|
|
int16_t currentServoB;
|
|
int16_t targetServoB;
|
|
} ServoState;
|
|
|
|
|
|
extern ServoState servoState;
|
|
|
|
void servoControllerInit();
|
|
|
|
#endif
|