17 lines
339 B
C
17 lines
339 B
C
#ifndef MOTORENCODER_H
|
|
#define MOTORENCODER_H
|
|
|
|
#include "zf_common_typedef.h"
|
|
|
|
typedef union{
|
|
uint16_t raw;
|
|
int16_t value;
|
|
} motor_encoder_data_t;
|
|
|
|
void motor_encoder_init(void);
|
|
void motor_encoder_update(void);
|
|
|
|
extern volatile motor_encoder_data_t motor_speed_right;
|
|
extern volatile motor_encoder_data_t motor_speed_left;
|
|
|
|
#endif |