修复了航向的问题

This commit is contained in:
zjk
2025-06-18 23:10:16 +08:00
parent 44dd1f0470
commit f1e7d7b511
15 changed files with 1834 additions and 387 deletions

View File

@@ -7,9 +7,9 @@
//
// Code generated for Simulink model 'Controler'.
//
// Model version : 5.37
// Model version : 5.56
// Simulink Coder version : 24.2 (R2024b) 21-Jun-2024
// C/C++ source code generated on : Wed Jun 18 17:26:02 2025
// C/C++ source code generated on : Wed Jun 18 22:52:45 2025
//
// Target selection: ert.tlc
// Embedded hardware selection: Intel->x86-64 (Linux 64)
@@ -22,12 +22,26 @@
// Block parameters (default storage)
Controler::P Controler::rtP{
// Variable: pid_depth
// Referenced by:
// '<S89>/Derivative Gain'
// '<S93>/Integral Gain'
// '<S99>/Filter Coefficient'
// '<S101>/Proportional Gain'
{
2.0,
0.0,
0.0,
10.0
},
// Variable: pid_heading
// Referenced by:
// '<S34>/Derivative Gain'
// '<S38>/Integral Gain'
// '<S44>/Filter Coefficient'
// '<S46>/Proportional Gain'
// '<S35>/Derivative Gain'
// '<S39>/Integral Gain'
// '<S45>/Filter Coefficient'
// '<S47>/Proportional Gain'
{
1,
@@ -38,14 +52,14 @@ Controler::P Controler::rtP{
// Variable: pid_pitch
// Referenced by:
// '<S142>/Derivative Gain'
// '<S146>/Integral Gain'
// '<S152>/Filter Coefficient'
// '<S154>/Proportional Gain'
// '<S143>/Derivative Gain'
// '<S147>/Integral Gain'
// '<S153>/Filter Coefficient'
// '<S155>/Proportional Gain'
{
0.5,
0.1,
0.0,
0.1,
10.0
}