mirror of
https://gitee.com/dlmu-cone/bf_original_balance_chassis
synced 2026-07-24 11:37:45 +08:00
update seasky doc
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
******************************************************************************
|
||||
* @file ins_task.c
|
||||
* @author Wang Hongxi
|
||||
* @author annotation and modificaiton by neozng
|
||||
* @version V2.0.0
|
||||
* @date 2022/2/23
|
||||
* @brief
|
||||
@@ -37,6 +38,17 @@ attitude_t *GetINSptr()
|
||||
return (attitude_t *)&INS.Roll;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 温度控制
|
||||
*
|
||||
*/
|
||||
static void IMU_Temperature_Ctrl(void)
|
||||
{
|
||||
PID_Calculate(&TempCtrl, BMI088.Temperature, RefTemp);
|
||||
|
||||
imu_pwm_set(float_constrain(float_rounding(TempCtrl.Output), 0, UINT32_MAX));
|
||||
}
|
||||
|
||||
void INS_Init(void)
|
||||
{
|
||||
// while (BMI088_init(&hspi1, 1) != BMI088_NO_ERROR);
|
||||
@@ -242,17 +254,6 @@ static void IMU_Param_Correction(IMU_Param_t *param, float gyro[3], float accel[
|
||||
lastRollOffset = param->Roll;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 温度控制
|
||||
*
|
||||
*/
|
||||
void IMU_Temperature_Ctrl(void)
|
||||
{
|
||||
PID_Calculate(&TempCtrl, BMI088.Temperature, RefTemp);
|
||||
|
||||
imu_pwm_set(float_constrain(float_rounding(TempCtrl.Output), 0, UINT32_MAX));
|
||||
}
|
||||
|
||||
//------------------------------------functions below are not used in this demo-------------------------------------------------
|
||||
//----------------------------------you can read them for learning or programming-----------------------------------------------
|
||||
//----------------------------------they could also be helpful for further design-----------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user