13 lines
328 B
C
13 lines
328 B
C
#ifndef GRAYSCALESENSOR_H
|
|
#define GRAYSCALESENSOR_H
|
|
|
|
#include "zf_common_typedef.h"
|
|
|
|
extern volatile float grayscale_sensor_position; // 存储小车相对于黑线的位置
|
|
|
|
void grayscale_sensor_init(void);
|
|
void grayscale_sensor_scan(void);
|
|
void grayscale_sensor_set_white(void);
|
|
void grayscale_sensor_set_black(void);
|
|
|
|
#endif |