更新了simulink控制器代码

This commit is contained in:
zjk
2025-06-18 22:30:06 +08:00
parent f170b741da
commit 44dd1f0470
11 changed files with 726 additions and 269 deletions

View File

@@ -0,0 +1,58 @@
//
// Academic License - for use in teaching, academic research, and meeting
// course requirements at degree granting institutions only. Not for
// government, commercial, or other organizational use.
//
// File: Controler_data.cpp
//
// Code generated for Simulink model 'Controler'.
//
// Model version : 5.37
// Simulink Coder version : 24.2 (R2024b) 21-Jun-2024
// C/C++ source code generated on : Wed Jun 18 17:26:02 2025
//
// Target selection: ert.tlc
// Embedded hardware selection: Intel->x86-64 (Linux 64)
// Code generation objectives:
// 1. Execution efficiency
// 2. RAM efficiency
// Validation result: Not run
//
#include "Controler.h"
// Block parameters (default storage)
Controler::P Controler::rtP{
// Variable: pid_heading
// Referenced by:
// '<S34>/Derivative Gain'
// '<S38>/Integral Gain'
// '<S44>/Filter Coefficient'
// '<S46>/Proportional Gain'
{
1,
0.1,
0.01,
10.0
},
// Variable: pid_pitch
// Referenced by:
// '<S142>/Derivative Gain'
// '<S146>/Integral Gain'
// '<S152>/Filter Coefficient'
// '<S154>/Proportional Gain'
{
0.5,
0.1,
0.1,
10.0
}
};
//
// File trailer for generated code.
//
// [EOF]
//