Skip to content

Commit ec45127

Browse files
author
dzalkind
committed
Auto-generate cpp debug, types
1 parent f1b3058 commit ec45127

8 files changed

Lines changed: 837 additions & 248 deletions

File tree

rosco/controller/rosco_registry/rosco_types.yaml

Lines changed: 46 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,6 +1216,7 @@ LocalVariables:
12161216
VS_RefSpd:
12171217
<<: *real
12181218
description: Torque control generator speed set point [rad/s]
1219+
dbg: true
12191220
VS_RefSpd_TSR:
12201221
<<: *real
12211222
description: Torque control generator speed set point based on optimal TSR (unfiltered) [rad/s]
@@ -1228,6 +1229,7 @@ LocalVariables:
12281229
PC_RefSpd:
12291230
<<: *real
12301231
description: Generator speed set point of pitch controller [rad/s]
1232+
dbg: true
12311233
PC_RefSpd_SS:
12321234
<<: *real
12331235
description: Generator speed set point of pitch controller after setpoint smoothing [rad/s]
@@ -1237,9 +1239,11 @@ LocalVariables:
12371239
RotSpeedF:
12381240
<<: *real
12391241
description: Filtered LSS (rotor) speed [rad/s].
1242+
dbg: true
12401243
GenSpeedF:
12411244
<<: *real
12421245
description: Filtered HSS (generator) speed [rad/s].
1246+
dbg: true
12431247
GenTq:
12441248
<<: *real
12451249
description: Electrical generator torque, [Nm].
@@ -1280,9 +1284,12 @@ LocalVariables:
12801284
PC_MinPit:
12811285
<<: *real
12821286
description: Minimum pitch setting in pitch controller (variable) [rad].
1287+
dbg: true
12831288
PC_PitComT:
12841289
<<: *real
12851290
description: Total command pitch based on the sum of the proportional and integral terms [rad].
1291+
dbg: true
1292+
dbg_name: PC_PICommand
12861293
PC_PitComT_Last:
12871294
<<: *real
12881295
description: Last total command pitch based on the sum of the proportional and integral terms [rad].
@@ -1314,18 +1321,22 @@ LocalVariables:
13141321
axisTilt_1P:
13151322
<<: *real
13161323
description: Tilt moment, 1P
1324+
dbg: true
13171325
axisYaw_1P:
13181326
<<: *real
13191327
description: Yaw moment, 1P
1328+
dbg: true
13201329
axisYawF_1P:
13211330
<<: *real
13221331
description: Filtered yaw moment, 1P
13231332
axisTilt_2P:
13241333
<<: *real
13251334
description: Tilt moment, 2P
1335+
dbg: true
13261336
axisYaw_2P:
13271337
<<: *real
13281338
description: Yaw moment, 2P
1339+
dbg: true
13291340
axisYawF_2P:
13301341
<<: *real
13311342
description: Filtered yaw moment, 2P
@@ -1394,6 +1405,7 @@ LocalVariables:
13941405
WE_Vw:
13951406
<<: *real
13961407
description: Estimated wind speed [m/s]
1408+
dbg: true
13971409
WE_Vw_F:
13981410
<<: *real
13991411
description: Filtered estimated wind speed [m/s]
@@ -1474,12 +1486,17 @@ LocalVariables:
14741486
description: Electrical generator torque command for shutdown, [Nm].
14751487
Fl_PitCom:
14761488
<<: *real
1477-
description: Shutdown, .FALSE. if inactive, .TRUE. if active
1489+
description: Floating contribution to the pitch command [rad]
1490+
dbg: true
14781491
NACIMU_FA_AccF:
14791492
<<: *real
1493+
description: Filtered nacelle IMU fore-aft acceleration [m/s^2]
1494+
dbg: true
1495+
dbg_name: NacIMU_FA_AccF
14801496
FA_AccF:
14811497
<<: *real
1482-
description: Filtered fore-aft acceleration in rotation frame, ready for control
1498+
description: Filtered fore-aft acceleration in rotation frame, ready for control [m/s^2]
1499+
dbg: true
14831500
FA_Hist:
14841501
<<: *integer
14851502
description: Hysteresis state for tower resonance avoidance.
@@ -1563,9 +1580,6 @@ LocalVariables:
15631580
<<: *real
15641581
description: Last blade root bending moment (Nm)
15651582
size: 3
1566-
ACC_INFILE_SIZE:
1567-
<<: *integer
1568-
description: Length of parameter input filename
15691583
ACC_INFILE:
15701584
<<: *character
15711585
description: Parameter input filename
@@ -1574,9 +1588,13 @@ LocalVariables:
15741588
restart:
15751589
<<: *logical
15761590
description: Restart flag
1577-
AWC_complexangle:
1578-
<<: *complex
1579-
description: Complex angle for each blade, sum of modes?
1591+
AWC_complexangle_re:
1592+
<<: *real
1593+
description: Real part of complex angle for each blade, sum of modes
1594+
size: 3
1595+
AWC_complexangle_im:
1596+
<<: *real
1597+
description: Imaginary part of complex angle for each blade, sum of modes
15801598
size: 3
15811599
TiltMean:
15821600
<<: *real
@@ -1611,33 +1629,53 @@ LocalVariables:
16111629
WE_Cp:
16121630
<<: *real
16131631
description: Cp that WSE uses to determine aerodynamic torque [-]
1632+
dbg: true
16141633
WE_b:
16151634
<<: *real
16161635
description: Pitch input to WSE [-]
1636+
dbg: true
16171637
WE_w:
16181638
<<: *real
16191639
description: Rotor speed input to WSE [-]
1640+
dbg: true
16201641
WE_t:
16211642
<<: *real
16221643
description: Torque input to WSE [-]
1644+
dbg: true
1645+
WE_v_m:
1646+
<<: *real
1647+
description: Mean wind speed component in WSE [m/s]
1648+
dbg: true
1649+
dbg_name: WE_Vm
1650+
WE_v_t:
1651+
<<: *real
1652+
description: Turbulent wind speed component in WSE [m/s]
1653+
dbg: true
1654+
dbg_name: WE_Vt
16231655
WE_lambda:
16241656
<<: *real
16251657
description: TSR in WSE [rad]
1658+
dbg: true
16261659
YawRateCom:
16271660
<<: *real
16281661
description: Commanded yaw rate [rad/s]
1662+
dbg: true
16291663
NacHeadingTarget:
16301664
<<: *real
16311665
description: Target nacelle heading [deg]
1666+
dbg: true
16321667
NacVaneOffset:
16331668
<<: *real
16341669
description: Nacelle vane angle with offset [deg]
1670+
dbg: true
16351671
Yaw_Err:
16361672
<<: *real
16371673
description: Yaw error [deg]
1674+
dbg: true
16381675
YawState:
16391676
<<: *real
16401677
description: State of yaw controller [-]
1678+
dbg: true
16411679

16421680
WE:
16431681
<<: *derived_type
@@ -1714,89 +1752,6 @@ PerformanceData:
17141752
dimension: (:,:)
17151753
description: Torque coefficient surface
17161754

1717-
DebugVariables:
1718-
# NOTE: DebugVariables is retained only for the Fortran registry (write_types / write_roscoio).
1719-
# In C++, all debug outputs are sourced from LocalVariables directly.
1720-
# The fields below define the default .dbg output columns and their units.
1721-
WE_Cp:
1722-
<<: *real
1723-
description: Cp that WSE uses to determine aerodynamic torque [-]
1724-
WE_b:
1725-
<<: *real
1726-
description: Pitch that WSE uses to determine aerodynamic torque [-]
1727-
WE_w:
1728-
<<: *real
1729-
description: Rotor Speed that WSE uses to determine aerodynamic torque [-]
1730-
WE_t:
1731-
<<: *real
1732-
description: Torque that WSE uses [-]
1733-
WE_Vm:
1734-
<<: *real
1735-
description: Mean wind speed component in WSE [m/s]
1736-
WE_Vt:
1737-
<<: *real
1738-
description: Turbulent wind speed component in WSE [m/s]
1739-
WE_Vw:
1740-
<<: *real
1741-
description: Estimated wind speed in WSE [m/s]
1742-
WE_lambda:
1743-
<<: *real
1744-
description: TSR in WSE [rad]
1745-
PC_PICommand:
1746-
<<: *real
1747-
description: Commanded collective pitch from pitch PI controller [rad]
1748-
GenSpeedF:
1749-
<<: *real
1750-
description: Filtered generator speed [rad/s]
1751-
RotSpeedF:
1752-
<<: *real
1753-
description: Filtered rotor speed [rad/s]
1754-
NacIMU_FA_AccF:
1755-
<<: *real
1756-
description: Filtered NacIMU_FA_RAcc [rad/s]
1757-
FA_AccF:
1758-
<<: *real
1759-
description: Filtered FA_Acc [m/s]
1760-
Fl_PitCom:
1761-
<<: *real
1762-
description: Floating contribution to the pitch command [rad]
1763-
PC_MinPit:
1764-
<<: *real
1765-
description: Minimum blade pitch angle [rad]
1766-
axisTilt_1P:
1767-
<<: *real
1768-
description: Tilt component of coleman transformation, 1P
1769-
axisYaw_1P:
1770-
<<: *real
1771-
description: Yaw component of coleman transformation, 1P
1772-
axisTilt_2P:
1773-
<<: *real
1774-
description: Tilt component of coleman transformation, 2P
1775-
axisYaw_2P:
1776-
<<: *real
1777-
description: Yaw component of coleman transformation, 2P
1778-
YawRateCom:
1779-
<<: *real
1780-
description: Commanded yaw rate [rad/s]
1781-
NacHeadingTarget:
1782-
<<: *real
1783-
description: Target nacelle heading [deg]
1784-
NacVaneOffset:
1785-
<<: *real
1786-
description: Nacelle vane angle with offset [deg]
1787-
Yaw_Err:
1788-
<<: *real
1789-
description: Yaw error [deg]
1790-
YawState:
1791-
<<: *real
1792-
description: State of yaw controller [-]
1793-
VS_RefSpd:
1794-
<<: *real
1795-
description: Torque control generator speed set point [rad/s]
1796-
PC_RefSpd:
1797-
<<: *real
1798-
description: Generator speed set point of pitch controller [rad/s]
1799-
18001755
ErrorVariables:
18011756
size_avcMSG:
18021757
<<: *integer

0 commit comments

Comments
 (0)