mirror of
https://gitee.com/dlmu-cone/bf_original_balance_chassis
synced 2026-07-24 03:27:45 +08:00
简化了电机测量的命名,完成初版平衡底盘的功能编写,待测试方向和符号的正确性
This commit is contained in:
@@ -3,15 +3,15 @@
|
||||
|
||||
// 一些module的通用数值型定义,注意条件macro兼容,一些宏可能在math.h中已经定义过了
|
||||
|
||||
|
||||
#ifndef PI
|
||||
#define PI 3.1415926535f
|
||||
#endif // !PI
|
||||
#endif
|
||||
#define PI2 (PI * 2.0f) // 2 pi
|
||||
|
||||
#define RAD_2_ANGLE 57.2957795f // 180/pi
|
||||
#define ANGLE_2_RAD 0.01745329252f // pi/180
|
||||
#define RAD_2_DEGREE 57.2957795f // 180/pi
|
||||
#define DEGREE_2_RAD 0.01745329252f // pi/180
|
||||
|
||||
#define RPM_2_ANGLE_PER_SEC 6.0f // ×360°/60sec
|
||||
#define RPM_2_ANGLE_PER_SEC 6.0f // ×360°/60sec
|
||||
#define RPM_2_RAD_PER_SEC 0.104719755f // ×2pi/60sec
|
||||
|
||||
#endif // !GENERAL_DEF_H
|
||||
Reference in New Issue
Block a user