rm_chassis/User/bsp/calc_lib.h
2025-10-17 20:42:25 +08:00

13 lines
380 B
C

#ifndef _CALC_LIB_H_
#define _CALC_LIB_H_
#include "struct_typedef.h"
void user_delay_ms(uint16_t ms);
void abs_limit_fp(fp32 *num, fp32 Limit);
fp32 loop_fp32_constrain(fp32 Input, fp32 minValue, fp32 maxValue);
extern int map(int x, int in_min, int in_max, int out_min, int out_max);
extern fp32 map_fp32(fp32 x, fp32 in_min, fp32 in_max, fp32 out_min, fp32 out_max);
#endif