kRPC: Control the game using C#, C++, Java, Lua, Python...

kRPC: Control the game using C#, C++, Java, Lua, Python...

7.8k Downloads

Weird autopilot behaviour when the vessel was equipped with grid fins

ZCM8848 opened this issue · 0 comments

commented

What happened?

video preview
When controlling any vessel equipped with grid fins (at least grid finned first stages) using KRPC, the yaw control becomes erratic and unresponsive, causing a loss of control. In contrast, when I replace the grid fins with stock airbreaks and execute the same script, KRPC can smoothly control the rocket.
I think this problem may be related to the data that KRPC gathers from the fins.
Even more strangely, when engines are running, the grid fins seem to lose their effectiveness on KRPC's autopilot🧐.

How can someone else reproduce it?

See my repository
Open params.py and set: SKIP_BOOSTERBACK = True SKIP_REENTRY_BURN = True
Enter the game and use vesselmover to move your vessel high enough, then drop the vessel
finally python landing.py

What is your environment?

python3.12.4(anaconda)
ksp 1.12.5.3190
krpc 0.5.4

MOD LIST:
Animated Decouplers (AnimatedDecouplers v1.5.0)
Artemis Construction Kit (ArtemisConstructionKit 1.4.0)
B9 Part Switch (B9PartSwitch v2.20.0)
Benjee10 sharedAssets (Benjee10-SharedAssets v0.2.2)
BetterTimeWarpContinued (BetterTimeWarpCont 2.3.13)
Bluedog Design Bureau (BluedogDB v1.13.0)
Bluedog Design Bureau Extras - Community Category Kit (BluedogDB-CommunityCategoryKit v1.13.0)
Bluedog Design Bureau Extras - Methalox Variants (BluedogDB-Methalox v1.13.0)
Bluedog Design Bureau Extras - Real Names (BluedogDB-RealNames v1.13.0)
Breaking Ground (BreakingGround-DLC 1.7.1)
ClickThrough Blocker (ClickThroughBlocker 1:2.1.10.21)
Community Category Kit (CommunityCategoryKit v112.0.1)
Community Resource Pack (CommunityResourcePack v112.0.1)
Community Tech Tree (CommunityTechTree 1:3.4.4)
Connected Living Space (ConnectedLivingSpace v2.0.2.0)
Contract Configurator (ContractConfigurator v2.10.0.0)
Cryo Tanks (CryoTanks 1.6.5)
Cryo Tanks Core (CryoTanks-Core 1.6.5)
CryoEngines Extensions (CryoEnginesExtensions 1.0.3)
Cryogenic Engines (CryoEngines 1:2.0.6)
Cryogenic Engines - Near Future Aeronautics (CryoEngines-NFAero 2.0.6)
Deployable Engines Plugin (DeployableEngines 1.3.1)
DMModuleScienceAnimateGeneric (DMagicScienceAnimate v0.23)
Docking Cam (DockingCamKURS 1.3.8.7)
Dynamic Battery Storage (DynamicBatteryStorage 2:2.2.5.0)
Easy Vessel Switch (EVS) (EasyVesselSwitch 2.3)
Firespitter Core (FirespitterCore v7.17)
FreeIva (FreeIva 0.2.18.4)
Hab Tech Props (HabTechProps v0.2.0)
Harmony 2 (Harmony2 2.2.1.0)
Heat Control (HeatControl 0.6.1)
ht Robotics (HabTechRobotics v1.0.1)
JNSQ (JNSQ 0.10.2)
JNSQ Real Date (JNSQ-RealDate 1.2)
Kerbal Atomics (KerbalAtomics 1:1.3.3)
Kerbal Atomics - NFE Integration (KerbalAtomics-NFECompatibility 1.2.1)
Kerbal Atomics - Other Mod Support (KerbalAtomics-NTRModSupport 1.3.3)
Kerbal Attachment System (KAS 1.12)
Kerbal Joint Reinforcement - Next (KerbalJointReinforcementNext v4.2.27)
Kerbal Reusability Expansion (SpaceXLegs 2.9.3)
Kerwis Chinese Aerospace Pack (KCAP) (KerwisChinaAerospacePack 1.1.3)
Kopernicus Planetary System Modifier (Kopernicus 2:release-1.12.1-206)
Kronometer (Kronometer v1.12.0.2)
kRPC: Remote Procedure Call Server (kRPC v0.5.4)
KSP Recall (KSP-Recall v0.5.0.2)
Making History (MakingHistory-DLC 1.12.1)
MechJeb 2 (MechJeb2 2.14.3.0)
Modular Computer Package Revived (ModularComputerPackageRevived 2.0.1)
ModularFlightIntegrator (ModularFlightIntegrator 1.2.10.0)
Module Manager (ModuleManager 4.2.3)
Near Future Electrical Core (NearFutureElectrical-Core 1.2.3)
Near Future IVA Props (NearFutureProps 1:0.7.1)
Near Future Launch Vehicles (NearFutureLaunchVehicles 2.2.0)
Planetside Exploration Technologies (PlanetsideExplorationTechnologies 1.0.2)
RasterPropMonitor Core (RasterPropMonitor-Core 1:v0.31.13.4)
Real Plume (RealPlume 2:v13.3.2)
Real Plume - Stock Configs (RealPlume-StockConfigs v4.0.8)
ReStock (ReStock 1.4.5)
ReStock Extra - Rigid Legs (RestockRigidLegs 1.4.5)
Restock Waterfall Expansion (RestockWaterfallExpansion 3.1.0)
ReStock+ (ReStockPlus 1.4.5)
Reviva (Reviva 1.0.0)
Scatterer Sunflare (Scatterer-sunflare 3:v0.0878)
Shabby (Shabby 0.3.0.0)
Shaddy (Shaddy v2.5)
Shuttle Orbiter Construction Kit (ShuttleOrbiterConstructionKit 1.1.8)
Simple Adjustable Fairings - Plugin (SimpleAdjustableFairings v1.12.0)
SmokeScreen - Extended FX Plugin (SmokeScreen 2.8.14.0)
SpaceTux Library (SpaceTuxLibrary 0.0.8.6)
Starship Expansion Project (StarshipExpansionProject v.2.2.0)
Starship Expansion Project IVA (StarshipExpansionProjectIVA v.2.2.0)
Starship Launch Expansion (StarshipLaunchExpansion 1:Beta_v0.5)
System Heat (SystemHeat 0.6.0)
Textures Unlimited (TexturesUnlimited 1.5.10.25)
ToadicusToolsContinued (ToadicusToolsContinued 1.22.4.4)
Toolbar Controller (ToolbarController 1:0.1.9.11)
Trajectories (Trajectories v2.4.5.3)
TweakableEverythingContinued (TweakableEverythingCont 0.2.1)
TweakScale - Rescale Everything! (TweakScale v2.4.8.3)
TweakScale Companion for ReStockPlus (TweakScaleCompanion-ReStockPlus v1.1.0.0)
TweakScale Redistributable (TweakScale-Redist v2.4.8.3)
Universal Storage II Finalized (UniversalStorage2 4.0.1.2)
VesselMover Continued (VesselMoverContinued v1.12.0)
Waterfall - Restock (WaterfallRestock 0.2.3)
Waterfall Core (Waterfall 0.9.0)

PIP:
clarabel 0.9.0
colorama 0.4.6
contourpy 1.2.1
cvxpy 1.5.1
cycler 0.12.1
ecos 2.0.13
fonttools 4.53.0
kiwisolver 1.4.5
krpc 0.5.4
matplotlib 3.9.0
numpy 1.26.4
osqp 0.6.7
packaging 24.1
pillow 10.3.0
pip 24.0
protobuf 5.27.1
pyparsing 3.1.2
python-dateutil 2.9.0.post0
qdldl 0.1.7.post2
scipy 1.13.1
scs 3.2.4.post2
setuptools 69.5.1
six 1.16.0
tqdm 4.66.4
wheel 0.43.0

Anything else we need to know?

windows:
版本 Windows 11 专业工作站版
版本号 22H2
安装日期 ‎2024/‎7/‎24
操作系统版本 22621.3880
体验 Windows Feature Experience Pack 1000.22700.1020.0