Car/Peripheral/Inc/infrared.h
2024-07-16 20:06:16 +08:00

22 lines
507 B
C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#ifndef __INFRARED_H
#define __INFRARED_H
// 红外避障模块
#include "main.h"
// 有障碍
#define INFRARED_MEET 0
// 无障碍
#define INFRARED_NONE 1
/// @brief 红外模块检测左前方20-30厘米估计值是否有障碍
/// @return 有障碍INFRARED_MEET 无障碍INFRARED_NONE
uint8_t INFRARED_GetL();
/// @brief 红外模块检测右前方20-30厘米估计值是否有障碍
/// @return 有障碍INFRARED_MEET 无障碍INFRARED_NONE
uint8_t INFRARED_GetR();
#endif