mirror of
https://github.com/goldenfishs/MRobot.git
synced 2025-04-28 23:39:55 +08:00
20 lines
330 B
C
20 lines
330 B
C
// /*
|
||
// 自定义的数学运算。
|
||
// */
|
||
|
||
// #pragma once
|
||
|
||
|
||
// #include <math.h>
|
||
// #include <stdint.h>
|
||
|
||
// #ifndef M_PI
|
||
// #define M_PI 3.14159265358979323846f
|
||
// #endif
|
||
|
||
// /**
|
||
// * @brief 用于计算ADC数据对应的距离(mm)
|
||
// * @param adc_data
|
||
// * @return
|
||
// */
|
||
// float Adc_to_Distance(uint16_t adc_data);
|