mirror of
https://github.com/goldenfishs/MRobot.git
synced 2025-05-20 00:50:55 +08:00
修改报错
This commit is contained in:
parent
be987d6bdd
commit
37d6f70055
@ -3,6 +3,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "filter.h"
|
#include "filter.h"
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
#include "user_math.h"
|
#include "user_math.h"
|
||||||
|
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
#include "pid.h"
|
#include "pid.h"
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
#include "user_math.h"
|
#include "user_math.h"
|
||||||
|
|
||||||
#define SIGMA 0.000001f
|
#define SIGMA 0.000001f
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
#include "user_math.h"
|
#include "user_math.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <stdint.h>
|
||||||
inline float InvSqrt(float x) {
|
inline float InvSqrt(float x) {
|
||||||
//#if 0
|
//#if 0
|
||||||
/* Fast inverse square-root */
|
/* Fast inverse square-root */
|
||||||
@ -86,17 +86,3 @@ inline void CircleAdd(float *origin, float delta, float range) {
|
|||||||
* @param origin 被操作的值
|
* @param origin 被操作的值
|
||||||
*/
|
*/
|
||||||
inline void CircleReverse(float *origin) { *origin = -(*origin) + M_2PI; }
|
inline void CircleReverse(float *origin) { *origin = -(*origin) + M_2PI; }
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief 断言失败处理
|
|
||||||
*
|
|
||||||
* @param file 文件名
|
|
||||||
* @param line 行号
|
|
||||||
*/
|
|
||||||
void VerifyFailed(const char *file, uint32_t line) {
|
|
||||||
UNUSED(file);
|
|
||||||
UNUSED(line);
|
|
||||||
while (1) {
|
|
||||||
__NOP();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@ -11,7 +11,7 @@ extern "C" {
|
|||||||
#include <float.h>
|
#include <float.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <stdint.h>
|
||||||
#define M_DEG2RAD_MULT (0.01745329251f)
|
#define M_DEG2RAD_MULT (0.01745329251f)
|
||||||
#define M_RAD2DEG_MULT (57.2957795131f)
|
#define M_RAD2DEG_MULT (57.2957795131f)
|
||||||
|
|
||||||
@ -128,11 +128,3 @@ void CircleReverse(float *origin);
|
|||||||
*/
|
*/
|
||||||
#define VERIFY(expr) ((void)(expr))
|
#define VERIFY(expr) ((void)(expr))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief 断言失败处理
|
|
||||||
*
|
|
||||||
* @param file 文件名
|
|
||||||
* @param line 行号
|
|
||||||
*/
|
|
||||||
void VerifyFailed(const char *file, uint32_t line);
|
|
||||||
|
Loading…
Reference in New Issue
Block a user