giuliodondi / kOS-ShuttleEntrySim

My own kOS Guidance scrpts for the Space Shuttle in KSP + Real Solar system + Realism Overhaul. Refer to the README for usage.
20 stars 3 forks source link

Error on deorbit prediction. #7

Closed AussiePilot123 closed 1 year ago

AussiePilot123 commented 1 year ago

Screenshot 2023-09-13 213259 This is my first time using this script, and my first time really delving into kOS. I'm trying to do my deorbit prediction, and after creating a rough node and opening the program, this error pops up. I'm probably just being an idiot and doing something wrong, so any help would be appreciated.

AussiePilot123 commented 1 year ago

Don't worry it seems to have fixed itself😂

giuliodondi commented 1 year ago

Sorry, I didn't have time to debug this properly.

The error complains of some equation resulting in 'NaN', which is indicative of a division 0 / 0 in this context. Based on this I'd say you had your OMS engines turned off when running the script, causing the engine parameters to all be zero.

I still put some of the blame on myself for not putting a check in the script or, at least, clarifying it in the README, so I apologise.