mirror of
https://gitee.com/dlmu-cone/bf_original_balance_chassis
synced 2026-07-24 03:27:45 +08:00
修复LK电机id计算错误,构建平衡底盘框架,增加通用通信模块,增加平衡底盘条件编译兼容,删除lqr
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
******************************************************************************
|
||||
*/
|
||||
#include "stdlib.h"
|
||||
#include "string.h"
|
||||
#include "memory.h"
|
||||
#include "user_lib.h"
|
||||
#include "math.h"
|
||||
#include "main.h"
|
||||
@@ -25,10 +25,10 @@
|
||||
|
||||
uint8_t GlobalDebugMode = 7;
|
||||
|
||||
void* zero_malloc(size_t size)
|
||||
void *zero_malloc(size_t size)
|
||||
{
|
||||
void* ptr=malloc(size);
|
||||
memset(ptr,0,size);
|
||||
void *ptr = malloc(size);
|
||||
memset(ptr, 0, size);
|
||||
return ptr;
|
||||
}
|
||||
|
||||
@@ -96,7 +96,6 @@ float float_deadband(float Value, float minValue, float maxValue)
|
||||
return Value;
|
||||
}
|
||||
|
||||
|
||||
// 限幅函数
|
||||
float float_constrain(float Value, float minValue, float maxValue)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user