Skip to content
Failed

Changes

Summary

  1. WIP PVG rewrite (commit: dc6464b) (details)
  2. more massive refactoring (commit: 1b79e0c) (details)
  3. checkpoint (commit: 08b233a) (details)
  4. push an update (commit: 329d8fe) (details)
  5. another checkpoint (commit: 8a375f9) (details)
  6. checkpoint again. (commit: a37876e) (details)
  7. WIP (commit: c728bac) (details)
  8. mostly working (commit: d4d90db) (details)
  9. more WIP (commit: 342d5a0) (details)
  10. many fixes (commit: 0e68498) (details)
  11. Code cleanup (commit: 51c6c15) (details)
  12. fixed burn time fixes and test fixes (commit: 3dfe8a1) (details)
  13. Fix optimizer trying to coast when it shouldn't (commit: 46d5fd7) (details)
  14. Some code cleanup in the PVG Ascent algorithm (commit: 3c4b656) (details)
  15. unrelated code cleanup (commit: 57b0624) (details)
  16. Fix FuelFlowSim for NO_FLOW resources in Engines (commit: 46a9693) (details)
  17. Fix StagingController for NO_FLOW fuels (commit: 42435f4) (details)
  18. remove dead code comment (commit: 93f2709) (details)
  19. simplify MJlib logger (commit: 9a0d17f) (details)
  20. Use new ToSI extnesion method everywhere (commit: ba84b68) (details)
  21. Try to see if JetBrains.Annotations breaks builds (commit: 97b02b9) (details)
  22. Apply UsedImplicitly to fix dead code analysis (commit: e62cd5e) (details)
  23. code cleanup to MechJebCore (commit: be96049) (details)
  24. Use aggressive inlining (commit: df5aebc) (details)
  25. Code cleanup for the Maneuver Operations (commit: 12ae2c6) (details)
  26. Move ODE in MathJ to MechJebLib (commit: 2552971) (details)
  27. Change License on ODE Solver (commit: 447f766) (details)
  28. Move "SpaceMath" function into MechJebLib (commit: f5a5d40) (details)
  29. M3 fixes and a lot more (commit: ff93427) (details)
  30. Change "attach altitude" to "burnout altitude" (commit: 47daf5b) (details)
  31. Change "stop at stage" to make it clearer it affects autostaging (commit: ad2c710) (details)
  32. remove spammy logging (commit: eb80ae9) (details)
  33. Address warnings (commit: d28bbe9) (details)
  34. Fix PVG terminal staging bug (commit: adf3ecd) (details)
  35. Fix the autostage limit (commit: 574c150) (details)
  36. Track down and fix some annoying allocations in the ODE+interpolants (commit: 9763ffd) (details)
  37. Add proper tests for Gooding Lambert calculator (commit: 2be3676) (details)
  38. Remove SwapYZ API (commit: 81232eb) (details)
  39. Automated cleanup of many ancillary source code modules (commit: 78d2fa5) (details)
  40. Rename the "Swapped" API (commit: 6086f8e) (details)
  41. clean up the DeltaVToInterceptAtTime() API. (commit: bb548ca) (details)
  42. fix probable transfer calculator bug (commit: 2061c32) (details)
  43. ReturnFromMoon reimplementation and large reorganization (commit: 4bb4091) (details)
  44. Cleanup of Angle APIs (commit: 47adf58) (details)
  45. Make Moon Return work for initial hyperbolic (commit: d5d7976) (details)
  46. Use the perifocal frame for Apsis change. (commit: 7a8d75e) (details)
  47. PID tuning (commit: ec33cd6) (details)
  48. More PID tweaks (commit: 850d2d4) (details)
  49. Some VesselState cleanup (commit: c7cbe95) (details)
  50. Revert "Some VesselState cleanup" (commit: 0daaf4e) (details)
  51. clean up the scale struct (commit: c900649) (details)
  52. Reuse the scale object in the return to moon maneuver (commit: cde27ec) (details)
  53. reorganize and extract the maneuvers in mechjeblib a little better (commit: 213512f) (details)
  54. Redo SMA Changing Maneuver as SQP problem (commit: b3049f5) (details)
  55. Reformat and Cleanup on a lot of code (commit: ffb635d) (details)
  56. Add a maneuver to change eccentricity (commit: 77644d2) (details)
  57. Drop the vel deadband (commit: 9dafa07) (details)
  58. Fix some namespacing issues (commit: bc58481) (details)
  59. Missed one namespace issue (commit: 9fa4f38) (details)
  60. Maneuver tweaks (commit: e588c0b) (details)
  61. Compound assingment in Gooding solver (commit: 2547f3e) (details)
  62. DormandPrince overhaul (commit: a840017) (details)
  63. better working error controller (commit: 3010d00) (details)
  64. PI error control (commit: c73a9cc) (details)
  65. Simplify how I was thinking about K states (commit: 9359ed2) (details)
  66. Add exception handling to cleanup (commit: 0c6899f) (details)
  67. Basic minstep/maxstep logic (commit: dd95067) (details)
  68. rearrange the DP5 interpolant (commit: 2cb9292) (details)
  69. Hang state off the IVP object (commit: d277897) (details)
  70. Optimize FuelFlowSimulation (commit: 0402a17) (details)
  71. Fix .vs folder not being correctly gitignored (commit: fc51317) (details)
  72. Optimize Stage stats simulation by copying second FuelFlowSimulation from the first instead of initilizing them twice (commit: a82bc81) (details)
  73. Make #1515 account for changes made in 1660 (commit: 944f9b2) (details)
  74. Fix 2 cases where logging was done directly from background thread (commit: cd87ef9) (details)
  75. Lot of work (commit: 51e44f9) (details)
  76. Make terminal events work correctly, add a test (commit: d89220e) (details)
  77. Fix PVG without delta-V window open (commit: 8775cca) (details)
  78. ReentrySimulation code cleanup (commit: e59de6f) (details)
  79. Extract SimCurves out to its own file (commit: f0e960a) (details)
  80. Cleanup objectpool global/local case (commit: d57bc20) (details)
  81. Convert to shape of Smooth.Pools API (commit: 1d7ebb1) (details)
  82. Fix ToSI issue (commit: 6dc55c3) (details)
  83. Add new metric prefixes (commit: a380a1f) (details)
  84. ToSI tweaks (commit: 02fab0d) (details)
  85. Fix PVG After stage (commit: ae6cea6) (details)
  86. Analytic coast integrations with PVG (commit: 4be1e06) (details)
  87. Update MechJebLib copyright headers (commit: 34a9667) (details)
  88. Missed this in the License PR (commit: c6ca586) (details)
  89. Fix sign in coast time update (commit: a208bbf) (details)
  90. Terminal Guidance correctness bug (commit: 4cde5c3) (details)
  91. Fix CoastBefore behavior (commit: 87984d6) (details)
  92. Update alglib to 4.0 (commit: a32c207) (details)
  93. PVG: Use Analytic for bootstrap and Integrator for converged (commit: 1547d2b) (details)
  94. better error message for converged failure (commit: 1f961fe) (details)
  95. Convert the ArrayWrapper class to a struct (commit: 26de45d) (details)
  96. Fix autostaging for asparagus boosters (commit: d9e18de) (details)
  97. Misc cleanup (commit: 9dfc8a8) (details)
  98. Fix Fairing Separation logic (commit: 4392aaa) (details)
  99. More PID tuning (commit: 0c1ff26) (details)
  100. Fix caching bug in FuelFlowSimulation (commit: de3afff) (details)
  101. Automated Code Cleanup (commit: 747cacf) (details)
  102. Refactor ChangeOrbitalElements slightly (commit: 5cd9811) (details)
  103. PVG cleanup: replace ResidualWrapper with ContinuityLayout/ResidualLayout (commit: 118a797) (details)
  104. More PID tuning (commit: 2dbfcc6) (details)
  105. Rename to "PVG Settings" and use horizontal split (commit: b0ee3b5) (details)
  106. Stop fairing sep in a coast from ending the coast (commit: e6eabea) (details)
  107. Splitup burnout altitude setting (commit: 333e5d5) (details)
  108. Fix both checks that use IndexForKSPStage (commit: f3eac60) (details)
  109. Optimize Stage is now Early Shutoff Stage (commit: 66836f5) (details)
  110. Increase Pos deadband to 0.002 (commit: 1f51064) (details)
  111. Remove the ScriptsModule (commit: 681d58f) (details)
  112. Landing autopilot style cleanup (commit: 21844b9) (details)
  113. Remove the MechJebPod part (commit: 00ac5bd) (details)
  114. Update gitignore for JetBrains IDEs (commit: 4652221) (details)
  115. Possibly breaking cleanup of MechJebCore (commit: 1bcbef0) (details)
  116. ComputerModule breaking API changes (commit: 00891f8) (details)
  117. Mostly automated FFS code cleanup (commit: da6dfe0) (details)
  118. Add back the Ascent AP Toggle (commit: 6048d7c) (details)
  119. ergh, typo (commit: cd5311f) (details)
  120. Update to C# 9.0, add partial suicide burn overhaul (commit: c206ba6) (details)
  121. Guess we can't do this bit of C#9 (commit: 8afb1ee) (details)
  122. And sadly we can't use new() either (commit: abb138a) (details)
  123. Back to C# 8.0 (commit: 863fb30) (details)
  124. And fix the code to compile properly on C# 8.0 (commit: 9adc415) (details)
  125. Savegame:  working simulation with residuals (commit: 55727c5) (details)
  126. Savegame: algorithm is basically working (commit: 7f45d8b) (details)
  127. support activating RCS (commit: d32fc91) (details)
  128. Clean up API a bit (commit: f1d5eb3) (details)
  129. Break up Build and Update and use object pooling (commit: 13fb2ac) (details)
  130. Use callbacks and fix a few bugs (commit: 34eb79e) (details)
  131. Savegame: lots of fixes (commit: c560944) (details)
  132. Savegame: getting close (commit: 663f947) (details)
  133. Finished with perf pass and more bugs fixed (commit: 8e3791d) (details)
  134. slighly more readable reflection (commit: fcb566a) (details)
  135. even more betterer reflection (commit: b381fcd) (details)
  136. okay now we're getting concise (commit: 2b5ee16) (details)
  137. Finished threading and everything done on the TODO list (commit: ec3be1b) (details)
  138. Faster flight refresh interval (commit: ee36930) (details)
  139. Cascade disabling of Guidance Controller to PVG Autopilot (commit: d9df5df) (details)
  140. Let multiple modules limit autostaging and add/remove independently (commit: 7bb88a3) (details)
  141. ThrustController and StagingController cleanup (commit: 29b2e36) (details)
  142. add back adjusting apo-at-apo and per-at-per (commit: 9605873) (details)
  143. Reset SpoolupCurrent to 0 on recalc (commit: cc8262c) (details)
  144. make it pretty (commit: ca8cc5b) (details)
  145. Some Maneuver code cleanup (commit: 6514738) (details)
  146. Fix autostage limit bug that broke coasts (commit: 705c6d5) (details)
  147. Residuals calcs update every tick (commit: b4dd0e5) (details)
  148. Make KSPStage mandatory stage stats column (commit: 26f5256) (details)
  149. Update BetterController settings (commit: 7119129) (details)
  150. RCS Fuel Flow (commit: 09cd44b) (details)
  151. Add RCS stats to the stage stats display (commit: 45710d6) (details)
  152. Fix an RCS bug (commit: 6c988a4) (details)
  153. Zero residuals before doing RCS calcs (commit: dbe7998) (details)
  154. Change some RCS "display" logic (commit: 8621b2e) (details)
  155. slightly better behavior in residual threshold calcs (commit: 738f22b) (details)
  156. Fix more residuals handling (commit: ad5622b) (details)
  157. Fix DeltaV Stats and planes in RF (commit: 09066d2) (details)
  158. Fix roundoff handling in RCS calcs (commit: 85d48d4) (details)
  159. Fix residuals calcs again (commit: 7f3cd29) (details)
  160. Fix some PVG optimizer edge conditions (commit: 83323fd) (details)
  161. Additional box pinning in the PVG optimizer (commit: 4c3a8f2) (details)
  162. Better PVG+StageStats integration (commit: 26acae4) (details)
  163. Tweak DecouplingAnalyzer algorithm (commit: cbd3964) (details)
  164. Add option to override warp to plane (commit: 62f5364) (details)
  165. add a comment (commit: 86bf1b3) (details)
  166. The barest start at mass costate integration (commit: 2002ba0) (details)
  167. Use System.Math statically (commit: be01ad9) (details)
  168. ChangeOrbitalElements now uses Forward AutoDiff via Dual numbers/vectors (commit: 89196a3) (details)
  169. ReturnFromMoon improvements (commit: 7992f60) (details)
  170. Convert ReturnFromMoon maneuver to use analytical Jacobian (commit: dc1bf95) (details)
  171. Cleanup ReturnFromMoon (commit: 7624a87) (details)
  172. More ReturnFromMoon cleanup (commit: d78272a) (details)
  173. ReturnFromMoon: improve final accuracy + allow larger stepsize (commit: f03a1f6) (details)
  174. Better RK initial stepsize (commit: e69fdfd) (details)
  175. Wire up Hstart in the IVP API (commit: 4287b09) (details)
  176. ReturnFromMoon tweaks (commit: 56d7513) (details)
  177. Move Ellipticize and Circularize into MJLib (commit: 127d704) (details)
  178. Use ChangeInclination out of MJLib (commit: ac2207c) (details)
  179. Fix namespace collisions in the MJLib Tests (commit: f673b88) (details)
  180. Move MJLib.Statics up a level for convenience (commit: 4806676) (details)
  181. MJLib version of HeadingForLaunchInclination (commit: 0fb3a01) (details)
  182. remove now used method (commit: 951d135) (details)
  183. Add a README.md file for MJLib (commit: 1e5bbc8) (details)
  184. I put the README in the wrong spot (commit: b7c667d) (details)
  185. Updates ans spell checks (commit: 7fc6293) (details)
  186. forgot a word (commit: 2de4267) (details)
  187. Remove old FuelFlowSimulation (commit: f5eda67) (details)
  188. Hohmann/Bi-impulsive overhaul (commit: a926641) (details)
  189. Fix Hohmann bugs and implement more features (commit: 78f7d3c) (details)
  190. Fix planning of insertion burn (commit: 83121cc) (details)
  191. Fix the FFS root part (commit: 9335acd) (details)
  192. Add a warning to the hohmann operation, add note to decoupling analyzer (commit: c411cd8) (details)
  193. add time selector to two-impulse transfer (commit: 82b714e) (details)
  194. Lots of code cleanup (commit: 684b65e) (details)
  195. Fix thrust limiter (commit: c6aa665) (details)
  196. Rename ThrustPercentage to ThrottleLimiter (commit: b6ea7de) (details)
  197. Make PVG converge under more extreme circumstances (commit: 9f4d60a) (details)
  198. Rename to Two-Impulse Maneuver and support fixed time (commit: ed96b5d) (details)
  199. Start of refactoring of node executor (commit: 87f6ef2) (details)
  200. Node executor code cleanup (commit: e047769) (details)
  201. Node executor:  more tweaks to algorithm (commit: c79001f) (details)
  202. Behavioral changes to Node Executor (commit: d7a69e0) (details)
  203. Fix stock burn termination and bring back MANEUVER_COT (commit: 64da2d1) (details)
  204. Fix thrust curves yet again (commit: 6cc7fd1) (details)
  205. Fuse principia + stock maneuver node execution behavior (commit: 04245a9) (details)
  206. Remove principia node execution button (commit: c441e6b) (details)
  207. maybe fix principia node execution (commit: 0162ec3) (details)
  208. Node Executor State Machine + RCS burns (commit: f87468c) (details)
  209. Fix multinode execution for stock (commit: 437f551) (details)
  210. Fix principia execution (commit: 0d2025b) (details)
  211. Warp past 10 minutes if we're already aligned (commit: 866e7be) (details)
  212. Fix principia multi-node (commit: e21bb53) (details)
  213. Run gravity losses continuously (commit: 5826137) (details)
  214. FlightRecorder automated cleanup (commit: 5a71aa1) (details)
  215. CachedLocalizer cleanup (commit: e60798f) (details)
  216. DisplayModule cleanup (commit: 4bff466) (details)
  217. Clean up GLUtils (commit: 4bcd32b) (details)
  218. Fix multiple enumeration in InstallChecker (commit: 2f04821) (details)
  219. Add SerializeField to private Persistent fields (commit: c504550) (details)
  220. Make all Persistent fields Public (commit: a0b239b) (details)
  221. Rename DisplayModule fields (commit: 6ea3842) (details)
  222. cleanup attitude controllers (commit: 37b09f4) (details)
  223. GuiUtils cleanup (commit: 6099021) (details)
  224. WaypointWindow cleanup (commit: d04257e) (details)
  225. Use string interpolation (commit: 95ae54a) (details)
  226. Make fields readonly (commit: faf0377) (details)
  227. Use TryGetValue (commit: a060fd7) (details)
  228. Use TryAdd (commit: dad84bf) (details)
  229. Inline out variable declaration (commit: 088be36) (details)
  230. Remove unused local variables in Tests (commit: 824cb30) (details)
  231. Remove empty statements (commit: e58d5d2) (details)
  232. Revert back to old naming (commit: dc4525e) (details)
  233. Mark all info items as implicitly used (commit: 89ead30) (details)
  234. Fix Principia Node execution again (commit: 0e54ef9) (details)
  235. Small fix to the Updater for null attach part (commit: b37673f) (details)
  236. Fix node executor ullage (commit: 3b4e45a) (details)
  237. Node executor: aligned is good enough for RCS ullaging (commit: e93ea6e) (details)
  238. also only use aligned in deciding to start burn (commit: 0af2ef4) (details)
  239. Simplify RCS ullage (commit: f06acb0) (details)
  240. Add back a minimum rcs time and ignition delay (commit: de9691b) (details)
  241. Use propellantStability directly (commit: 586dc2c) (details)
  242. Ullage in the Node Executor for at least 1/2 second (commit: bcb686a) (details)
  243. The final RCS ullage fix (commit: 50fae03) (details)
  244. Tune RCS ullaging more (commit: cd846e3) (details)
  245. Add forced ullaging right before ignition (commit: fa93eac) (details)
  246. Adding Izzo's Lambert method (commit: c9a4c4e) (details)
  247. MechJebLib reorganization (commit: 4b468e2) (details)
  248. Change IsFinite() to static from extension (commit: a3a9ff8) (details)
  249. Extract MechJebLib as separate project/dll (commit: 7d329fd) (details)
  250. Add a newton's method that fails back to bisection (commit: 7d1b6a8) (details)
  251. More cleanup and reorg (commit: a264270) (details)
  252. Automated cleanup (commit: 5813571) (details)
  253. Use WithInheritors to cleanup a lot of jetbrains spam (commit: cec19be) (details)
  254. ReturnFromMoon: don't force the meetpoint to be halfway (commit: 675f7a2) (details)
  255. ReturnFromMoon: change periapsis constraint (commit: bf9e8dc) (details)
  256. ReturnFromMoon updating tests (commit: 805aecd) (details)
  257. Add Dormand-Prince 8(5)3 method (commit: 96a998d) (details)
  258. Nuke more of the old gravity turner code (commit: 05475d6) (details)
  259. ReturnFromMoon: increased precision and logging (commit: 56031e9) (details)
  260. add the Tsit5 method (commit: 423d774) (details)
  261. Overhaul of ReturnFromMoon initial guesser (commit: a61ca04) (details)
  262. ReturnFromMoon: fix dtmin bug well enough for now (commit: 50f1b11) (details)
  263. Rewrite and simplify ReturnFromMoon (commit: 3dee06c) (details)
  264. ReturnToMoon: the quite stable solution (commit: 201c3d0) (details)
  265. Fix ascent-type menu selector (commit: a50fce6) (details)
  266. Try to remap old ascent settings to not throw cast errors (commit: 9616391) (details)
  267. Rename the AscentTypeInteger and remove old GT params (commit: 7e72dab) (details)
  268. Fix custom window presets (commit: 9806024) (details)
  269. Beginning of Directory.Build.props settings (commit: fab2471) (details)
  270. Fix the longstanding launch to plane bug (commit: fa685a5) (details)
  271. Run optimizer during final countdown (commit: dde57e9) (details)
  272. Update README.md (commit: d725997) (details)
  273. Convert PVG to SQP solver and upgrade alglib (commit: a75e950) (details)
  274. Ascent optimizer algorithm changes (commit: eba4650) (details)
  275. Fix some new ascent algorithm bugs (commit: 530ff86) (details)
  276. Eliminate mass costate entirely from PVG calcs (commit: b6ee029) (details)
  277. More PVG test fixes (commit: 0a5f2b8) (details)
  278. Multiple PVG fixes (commit: 8b1fb75) (details)
  279. Remove unrestartable dead engines from deltaV display (commit: d66ad99) (details)
  280. Move StagingController check for dead engine into MJLibBindings (commit: b99cb00) (details)
  281. Change boolean-returning API to look more boolean (commit: 64c77bc) (details)
  282. Update VesselState.cs (commit: d1c0220) (details)
  283. Fix node executor in stock to not RCS ullage (commit: 07ff528) (details)
  284. Don't run RCS in Node Executor when IDLE (commit: 33e8258) (details)
  285. Some fixes for stock node execution behavior (commit: 66d4fca) (details)
  286. Node executor shouldn't control attitude in warp (commit: 207f4ee) (details)
  287. Fix issues with RCS being enabled when doing node execution (commit: 991442f) (details)
  288. Switch adv transfer to SQP from AUL (commit: cd58b3f) (details)
  289. Absolute minimum stepsize of 10 ULPs in ODE solver (commit: 4b50512) (details)
  290. Faster ValueInfoItem (commit: 411bc9f) (details)
  291. Fix phase angle from mark calculation (commit: 5aa5d7f) (details)
  292. Calculate phase angle to target in target's plane (commit: a96d6f1) (details)
  293. Log time spent registering info items (commit: 4d26b0f) (details)
  294. More instrumentation and caching of InfoItems (commit: fe3eca8) (details)
  295. Fix ToSI for floats (commit: f935319) (details)
  296. switch bettercontroller back to 90 degree pid (commit: d2e52ef) (details)
  297. Add MultFlow to FuelFlowSimulation (commit: 783a863) (details)
  298. PID rewrite (commit: cafcaa4) (details)
  299. Add missing Profiler.EndSample() (commit: 029ba55) (details)
  300. alglib upgrade to 4.03 (commit: 863a378) (details)
  301. use genipm intead of ipm (commit: e9a2d95) (details)
  302. Move some PVG logging to DEBUG-only (commit: 2c0df94) (details)
  303. Fix PVG settings stage numbers (commit: 23b28b6) (details)
  304. Only check for ullage on ModuleEnginesRF (commit: b54372b) (details)
  305. typo (commit: 83693bc) (details)
  306. RCS fuel flow fixes and missing last stage in the VAB (commit: 30d949a) (details)
  307. revert back to previous current stage behavior (commit: 804cca3) (details)
  308. FFS: always reset current stage if it is too high (commit: 1014850) (details)
  309. Revert "revert back to previous current stage behavior" (commit: 8ceb3f8) (details)
  310. Code cleanup in MJLib (commit: 4cd92a2) (details)
  311. More code cleanup and editorconfig tweaks (commit: 2570ac4) (details)
  312. PVG needs to immediately autostage (commit: 1b37703) (details)
  313. Also kill throttle before autostaging in PVG (commit: b37d7b3) (details)
  314. Only ever insert one coast (commit: 1eba9de) (details)
  315. Fix coasts after the early shutoff stage (commit: 8824457) (details)
  316. upgrade alglib to 4.04 (commit: fecb434) (details)
  317. Fix a problem where coast time doesn't count down (commit: 5f213f6) (details)
  318. Fix thrustForward calc for hotstaging (commit: 0857eac) (details)
  319. Fix Suicide Burntime calculation (commit: ff69e93) (details)
  320. Average initial and final gravity in suicide burn calc (commit: 157e567) (details)
  321. restore pid settings to before cafcaa40c1bd3e01283d2970d70e8480267fb48e (commit: c46dc9d) (details)
  322. fix builds (commit: 7e3c445) (details)
  323. better gate terminal_staging (commit: d93db20) (details)
  324. tweak thrust-fault early termination issue (commit: 86deab4) (details)
  325. Revert "restore pid settings to before cafcaa40c1bd3e01283d2970d70e8480267fb48e" (commit: 060ef0a) (details)
  326. re-revert the pid tuning values (commit: 28031c3) (details)
  327. Fix classic launch inclination (commit: 1d5e71f) (details)
  328. continually reset pids on the launch pad (commit: e3e631e) (details)
  329. Stock ascent cleanup and fixes (commit: d63a6fe) (details)
  330. prevent PID windup during PVG staging/spoolup (commit: 6f6f0f0) (details)
  331. Add a little margin to the antiwindup in the PVG controller (commit: 97688b2) (details)
  332. properly freeze ascent in stock guidance (commit: fbeb9ec) (details)
  333. simplify+fix classic ascent corrective steering (commit: 62b9399) (details)
  334. fix staging during terminal properly (commit: 6a0dcb0) (details)
  335. Fix PVG roll wiggles on vertical ascent (commit: 07f7f2c) (details)
  336. Update BetterController to have a real PID for the position (commit: 1b95157) (details)
  337. Make some BetterController output more readable (commit: 827317b) (details)
  338. Launch Ascent tweaks (commit: e76b323) (details)
  339. Don't constantly reset the BetterController PID (commit: f02077c) (details)
  340. code cleanup and a couple comments (commit: cfc5e8d) (details)
  341. Convert attitude controllers to QuaternionD (commit: 3de2f78) (details)
  342. implement still-missing QuaternionD functions (commit: ecedc86) (details)
  343. Reformat and cleanup of attitude controllers (commit: 8856a35) (details)
  344. Fix saving and loading of vessel-specific settings (commit: 5e920de) (details)
  345. Add Vector3d Slerp/Lerp methods (commit: dd5be24) (details)
  346. Add DirectionTracker and wire it up to BetterController (commit: f527fad) (details)
  347. Run Qα limiter during pitch program again (commit: 29791bd) (details)
  348. remove some logspam (commit: 9373fb9) (details)
  349. Ignore un-stageable parts (commit: ac1eac4) (details)
  350. Update issue templates (commit: 43f5041) (details)
  351. Delete .github/ISSUE_TEMPLATE/BUG_REPORT.md (commit: 2c93915) (details)
  352. Delete .github/ISSUE_TEMPLATE/HELP_REQUEST.md (commit: 21c2973) (details)
  353. Delete .github/ISSUE_TEMPLATE/LOCALIZATION_SUPPORT.md (commit: 860cef8) (details)
  354. Delete .github/ISSUE_TEMPLATE/NEW_KSP_VERSION_SUPPORT.md (commit: cf60419) (details)
  355. Some more stage numbering fixes (commit: 79fd6ea) (details)
  356. Update bettercontroller tuning (commit: 7533747) (details)
  357. Get the gimbal rate into the vessel state (commit: 6bfabbb) (details)
  358. better controller better ui (commit: badd66c) (details)
  359. Minor BetterController tweaks (commit: 999de9e) (details)
  360. Prevent DecelerationBurn from setting the throttle to 0 after PDI (commit: 6aef833) (details)
  361. Change braking burn end altitude to 200m (commit: a30d52a) (details)
  362. Deceleration burn warp fixes (commit: 94dbb19) (details)
  363. Only warp when angular velocity is near zero (commit: 8f6728b) (details)
  364. Attempt to prevent full engine shutdown during vertical final descent. (commit: ea9a563) (details)
  365. Make min throttle limiter follow global min throttle limiter (commit: 8d974b4) (details)
  366. Fix for attitude excursion in vertical descent (commit: d23e55e) (details)
  367. Add a fudge factor for control surface response (commit: 424d5ed) (details)
  368. Better Test for V3 APIs (commit: f8b777d) (details)
  369. Add V3 tests for the component analysis APIs (commit: 439096b) (details)
  370. Add RequestActiveThrottle() API to ThrustController (commit: d39820d) (details)
  371. Attempt to implement new RequestActiveThrottle API. (commit: e227003) (details)
  372. Small untested fix attempt (commit: 834f8c5) (details)
  373. Add more V3 API tests (commit: b52c752) (details)
  374. That's what I get for not even test compiling. Optional arguments don't work that way in C# (commit: b6e7238) (details)
  375. Actually fix engine shutoff (commit: 32265bd) (details)
  376. Add tests for V3 sph2cart cart2sph and xzy (commit: 50f9af5) (details)
  377. add some invalid value checking around SafeAsin/Acos and tests (commit: 891713d) (details)
  378. Add more tests around V3 class (commit: e63426b) (details)
  379. Changes to final descent guidance and throttle logic to fix attitude excursions. (commit: 6a986a7) (details)
  380. Update alglib to 4.06 (commit: f2ae914) (details)
  381. Fix hotstaging without Δv window open (commit: d40ca8a) (details)
  382. Change the logic for speed control when in final descent below 300m with more than 5 m/s horizontal velocity. (commit: 571fe4f) (details)
  383. Remove all throttling logic and just burn at full until the horizontal speed is sufficiently reduced. (commit: ed19fe7) (details)
  384. Update version to 2.15.0 (commit: 7e9ed8a) (details)
Commit dc6464be6907ad4673f095a0faae853cae1d3a7d by lamont
WIP PVG rewrite

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: dc6464b)
The file was addedMechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Energy.cs
The file was modified MechJeb2/MathJ/DormandPrince.cs (diff)
The file was removedMechJeb2/Matrix3x3d.cs
The file was modified MechJeb2/MechJebLib/Utils/ObjectPool.cs (diff)
The file was modified MechJeb2/MechJebLib/Maths/Shepperd.cs (diff)
The file was modified .editorconfig (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was removedMechJeb2/Pontryagin/PontryaginLaunch.cs
The file was modified MechJeb2/MechJebLib/Utils/Check.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
The file was removedMechJeb2/MechJebLib/Utils/DDArray.cs
The file was addedMechJeb2/MechJebLib/PVG/Phase.cs
The file was addedMechJeb2/MechJebLib/PVG/Scale.cs
The file was addedMechJeb2/MechJebLib/Primitives/HBase.cs
The file was removedMechJeb2/MechJebLib/Structs/Hn.cs
The file was removedMechJeb2/Pontryagin/PontryaginBase.cs
The file was addedMechJeb2/MechJebLib/PVG/Integrators/VacuumCoastIntegrator.cs
The file was modified MechJeb2/MechJebLib/Utils/Statics.cs (diff)
The file was addedMechJeb2/MechJebLib/Primitives/V3.cs
The file was addedMechJeb2/MechJebLib/PVG/ResidualWrapper.cs
The file was modified MechJeb2/Properties/AssemblyInfo.cs (diff)
The file was addedMechJebLibTest/PVG/Titan2Tests.cs
The file was addedMechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Reduced.cs
The file was addedMechJeb2/MechJebLib/PVG/Integrators/VacuumThrustAnalytic.cs
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was addedMechJeb2/MechJebLib/Primitives/Hn.cs
The file was removedMechJeb2/Pontryagin/Solution.cs
The file was modified MechJebLibTest/Maths/FunctionsTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Maths/Functions.cs (diff)
The file was addedMechJeb2/MechJebLib/Primitives/M3.cs
The file was addedMechJebLibTest/Utils/StaticTests.cs
The file was addedMechJeb2/MechJebLib/Primitives/Q3.cs
The file was modified MechJeb2/MechJebLib/Maths/BrentMin.cs (diff)
The file was modified MechJeb2.sln.DotSettings (diff)
The file was addedMechJeb2/MechJebLib/Primitives/DD.cs
The file was addedMechJeb2/MechJebLib/Primitives/H3.cs
The file was removedMechJeb2/MechJebLib/Structs/H3.cs
The file was addedMechJeb2/MechJebLib/PVG/AscentBuilder.cs
The file was modified MechJebLibTest/Maths/DormandPrinceTests.cs (diff)
The file was addedMechJeb2/MechJebLib/PVG/Ascent.cs
The file was modified MechJeb2/MechJebLib/Maths/Gooding.cs (diff)
The file was modified MechJeb2/MathJ/ODESolver.cs (diff)
The file was addedMechJeb2/MechJebLib/PVG/Integrators/VacuumThrustIntegrator.cs
The file was addedMechJeb2/MechJebLib/PVG/PVGBuilder.cs
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was addedMechJeb2/MechJebModulePVGGlueBall.cs
The file was addedMechJeb2/MechJebLib/Primitives/H1.cs
The file was modified MechJeb2/MathExtensions.cs (diff)
The file was removedMechJeb2/MechJebLib/Structs/H1.cs
The file was addedMechJeb2/MechJebLib/PVG/Terminal/IPVGTerminal.cs
The file was modified MechJebLibTest/Structs/HTests.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVG.cs (diff)
The file was addedMechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Propellant.cs
The file was modified MechJeb2/MechJebLib/Maths/BrentRoot.cs (diff)
The file was addedMechJeb2/MechJebLib/PVG/Problem.cs
The file was addedMechJeb2/MechJebLib/PVG/Optimizer.cs
The file was removedMechJeb2/MechJebModuleLogicalStageTracking.cs
The file was removedMechJeb2/MechJebLib/Structs/HBase.cs
The file was modified MechJeb2/MathJ/ODE.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentGuidance.cs (diff)
The file was addedMechJeb2/MechJebLib/PVG/ArrayWrapper.cs
The file was modified MechJebLibTest/AssertionExtensions.cs (diff)
The file was addedMechJeb2/MechJebLib/PVG/Integrators/IPVGIntegrator.cs
The file was removedMechJeb2/Pontryagin/TODO.md
The file was addedMechJeb2/MechJebLib/PVG/Terminal/Kepler4Reduced.cs
The file was addedMechJeb2/MechJebLib/PVG/Terminal/Kepler5Reduced.cs
The file was addedMechJeb2/MechJebLib/PVG/Terminal/Intercept6Cartesian.cs
The file was modified MechJeb2/Maneuver/TransferCalculator.cs (diff)
The file was modified MechJeb2/MechJebCore.cs (diff)
The file was removedMechJeb2/Pontryagin/Arc.cs
The file was addedMechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle3Energy.cs
The file was removedMechJeb2/Pontryagin/PontryaginNode.cs
The file was addedMechJeb2/MechJebLib/Maths/FunctionImpls/RealDeltaVToChangeApoapsisPrograde.cs
The file was addedMechJeb2/MechJebLib/PVG/Terminal/Kepler3Reduced.cs
The file was addedMechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle5Reduced.cs
The file was addedMechJeb2/MechJebLib/PVG/Solution.cs
Commit 1b79e0c2f04e742382e53393da7150adaea32860 by lamont
more massive refactoring

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 1b79e0c)
The file was removedMechJeb2/MechJebModuleAscentGuidance.cs
The file was modified MechJeb2/MechJebCore.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler5Reduced.cs (diff)
The file was modified MechJeb2.sln.DotSettings (diff)
The file was modified MechJeb2/MathExtensions.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentAutopilot.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Ascent.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassic.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVG.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was removedMechJeb2/MechJebLib/PVG/PVGBuilder.cs
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle3Energy.cs (diff)
The file was addedMechJeb2/MechJebModuleAscentMenu.cs
The file was modified MechJeb2/MechJebLib/Primitives/HBase.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler3Reduced.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionsList.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/Statics.cs (diff)
The file was modified MechJebLibTest/PVG/Titan2Tests.cs (diff)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was addedMechJeb2/MechJebModuleAscentSettings.cs
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Propellant.cs (diff)
The file was removedMechJeb2/MechJebModuleAscentNavBall.cs
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler4Reduced.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentGT.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicMenu.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Energy.cs (diff)
The file was addedMechJeb2/MechJebModuleAscentPVGStagingMenu.cs
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle5Reduced.cs (diff)
The file was modified MechJebLibTest/Structs/HTests.cs (diff)
The file was addedMechJeb2/MechJebLib/PVG/OptimizerBuilder.cs
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionAscent.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/AscentBuilder.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Intercept6Cartesian.cs (diff)
Commit 08b233a114b92b6572052e797d32a2c3fd226eed by lamont
checkpoint

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 08b233a)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionAscent.cs (diff)
The file was removedMechJeb2/MechJebModuleAscentAutopilot.cs
The file was modified MechJeb2/MechJebModuleFlightRecorderGraph.cs (diff)
The file was removedMechJeb2/MechJebModuleAscentClassic.cs
The file was modified MechJeb2/MechJebModuleDeployableController.cs (diff)
The file was addedMechJeb2/MechJebModuleAscentClassicAutopilot.cs
The file was addedMechJeb2/MechJebModuleAscentClassicPathMenu.cs
The file was removedMechJeb2/MechJebModuleAscentClassicMenu.cs
The file was addedMechJeb2/MechJebModuleAscentGTAutopilot.cs
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
The file was addedMechJeb2/MechJebModuleAscentBaseAutopilot.cs
The file was removedMechJeb2/MechJebModuleAscentPVG.cs
The file was modified MechJeb2/MechJebCore.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was removedMechJeb2/MechJebModuleAscentGT.cs
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was addedMechJeb2/MechJebModuleAscentPVGAutopilot.cs
Commit 329d8fe516570c30fdaf40eccf67b3903541e664 by lamont
push an update

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 329d8fe)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was modified MechJeb2/MechJebLib/PVG/Problem.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
The file was modified MechJeb2.sln.DotSettings (diff)
The file was modified MechJeb2/MechJebCore.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJeb2/PartExtensions.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/OptimizerBuilder.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumThrustIntegrator.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumCoastIntegrator.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/ResidualWrapper.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentGTAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGAutopilot.cs (diff)
The file was modified MechJeb2/GuiUtils.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/DD.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumThrustAnalytic.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicPathMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Ascent.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/H3.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionAscent.cs (diff)
The file was modified MechJebLibTest/PVG/Titan2Tests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/AscentBuilder.cs (diff)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/ObjectPool.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGStagingMenu.cs (diff)
The file was addedMechJeb2/MechJebModuleAscentSettingsMenu.cs
The file was modified MechJeb2/GLUtils.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/ArrayWrapper.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/H1.cs (diff)
The file was modified MechJeb2/MechJebModuleAttitudeController.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/Hn.cs (diff)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was addedMechJeb2/MechJebModuleSpinupController.cs
The file was modified MechJeb2/MechJebLib/PVG/Phase.cs (diff)
Commit 8a375f93c6df572e4f6b3395f6dff867d948d1d7 by lamont
another checkpoint

optimization is now done in a background thread

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 8a375f9)
The file was modified MechJebLibTest/Maths/FunctionsTests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Phase.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle5Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/ArrayWrapper.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGStagingMenu.cs (diff)
The file was modified MechJeb2/MechJebLib/Maths/FunctionImpls/RealDeltaVToChangeApoapsisPrograde.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumThrustAnalytic.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumThrustIntegrator.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/AscentBuilder.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler3Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/Maths/Functions.cs (diff)
The file was modified MechJebLibTest/Maths/DormandPrinceTests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJebLibTest/PVG/Titan2Tests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Intercept6Cartesian.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Problem.cs (diff)
The file was modified MechJeb2/MechJebModuleSpinupController.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumCoastIntegrator.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/OptimizerBuilder.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/ResidualWrapper.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJeb2/VesselState.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/Statics.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/IPVGTerminal.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler4Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle3Energy.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Energy.cs (diff)
The file was modified MechJebLibTest/Utils/StaticTests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Ascent.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Scale.cs (diff)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler5Reduced.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettingsMenu.cs (diff)
The file was modified MechJeb2/PartExtensions.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/IPVGIntegrator.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Propellant.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
Commit a37876e73373a95332b5e293ef6ecf709cc4a373 by lamont
checkpoint again.

whatever i got done before vacation.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: a37876e)
The file was modified MechJeb2/MechJebCore.cs (diff)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJebLibTest/Maths/DormandPrinceTests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Problem.cs (diff)
The file was addedMechJeb2/MechJebLib/PVG/TerminalConditions.cs
The file was modified MechJebLibTest/PVG/Titan2Tests.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGStagingMenu.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Ascent.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJeb2/GuiUtils.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/OptimizerBuilder.cs (diff)
The file was modified MechJebLibTest/Maths/FunctionsTests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was modified MechJeb2/MechJebLib/Utils/Statics.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGAutopilot.cs (diff)
The file was modified MechJeb2/MechJebLib/Maths/Functions.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/AscentBuilder.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
The file was addedMechJeb2/MechJebLib/Utils/Logger.cs
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
Commit c728bac299be33aadac547fcfb1a3172e9fd7424 by lamont
WIP

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: c728bac)
The file was modified MechJeb2/MechJebLib/PVG/Optimizer.cs (diff)
The file was addedMechJeb2/MechJebModuleAscentPVGSettingsMenu.cs
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler4Reduced.cs (diff)
The file was modified MechJeb2/GuiUtils.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleSpinupController.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Intercept6Cartesian.cs (diff)
The file was removedMechJeb2/MechJebModuleAscentPVGStagingMenu.cs
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler3Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/AscentBuilder.cs (diff)
The file was modified MechJeb2/CelestialBodyExtensions.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was modified MechJeb2/MechJebLib/PVG/Ascent.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Phase.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Energy.cs (diff)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler5Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/OptimizerBuilder.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle3Energy.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/IPVGTerminal.cs (diff)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was modified MechJeb2/copy_build.sh (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Propellant.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle5Reduced.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
Commit d4d90db2ee89c7a682822eae2a485a467fb168a5 by lamont
mostly working

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: d4d90db)
The file was modified MechJeb2/MechJebModuleSpinupController.cs (diff)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was modified MechJebLibTest/PVG/Titan2Tests.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
The file was removedMechJeb2/MechJebLib/PVG/TerminalConditions.cs
The file was modified MechJeb2/MechJebLib/PVG/Problem.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/OptimizerBuilder.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/MechJebModuleInfoItems.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Phase.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/AscentBuilder.cs (diff)
Commit 342d5a088a4b5639c827f7bca65c032c73c4c77b by lamont
more WIP

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 342d5a0)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGSettingsMenu.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJebLibTest/Utils/StaticTests.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Ascent.cs (diff)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/OptimizerBuilder.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/Statics.cs (diff)
Commit 0e684986e85008c8ffd0212204bbebc984aff3ba by lamont
many fixes

the analytic integrator now supports unguided stages properly i think

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 0e68498)
The file was modified MechJeb2/MechJebLib/Utils/ObjectPool.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Phase.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGAutopilot.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionAscent.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettingsMenu.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/OptimizerBuilder.cs (diff)
The file was modified MechJeb2/GuiUtils.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/DD.cs (diff)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was addedMechJebLibTest/PVG/AscentTests/Titan2Tests.cs
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumThrustAnalytic.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/AscentBuilder.cs (diff)
The file was modified MechJebLibTest/Maths/FunctionsTests.cs (diff)
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was removedMechJeb2/MechJebLib/PVG/Integrators/VacuumCoastIntegrator.cs
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was addedMechJebLibTest/PVG/Integrators/VacuumThrustIntegratorTests.cs
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Optimizer.cs (diff)
The file was addedMechJeb2/MechJebLib/PVG/Integrators/VacuumCoastAnalytic.cs
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumThrustIntegrator.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Ascent.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGSettingsMenu.cs (diff)
The file was removedMechJebLibTest/PVG/Titan2Tests.cs
The file was addedMechJebLibTest/PVG/AscentTests/TheStandardTests.cs
The file was modified MechJeb2.sln.DotSettings (diff)
Commit 51c6c15bf3575fb62821f3be5d72c9d4fd256386 by lamont
Code cleanup

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 51c6c15)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGSettingsMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Ascent.cs (diff)
Commit 3dfe8a1018006d35fe25f9809c5786b09590eb4e by lamont
fixed burn time fixes and test fixes

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 3dfe8a1)
The file was modified MechJeb2/MechJebLib/PVG/AscentBuilder.cs (diff)
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
The file was modified MechJebLibTest/PVG/AscentTests/TheStandardTests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was addedMechJebLibTest/PVG/AscentTests/BuggyTests.cs
The file was modified MechJebLibTest/PVG/AscentTests/Titan2Tests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Ascent.cs (diff)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGSettingsMenu.cs (diff)
Commit 46d5fd7ba3ef74e90c1c1bdf20439f18bc27a1f6 by lamont
Fix optimizer trying to coast when it shouldn't

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 46d5fd7)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
Commit 3c4b656c429d2a33b6ef4daa3a38792a32dfdd2f by lamont
Some code cleanup in the PVG Ascent algorithm

breaks up the algorithm into fixed-vs-optimized rocket burntimes since
those are getting difficult to handle, and also starts to treat the
phase list a bit more immutably since that was getting crazy.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 3c4b656)
The file was modified MechJebLibTest/PVG/AscentTests/TheStandardTests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/OptimizerBuilder.cs (diff)
The file was modified MechJebLibTest/AssertionExtensions.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Ascent.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Phase.cs (diff)
Commit 57b06246338cf0e49161bef11847617f65b169bc by lamont
unrelated code cleanup

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 57b0624)
The file was modified MechJeb2/FuelNode.cs (diff)
The file was modified MechJeb2/FuelFlowSimulation.cs (diff)
Commit 46a9693cca763b6a5ba500f4d4d135d1aa8cd4c2 by lamont
Fix FuelFlowSim for NO_FLOW resources in Engines

This fixes a bug affecting Delta IV Heavy setup with asparagus staging.  The RS68 engines have had Ablator added to them as an additional "fuel" which is NO_FLOW.

The old check CanDrawResource() which was used to determine if staging was allowed was not aware of fuel modes and that caused it to check if any part in the crossfeedset had the fuel even for NO_FLOW fuels.  This meant that after the side boosters flamed out that the center core would still be burning Ablator and it would that Ablator "accessible" in its crossfeed set coming from the side engines (because of asparagus).

This may also affect SRBs since those fuels are NO_FLOW as well?

However, I think it requires something like Asparagus staging And given that RO doesn't allow crossfeed through decouplers or fuel pipes it may be a pretty narrow bugfix.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 46a9693)
The file was modified MechJeb2/FuelFlowSimulation.cs (diff)
The file was modified MechJeb2/FuelNode.cs (diff)
Commit 42435f42479ca1f87479c15a80916447b92f814d by lamont
Fix StagingController for NO_FLOW fuels

Companion to #1612 to fix autostaging.

Had to sort of invert the algorithm to loop over all the propellants in
all the active engines so that I could grab the Mode off of the engine
propellant (seems not to be associated with the resources on the tank).

This worked on my test Delta IV Heavy on the first try...  Makes me
wonder what I broke...

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 42435f4)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
Commit 93f2709f1536b1f62ac88666160a571c505882fe by lamont
remove dead code comment

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 93f2709)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
Commit 9a0d17f80c2674208de99a4e3560b4068fa21d47 by lamont
simplify MJlib logger

i was doing way too much work here.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 9a0d17f)
The file was modified MechJeb2/MechJebLib/Utils/Logger.cs (diff)
The file was modified MechJeb2/MechJebCore.cs (diff)
Commit ba84b68af156904a8617a960ef0460cf6efe39a5 by lamont
Use new ToSI extnesion method everywhere

Should be backwards compatible only with bugfixes and tests.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: ba84b68)
The file was modified MechJeb2/MechJebModuleInfoItems.cs (diff)
The file was modified MechJeb2/Maneuver/OperationAdvancedTransfer.cs (diff)
The file was modified MechJeb2/Maneuver/OperationPeriapsis.cs (diff)
The file was modified MechJeb2/Maneuver/OperationEllipticize.cs (diff)
The file was modified MechJeb2/Maneuver/OperationApoapsis.cs (diff)
The file was modified MechJeb2/MechJebModuleCustomInfoWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSBalancer.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptCondition.cs (diff)
The file was modified MechJeb2/Maneuver/OperationSemiMajor.cs (diff)
The file was modified MechJeb2/MechJebModuleWaypointWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicPathMenu.cs (diff)
The file was modified MechJeb2/MechJebStageStatsHelper.cs (diff)
The file was modified MechJeb2/MuUtils.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/Statics.cs (diff)
The file was modified MechJeb2/MechJebModuleFlightRecorderGraph.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleSpaceplaneGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleTranslatron.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingGuidance.cs (diff)
Commit 97b02b96a35205d18781df22d9cf07ed03a53312 by lamont
Try to see if JetBrains.Annotations breaks builds

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 97b02b9)
The file was modified MechJeb2/MechJebModuleAirplaneGuidance.cs (diff)
Commit e62cd5e14ea5d1c566df9aee02e2b94be5ae5c56 by lamont
Apply UsedImplicitly to fix dead code analysis

MJ uses a bunch of reflection.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: e62cd5e)
The file was modified MechJeb2/Maneuver/OperationPlane.cs (diff)
The file was modified MechJeb2/MechJebModuleAirplaneAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleSmartRcs.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeEditor.cs (diff)
The file was modified MechJeb2/MechJebModuleRoverWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicAutopilot.cs (diff)
The file was modified MechJeb2/Maneuver/OperationKillRelVel.cs (diff)
The file was modified MechJeb2/MechJebModuleTargetController.cs (diff)
The file was modified MechJeb2/Maneuver/OperationApoapsis.cs (diff)
The file was modified MechJeb2/MechJebModuleRoverController.cs (diff)
The file was modified MechJeb2/MechJebModuleStageStats.cs (diff)
The file was modified MechJeb2/MechJebModuleDockingAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSBalancerWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleDockingGuidance.cs (diff)
The file was modified MechJeb2/ModExtensionDemo.cs (diff)
The file was modified MechJeb2/Maneuver/OperationEllipticize.cs (diff)
The file was modified MechJeb2/Maneuver/OperationResonantOrbit.cs (diff)
The file was modified MechJeb2/MechJebModuleDebugArrows.cs (diff)
The file was modified MechJeb2/Maneuver/OperationCircularize.cs (diff)
The file was modified MechJeb2/FuelNode.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettingsMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleInfoItems.cs (diff)
The file was modified MechJeb2/MechJebModuleFlightRecorder.cs (diff)
The file was modified MechJeb2/MechJebModuleSpaceplaneAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleWarpHelper.cs (diff)
The file was modified MechJeb2/Maneuver/OperationLambert.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleManeuverPlanner.cs (diff)
The file was modified MechJeb2/Maneuver/OperationCourseCorrection.cs (diff)
The file was modified MechJeb2/MechJebModuleMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGAutopilot.cs (diff)
The file was modified MechJeb2/Maneuver/OperationInclination.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilotWindow.cs (diff)
The file was modified MechJeb2/Maneuver/OperationInterplanetaryTransfer.cs (diff)
The file was modified MechJeb2/Maneuver/OperationSemiMajor.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
The file was modified MechJeb2/MechJebModuleSpinupController.cs (diff)
The file was modified MechJeb2/MechJebModuleWarpController.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicPathMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSController.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingPredictions.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSBalancer.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleTranslatron.cs (diff)
The file was modified MechJeb2/Maneuver/OperationPeriapsis.cs (diff)
The file was modified MechJeb2/MechJebModuleFlightRecorderGraph.cs (diff)
The file was modified MechJeb2/Maneuver/OperationTransfer.cs (diff)
The file was modified MechJeb2/MechJebModuleSmartASS.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleSolarPanelController.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentGTAutopilot.cs (diff)
The file was modified MechJeb2/Maneuver/OperationAdvancedTransfer.cs (diff)
The file was modified MechJeb2/Maneuver/OperationLongitude.cs (diff)
The file was modified MechJeb2/MechJebModuleDeployableAntennaController.cs (diff)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGSettingsMenu.cs (diff)
The file was modified MechJeb2/Maneuver/OperationLan.cs (diff)
The file was modified MechJeb2/Maneuver/OperationMoonReturn.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAttitudeAdjustment.cs (diff)
The file was modified MechJeb2/MechJebModuleScript.cs (diff)
The file was modified MechJeb2/MechJebModuleSpaceplaneGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleWaypointWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleAttitudeController.cs (diff)
Commit be96049fedaa159ab38d34144082cef4fd58f967 by lamont
code cleanup to MechJebCore

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: be96049)
The file was modified MechJeb2.sln.DotSettings (diff)
The file was modified MechJeb2/MechJebCore.cs (diff)
Commit df5aebcff024b6a9454b600fc67178d37b09bf0d by lamont
Use aggressive inlining

This makes a large difference, around a factor of 3x speedup in
stuff like Deg2Rad() on my machine.  There is still a tiny perf
hit of around 5% compared to just inlining the math directly,
which seems perfectly acceptable.

I didn't exhaustively perf check all these APIs, but they're all
trivial enough that the codebloat should be small.  Stuff like
ToSI() would clearly cause bloat and so are not included.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: df5aebc)
The file was modified MechJeb2/MechJebLib/Utils/Statics.cs (diff)
Commit 12ae2c66faf5424081ef109a8d8a761e1468ae5b by lamont
Code cleanup for the Maneuver Operations

This might be a breaking change if anyone out there uses these
via reflection or whatnot.

OperationAdvancedTransfer still needs more love.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 12ae2c6)
The file was modified MechJeb2/Maneuver/OperationInterplanetaryTransfer.cs (diff)
The file was modified MechJeb2/Maneuver/TimeSelector.cs (diff)
The file was modified MechJeb2/Maneuver/OperationResonantOrbit.cs (diff)
The file was modified MechJeb2/Maneuver/OperationApoapsis.cs (diff)
The file was modified MechJeb2/Maneuver/OperationEllipticize.cs (diff)
The file was modified MechJeb2/Maneuver/OperationKillRelVel.cs (diff)
The file was modified MechJeb2/Maneuver/OperationLongitude.cs (diff)
The file was modified MechJeb2/Maneuver/OperationPlane.cs (diff)
The file was modified MechJeb2/Maneuver/Operation.cs (diff)
The file was modified MechJeb2/Maneuver/OperationAdvancedTransfer.cs (diff)
The file was modified MechJeb2/Maneuver/OperationPeriapsis.cs (diff)
The file was modified MechJeb2/Maneuver/OperationSemiMajor.cs (diff)
The file was modified MechJeb2/Maneuver/OperationLan.cs (diff)
The file was modified MechJeb2/MechJebModuleManeuverPlanner.cs (diff)
The file was modified MechJeb2/Maneuver/OperationMoonReturn.cs (diff)
The file was modified MechJeb2/Maneuver/OperationCourseCorrection.cs (diff)
The file was modified MechJeb2/Maneuver/OperationTransfer.cs (diff)
The file was modified MechJeb2/Maneuver/Porkchop.cs (diff)
The file was modified MechJeb2/Maneuver/PlotArea.cs (diff)
The file was modified MechJeb2/Maneuver/OperationCircularize.cs (diff)
The file was modified MechJeb2/Maneuver/OperationLambert.cs (diff)
The file was modified MechJeb2/Maneuver/OperationInclination.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionManoeuver.cs (diff)
Commit 255297192c3d7c4a729ca626bc3a9c59ee04a78e by lamont
Move ODE in MathJ to MechJebLib

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 2552971)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumThrustIntegrator.cs (diff)
The file was removedMechJeb2/MathJ/DormandPrince.cs
The file was removedMechJeb2/MathJ/Event.cs
The file was modified MechJebLibTest/Maths/DormandPrinceTests.cs (diff)
The file was addedMechJeb2/MechJebLib/Maths/ODE/DormandPrince.cs
The file was addedMechJeb2/MechJebLib/Maths/ODE/Event.cs
The file was removedMechJeb2/MathJ/ODESolver.cs
The file was removedMechJeb2/MathJ/ODE.cs
The file was addedMechJeb2/MechJebLib/Maths/ODE/ODESolver.cs
The file was addedMechJeb2/MechJebLib/Maths/ODE/ODE.cs
Commit 447f766aef114a184d6c870931daa0db41a91a55 by lamont
Change License on ODE Solver

This was all my work originally.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 447f766)
The file was modified MechJeb2/MechJebLib/Maths/ODE/DormandPrince.cs (diff)
The file was modified MechJeb2/MechJebLib/Maths/ODE/ODESolver.cs (diff)
The file was modified MechJeb2/MechJebLib/Maths/ODE/Event.cs (diff)
The file was modified MechJeb2/MechJebLib/Maths/ODE/ODE.cs (diff)
Commit f5a5d40de0540cdb4ec3f88d4ffa81d88bfc1ceb by lamont
Move "SpaceMath" function into MechJebLib

- the singleimpulsehyperbolicburn function still allocates due to a closure.
- functions probably need some better organization at this point.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: f5a5d40)
The file was modified MechJeb2/Maneuver/TransferCalculator.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was removedMechJeb2/SpaceMath.cs
The file was addedMechJeb2/MechJebLib/Maths/FunctionImpls/RealSingleImpulseHyperbolicBurn.cs
The file was modified MechJeb2/MechJebLib/Maths/Functions.cs (diff)
Commit ff93427a853c061965704f661c60b44412bb3213 by lamont
M3 fixes and a lot more

- M3 test coverage
- M3 fixes (matrix inverse, transpose and other fixes)
- M3 documentation
- move PIDLoop to MechJebLib
- tweak NearlyEqual to make more sense near zero
- bit more test coverage for some other Functions and APIs

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: ff93427)
The file was modified MechJeb2/MechJebLib/Maths/Functions.cs (diff)
The file was removedMechJeb2/AttitudeControllers/PIDLoop.cs
The file was modified MechJebLibTest/AssertionExtensions.cs (diff)
The file was modified MechJebLibTest/Maths/FunctionsTests.cs (diff)
The file was modified MechJebLibTest/PVG/Integrators/VacuumThrustIntegratorTests.cs (diff)
The file was addedMechJebLibTest/Structs/M3Tests.cs
The file was addedMechJebLibTest/Structs/Q3Tests.cs
The file was addedMechJebLibTest/Control/PIDLoopTests.cs
The file was modified MechJeb2/MechJebLib/Primitives/Q3.cs (diff)
The file was modified MechJebLibTest/PVG/AscentTests/Titan2Tests.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was modified MechJebLibTest/PVG/AscentTests/TheStandardTests.cs (diff)
The file was addedMechJebLibTest/Structs/V3Tests.cs
The file was modified MechJebLibTest/Utils/StaticTests.cs (diff)
The file was modified MechJebLibTest/PVG/AscentTests/BuggyTests.cs (diff)
The file was addedMechJeb2/MechJebLib/Control/PIDLoop.cs
The file was modified MechJeb2/MechJebLib/Primitives/M3.cs (diff)
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
The file was modified MechJeb2/MechJebLib/Utils/Statics.cs (diff)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
Commit 47daf5b7f5c1fd59f5c480ae197fd106c332f795 by lamont
Change "attach altitude" to "burnout altitude"
(commit: 47daf5b)
The file was modified Localization/zh-cn.cfg (diff)
The file was modified Localization/en-us.cfg (diff)
The file was modified Localization/es-es.cfg (diff)
Commit ad2c71003e8330f6c8c764072128fc49065715fa by lamont
Change "stop at stage" to make it clearer it affects autostaging
(commit: ad2c710)
The file was modified Localization/en-us.cfg (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
Commit d28bbe93f4dd07556fd61e5644abd3161cd520bc by lamont
Address warnings

This test I find intellectually intersting as living documentation
but causes too many warnings.
(commit: d28bbe9)
The file was modified MechJebLibTest/Structs/M3Tests.cs (diff)
Commit adf3ecd64191d3c9f4584093ccf930e0f51d21dd by lamont
Fix PVG terminal staging bug

If the insertion stage has RCS but no relights then the
guidance controller will wind up staging off the payload
once terminal RCS happens (breaking the terminal RCS).

This reverts to previous behavior that I didn't realize
was important.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: adf3ecd)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
Commit 574c1503044182118dddfe3586d15f7c802a8e7a by lamont
Fix the autostage limit

Somehow I completely deleted the functionality.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 574c150)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
Commit 9763ffd721da9c81630277759704766a3915a7b7 by lamont
Track down and fix some annoying allocations in the ODE+interpolants

The ODE should be allocation-free now via memory pooling.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 9763ffd)
The file was modified MechJeb2/MechJebLib/Primitives/HBase.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/DD.cs (diff)
The file was modified MechJebLibTest/Maths/DormandPrinceTests.cs (diff)
Commit 2be3676970a3885d42c5b1bb50ff8afff8ddc855 by lamont
Add proper tests for Gooding Lambert calculator

At least have pretty good coverage of single-revolution use case now

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 2be3676)
The file was modified MechJeb2/MechJebLib/Maths/Gooding.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was addedMechJebLibTest/Maths/GoodingTests.cs
The file was modified MechJeb2/MechJebLib/Maths/Functions.cs (diff)
The file was modified MechJeb2/Maneuver/TransferCalculator.cs (diff)
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
Commit 81232eb45e81a0b996845b5a3078e62bf6a337dc by lamont
Remove SwapYZ API

Just use KSP's Vector3d.xyz field directly.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 81232eb)
The file was modified MechJeb2/MuUtils.cs (diff)
The file was modified MechJeb2/MathExtensions.cs (diff)
The file was modified MechJeb2/OrbitExtensions.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
Commit 78d2fa5e4c8eb1a0800d2970da92fd7bdbdda410 by lamont
Automated cleanup of many ancillary source code modules

This all probably needs a second pass by a human to make it
all nicer, this is only what the robot thinks is good.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 78d2fa5)
The file was modified MechJeb2/DisplayModule.cs (diff)
The file was modified MechJeb2/GLUtils.cs (diff)
The file was modified MechJeb2/ToolbarWrapper.cs (diff)
The file was modified MechJeb2/Vector6.cs (diff)
The file was modified MechJeb2/InstallChecker.cs (diff)
The file was modified MechJeb2/PartExtensions.cs (diff)
The file was modified MechJeb2/MechJebPod.cs (diff)
The file was modified MechJeb2/ComputerModule.cs (diff)
The file was modified MechJeb2/OrbitExtensions.cs (diff)
The file was modified MechJeb2/CelestialBodyExtensions.cs (diff)
The file was modified MechJeb2/GlobalSuppressions.cs (diff)
The file was modified MechJeb2/MathExtensions.cs (diff)
The file was modified MechJeb2/AutopilotModule.cs (diff)
The file was modified MechJeb2/MechJebAR202.cs (diff)
The file was modified MechJeb2/ReflectionUtils.cs (diff)
The file was modified MechJeb2/RCSSolver.cs (diff)
The file was modified MechJeb2/CompatibilityChecker.cs (diff)
The file was modified MechJeb2/MechJebStageStatsHelper.cs (diff)
The file was modified MechJeb2/CachedLocalizer.cs (diff)
The file was modified MechJeb2/ReentrySimulation.cs (diff)
The file was modified MechJeb2/MuUtils.cs (diff)
The file was modified MechJeb2/MechjebBundlesManager.cs (diff)
The file was modified MechJeb2/PIDController.cs (diff)
The file was modified MechJeb2/VesselExtensions.cs (diff)
The file was modified MechJeb2/ModExtensionDemo.cs (diff)
Commit 6086f8ef4b8a24594fd75c34ad7d990be31fbd39 by lamont
Rename the "Swapped" API

I never remember if "Swapped" in the API refers to world
space being "Swapped" or right-handed space being "Swapped".

Removes Prograde() and Up() since those are now actual KSP
APIs and those extension methods are confusingly overwriting
what KSP does (although both are world coordinates and
backwards compatible -- I hope).

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 6086f8e)
The file was modified MechJeb2/LandingAutopilot/DecelerationBurn.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was modified MechJeb2/ReentrySimulation.cs (diff)
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was modified MechJeb2/LandingAutopilot/DeorbitBurn.cs (diff)
The file was modified MechJeb2/LandingAutopilot/CoastToDeceleration.cs (diff)
The file was modified MechJeb2/Maneuver/OperationInterplanetaryTransfer.cs (diff)
The file was modified MechJeb2/GLUtils.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleInfoItems.cs (diff)
The file was modified MechJeb2/OrbitExtensions.cs (diff)
Commit bb548ca5d217af184e8b07152ae7988cceea90c5 by lamont
clean up the DeltaVToInterceptAtTime() API.

adds some glue APIs to help dealing with converting between
KSP APIs and the right handed V3 APIs.

smears some aggressive inlining across many tiny APIs which
should be beneficial, but i haven't tested.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: bb548ca)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/OrbitExtensions.cs (diff)
The file was modified MechJeb2/Maneuver/OperationLambert.cs (diff)
The file was modified MechJeb2/Maneuver/TransferCalculator.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousGuidance.cs (diff)
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was modified MechJeb2/MathExtensions.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionRendezvous.cs (diff)
Commit 2061c32e77984cb901df70cbd4468e26af3ac89c by lamont
fix probable transfer calculator bug

This has to be buggy, and its easier to see now that I renamed
the APIs to included "Rotated" in them.  We don't rotate to start
so we shouldn't be rotating to end.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 2061c32)
The file was modified MechJeb2/Maneuver/TransferCalculator.cs (diff)
Commit 4bb40919fd5332b842dc4169c567c34bc038989b by lamont
ReturnFromMoon reimplementation and large reorganization

- Reorganizes a ton of code, I'm still only halfway done and still
  not at all happy with it.

- DeltaVToChangePeriapsis/Apoapsis have been reimplemented with a
  MJLib version that solves an SQP problem to provide an optimal
  solution.  I still need to play around with making it 2D by
  converting to the perifocal frame and using analytic derivatives.

- DeltaVAndTimeForMoonReturnEjection got a massive reimplementation
  using Sims-Flanagan transcription to turn it into an SQP problem.
  The result should be nearly optimal and much more accurate.  The
  remaining inaccuracies are dominated by my simulation and KSP not
  agreeing on something.  Probably something like the exact way
  that KSP executes an SOI transition.

Somewhere in here I think I fixed things like the MJLib
TimeToNextRadius() implementation for hyperbolic orbits.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 4bb4091)
The file was addedMechJeb2/MechJebLib/Core/Functions/Maneuvers.cs
The file was addedMechJeb2/MechJebLib/Core/FunctionImpls/RealSingleImpulseHyperbolicBurn.cs
The file was modified MechJeb2/MechJebLib/Primitives/V3.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Ascent.cs (diff)
The file was removedMechJeb2/MechJebLib/Maths/FunctionImpls/RealSingleImpulseHyperbolicBurn.cs
The file was removedMechJeb2/MechJebLib/Maths/ODE/ODE.cs
The file was addedMechJeb2/MechJebLib/Core/ODE/ODESolver.cs
The file was addedMechJeb2/MechJebLib/Core/Functions/Interpolants.cs
The file was modified MechJeb2/MechJebLib/Primitives/Hn.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/Statics.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/H1.cs (diff)
The file was removedMechJeb2/MechJebLib/Maths/Shepperd.cs
The file was removedMechJeb2/MechJebLib/Maths/ODE/Event.cs
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumThrustIntegrator.cs (diff)
The file was modified MechJebLibTest/Maths/GoodingTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/M3.cs (diff)
The file was addedMechJebLibTest/Maths/TwoBody/FarnocchiaTests.cs
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
The file was addedMechJeb2/MechJebLib/Core/TwoBody/Farnocchia.cs
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler3Reduced.cs (diff)
The file was removedMechJeb2/MechJebLib/Maths/ODE/DormandPrince.cs
The file was addedMechJeb2/MechJebLib/Core/ODE/DormandPrince.cs
The file was addedMechJeb2/MechJebLib/Core/TwoBody/Shepperd.cs
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Energy.cs (diff)
The file was modified MechJebLibTest/Maths/FunctionsTests.cs (diff)
The file was modified MechJeb2/Maneuver/OperationMoonReturn.cs (diff)
The file was modified MechJeb2/Maneuver/TransferCalculator.cs (diff)
The file was removedMechJeb2/MechJebLib/Maths/Functions.cs
The file was addedMechJebLibTest/Maths/TwoBody/ShepperdTests.cs
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle5Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/H3.cs (diff)
The file was addedMechJeb2/MechJebLib/Core/ODE/ODE.cs
The file was addedMechJeb2/MechJebLib/Core/Maths.cs
The file was modified MechJebLibTest/PVG/AscentTests/TheStandardTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/DD.cs (diff)
The file was addedMechJeb2/MechJebLib/Core/ODE/Event.cs
The file was modified MechJebLibTest/Structs/V3Tests.cs (diff)
The file was addedMechJeb2/MechJebLib/Core/BrentRoot.cs
The file was modified MechJebLibTest/PVG/AscentTests/BuggyTests.cs (diff)
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler4Reduced.cs (diff)
The file was removedMechJeb2/MechJebLib/Maths/BrentRoot.cs
The file was modified MechJeb2/MechJebLib/Utils/Check.cs (diff)
The file was modified MechJeb2/Maneuver/OperationPeriapsis.cs (diff)
The file was addedMechJeb2/MechJebLib/Core/FunctionImpls/RealDeltaVToChangeApoapsisPrograde.cs
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified README.md (diff)
The file was modified MechJebLibTest/PVG/AscentTests/Titan2Tests.cs (diff)
The file was addedMechJeb2/MechJebLib/Core/Functions/Angles.cs
The file was removedMechJeb2/MechJebLib/Maths/FunctionImpls/RealDeltaVToChangeApoapsisPrograde.cs
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumCoastAnalytic.cs (diff)
The file was modified MechJeb2/Maneuver/OperationApoapsis.cs (diff)
The file was addedMechJeb2/MechJebLib/Core/Gooding.cs
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was removedMechJeb2/MechJebLib/Maths/ODE/ODESolver.cs
The file was removedMechJeb2/MechJebLib/Maths/BrentMin.cs
The file was modified MechJebLibTest/Maths/BrentRootTests.cs (diff)
The file was removedMechJeb2/MechJebLib/Maths/Gooding.cs
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler5Reduced.cs (diff)
The file was addedMechJeb2/MechJebLib/Core/BrentMin.cs
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
Commit 47adf58b522190f78baaf334a261a9eec37aee9c by lamont
Cleanup of Angle APIs

I like "EFromNu" slightly better since it makes this read better:

```
MFromE(EFromNu(nu, ecc), ecc);
```

That is obviously M...From...Nu

In the signature when using `From` it more matches the way
that C# declares functions (return type before args).

Adds some missing copyright headers.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 47adf58)
The file was modified MechJeb2/MechJebLib/Core/Functions/Angles.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Functions/Maneuvers.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Maths.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/Check.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/TwoBody/Farnocchia.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Functions/Interpolants.cs (diff)
Commit d5d7976d737c8e3efee1ad77bdbf793ba3c2c5a2 by lamont
Make Moon Return work for initial hyperbolic

It will solve for a 'cleanup burn' if the initial ejection burn
was off, or the user wants to refine the targeting.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: d5d7976)
The file was modified MechJeb2/MechJebLib/Utils/Statics.cs (diff)
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was modified MechJebLibTest/Maths/FunctionsTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Functions/Maneuvers.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Functions/Angles.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/FunctionImpls/RealSingleImpulseHyperbolicBurn.cs (diff)
The file was modified MechJeb2/Maneuver/OperationMoonReturn.cs (diff)
Commit 7a8d75eb38ad7eeb0f2de2c7306d4b5bd099d254 by lamont
Use the perifocal frame for Apsis change.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 7a8d75e)
The file was modified MechJeb2/MechJebLib/Core/Maths.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Functions/Maneuvers.cs (diff)
Commit ec33cd626d83c7dfab897a6d642aefc0ea4063aa by lamont
PID tuning

- revert the likely somewhat poor idea I had for adding an integral
  term to the position PID

- refactor the position controller to more clearly allow setting Kp
  directly rather than whatever `PosFactor` was.

- bump up position Kp from around 0.7 to 2.0 which helps with
  rockets at physwarp going through max-Q

- add deadband and clegg crossing logic to the PID controller and use
  that to add some stability to the attitude controller around zero.

closes #1636 maybe, IDK there's not enough info there.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: ec33cd6)
The file was modified MechJeb2/MechJebLib/Control/PIDLoop.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGAutopilot.cs (diff)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
Commit 850d2d4040d9455d5f1af6495992c5945939e706 by lamont
More PID tweaks

Add a configurable deadband to the pos PID and make the clegg
setting configurable and turn it off by default.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 850d2d4)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
Commit c7cbe95c5948166b9dbb0f42e5f15e7c3cb3c63c by lamont
Some VesselState cleanup

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: c7cbe95)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
The file was modified MechJeb2/VesselState.cs (diff)
The file was modified MechJeb2.sln.DotSettings (diff)
Commit 0daaf4ea51f0e7b2c6f798b20de30c78094aab86 by lamont
Revert "Some VesselState cleanup"

This reverts commit c7cbe95c5948166b9dbb0f42e5f15e7c3cb3c63c.
(commit: 0daaf4e)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
The file was modified MechJeb2.sln.DotSettings (diff)
The file was modified MechJeb2/VesselState.cs (diff)
Commit c9006497b16dc86acea60829a595820dd4068b7b by lamont
clean up the scale struct

boil it down to three double values which makes it more appropriate
as a struct, plus some style consistency.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: c900649)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle5Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Energy.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Intercept6Cartesian.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler3Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle3Energy.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler5Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Scale.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Problem.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler4Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Phase.cs (diff)
Commit cde27ec8772307f1f4b22ccab7360944b463b993 by lamont
Reuse the scale object in the return to moon maneuver

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: cde27ec)
The file was modified MechJeb2/MechJebLib/PVG/Problem.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Functions/Maneuvers.cs (diff)
The file was removedMechJeb2/MechJebLib/PVG/Scale.cs
The file was modified MechJebLibTest/PVG/Integrators/VacuumThrustIntegratorTests.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/IPVGTerminal.cs (diff)
The file was addedMechJeb2/MechJebLib/Primitives/Scale.cs
Commit 213512f7646d18afe4eae1fa46b615262e46f826 by lamont
reorganize and extract the maneuvers in mechjeblib a little better

still very work-in-progress

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 213512f)
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was modified MechJebLibTest/Maths/FunctionsTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Functions/Maneuvers.cs (diff)
The file was modified MechJeb2.sln.DotSettings (diff)
The file was addedMechJeb2/MechJebLib/Maneuvers/ReturnFromMoon.cs
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was addedMechJeb2/MechJebLib/Maneuvers/ChangeOrbitalElement.cs
Commit b3049f545e5e53c8d9e2935500a0598b8264d9bd by lamont
Redo SMA Changing Maneuver as SQP problem

Reuses the Apsis changing code that I already wrote and now
is optimal burn direction instead of just prograde/retrograde.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: b3049f5)
The file was modified MechJebLibTest/Maths/FunctionsTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/ChangeOrbitalElement.cs (diff)
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
Commit ffb635da6df9043e472aa696420227f1bb5e7af1 by lamont
Reformat and Cleanup on a lot of code

Entirely automated

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: ffb635d)
The file was modified MechJeb2/Maneuver/Operation.cs (diff)
The file was modified MechJeb2/Maneuver/OperationInterplanetaryTransfer.cs (diff)
The file was modified MechJeb2/LandingAutopilot/UntargetedDeorbit.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionTolerance.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptAction.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionStaging.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionExecuteNode.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionRendezvousAP.cs (diff)
The file was modified MechJeb2/AttitudeControllers/HybridController.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionFor.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionLoadScript.cs (diff)
The file was modified MechJeb2/Maneuver/PlotArea.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionTemplate.cs (diff)
The file was modified MechJeb2/Maneuver/OperationSemiMajor.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionsList.cs (diff)
The file was modified MechJeb2/AttitudeControllers/TorquePI.cs (diff)
The file was modified MechJeb2/Maneuver/OperationLongitude.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionCrewTransfer.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionParallel.cs (diff)
The file was modified MechJeb2/AttitudeControllers/KosAttitudeController.cs (diff)
The file was modified MechJeb2/Maneuver/OperationPlane.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionDockingShield.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionIRSequencer.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionTargetDock.cs (diff)
The file was modified MechJeb2/LandingAutopilot/DeorbitBurn.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionThrottle.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionTimer.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionActionGroup.cs (diff)
The file was modified MechJeb2/UnityToolbag/Future/README.md (diff)
The file was modified MechJeb2/Maneuver/TimeSelector.cs (diff)
The file was modified MechJeb2/UnityToolbag/Dispatcher/Dispatcher.cs (diff)
The file was modified MechJeb2/Maneuver/OperationLan.cs (diff)
The file was modified MechJeb2/ScriptsModule/IMechJebModuleScriptActionContainer.cs (diff)
The file was modified MechJeb2/FlyingSim/SimulatedPart.cs (diff)
The file was modified MechJeb2/Maneuver/OperationKillRelVel.cs (diff)
The file was modified MechJeb2/AttitudeControllers/MJAttitudeController.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionPause.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionWaitFor.cs (diff)
The file was modified MechJeb2/LandingAutopilot/FinalDescent.cs (diff)
The file was modified MechJeb2/Maneuver/OperationCourseCorrection.cs (diff)
The file was modified MechJeb2/Maneuver/OperationCircularize.cs (diff)
The file was modified MechJeb2/Maneuver/OperationPeriapsis.cs (diff)
The file was modified MechJeb2/LandingAutopilot/KillHorizontalVelocity.cs (diff)
The file was modified MechJeb2/AttitudeControllers/BaseAttitudeController.cs (diff)
The file was modified MechJeb2/Maneuver/OperationInclination.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptCondition.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionUndock.cs (diff)
The file was modified MechJeb2/UnityToolbag/Dispatcher/README.md (diff)
The file was modified MechJeb2/FlyingSim/SimulatedParachute.cs (diff)
The file was modified MechJeb2/UnityToolbag/Future/Future.cs (diff)
The file was modified MechJeb2/Maneuver/OperationApoapsis.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionActivateEngine.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionWarp.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionSmartASS.cs (diff)
The file was modified MechJeb2/Maneuver/OperationResonantOrbit.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionTarget.cs (diff)
The file was modified MechJeb2/LandingAutopilot/CoastToDeceleration.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionManoeuver.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionSAS.cs (diff)
The file was modified MechJeb2/ScriptsModule/IMechJebModuleScriptActionsList.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionIf.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionRCS.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionKos.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionLanding.cs (diff)
The file was modified MechJeb2/LandingAutopilot/LowDeorbitBurn.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionControlFrom.cs (diff)
The file was modified MechJeb2/AttitudeControllers/KosPIDLoop.cs (diff)
The file was modified MechJeb2/FlyingSim/SimulatedVessel.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionRendezvous.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionQuicksave.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionWhile.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionActiveVessel.cs (diff)
The file was modified MechJeb2/LandingAutopilot/CourseCorrection.cs (diff)
The file was modified MechJeb2/LandingAutopilot/DecelerationBurn.cs (diff)
The file was modified MechJeb2/LandingAutopilot/PlaneChange.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionAscent.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptActionDockingAutopilot.cs (diff)
The file was modified MechJeb2/Maneuver/OperationLambert.cs (diff)
The file was modified MechJeb2/Maneuver/OperationMoonReturn.cs (diff)
Commit 77644d27aeefad7cd5621e3f6ed5f2688ef4c837 by lamont
Add a maneuver to change eccentricity

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 77644d2)
The file was modified MechJeb2/MechJebLib/Core/Maths.cs (diff)
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was modified MechJebLibTest/Maths/FunctionsTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/ChangeOrbitalElement.cs (diff)
The file was addedMechJeb2/Maneuver/OperationEccentricity.cs
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was modified MechJeb2/MechJebLib/Core/Functions/Maneuvers.cs (diff)
Commit 9dafa078bbadff111f8f7933fb8ec469c6ce15ec by lamont
Drop the vel deadband

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 9dafa07)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
Commit bc584812d195b652ef27706fc54161f64c79be07 by lamont
Fix some namespacing issues

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: bc58481)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Energy.cs (diff)
The file was modified MechJebLibTest/PVG/AscentTests/Titan2Tests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler4Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/ODE.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/Statics.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/ChangeOrbitalElement.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Ascent.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle5Reduced.cs (diff)
The file was modified MechJebLibTest/Control/PIDLoopTests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumThrustIntegrator.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJebLibTest/Maths/FunctionsTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/Event.cs (diff)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler3Reduced.cs (diff)
The file was modified MechJebLibTest/Maths/DormandPrinceTests.cs (diff)
The file was modified MechJebLibTest/PVG/AscentTests/TheStandardTests.cs (diff)
The file was modified MechJebLibTest/Maths/TwoBody/FarnocchiaTests.cs (diff)
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was modified MechJebLibTest/Maths/TwoBody/ShepperdTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/ODESolver.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler5Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/Check.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/DormandPrince.cs (diff)
The file was modified MechJebLibTest/PVG/AscentTests/BuggyTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Control/PIDLoop.cs (diff)
Commit 9fa4f3870f19472d5412e28dd230908d301a657f by lamont
Missed one namespace issue

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 9fa4f38)
The file was modified MechJebLibTest/AssertionExtensions.cs (diff)
Commit e588c0b96b35963fdce5180d0139eae47b6fce3c by lamont
Maneuver tweaks

- increase the accuracy of the new solver.

- tweak some of the time selector options.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: e588c0b)
The file was modified MechJeb2/Maneuver/OperationApoapsis.cs (diff)
The file was modified MechJeb2/Maneuver/OperationEllipticize.cs (diff)
The file was modified MechJeb2/Maneuver/OperationPeriapsis.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/ChangeOrbitalElement.cs (diff)
The file was modified MechJeb2/Maneuver/OperationCircularize.cs (diff)
The file was modified MechJeb2/Maneuver/OperationResonantOrbit.cs (diff)
The file was modified MechJebLibTest/Maths/FunctionsTests.cs (diff)
The file was modified MechJeb2/Maneuver/OperationEccentricity.cs (diff)
The file was modified MechJeb2/Maneuver/OperationSemiMajor.cs (diff)
Commit 2547f3e2407d13e5068c296eae6cc5080dd9b3f2 by lamont
Compound assingment in Gooding solver

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 2547f3e)
The file was modified MechJeb2/MechJebLib/Core/Gooding.cs (diff)
Commit a840017fd4bd9c23c9c5937452a81ea7be3b551a by lamont
DormandPrince overhaul

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: a840017)
The file was addedMechJeb2/MechJebLib/Core/ODE/AbstractIVP.cs
The file was removedMechJeb2/MechJebLib/Core/ODE/ODE.cs
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJeb2.sln.DotSettings (diff)
The file was addedMechJeb2/MechJebLib/Core/ODE/AbstractRungeKutta.cs
The file was removedMechJeb2/MechJebLib/Core/ODE/DormandPrince.cs
The file was modified MechJebLibTest/Maths/TwoBody/FarnocchiaTests.cs (diff)
The file was removedMechJeb2/MechJebLib/Primitives/DD.cs
The file was addedMechJebLibTest/TestInitialization.cs
The file was modified MechJeb2/MechJebLib/Primitives/Hn.cs (diff)
The file was removedMechJeb2/MechJebLib/Core/ODE/Event.cs
The file was modified MechJeb2.sln (diff)
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
The file was modified MechJebLibTest/PVG/Integrators/VacuumThrustIntegratorTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/ObjectPool.cs (diff)
The file was modified MechJebLibTest/Structs/V3Tests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/IPVGIntegrator.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumCoastAnalytic.cs (diff)
The file was modified MechJebLibTest/Maths/DormandPrinceTests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/Check.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumThrustAnalytic.cs (diff)
The file was modified MechJebLibTest/Maths/BrentRootTests.cs (diff)
The file was addedMechJeb2/MechJebLib/Primitives/Vn.cs
The file was removedMechJeb2/MechJebLib/Core/ODE/ODESolver.cs
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumThrustIntegrator.cs (diff)
The file was modified MechJebLibTest/Maths/TwoBody/ShepperdTests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Phase.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was addedMechJeb2/MechJebLib/Core/ODE/DormandPrince5.cs
The file was modified MechJeb2/MechJebLib/Utils/Statics.cs (diff)
Commit 3010d0057c3e8c39e14eacfee2498dafd9b198b7 by lamont
better working error controller

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 3010d00)
The file was modified MechJeb2/MechJebLib/Core/ODE/AbstractIVP.cs (diff)
The file was addedMechJeb2/MechJebLib/Core/ODE/BogackiShampine32.cs
The file was removedMechJeb2/MechJebLib/Core/ODE/DormandPrince5.cs
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was addedMechJeb2/MechJebLib/Core/ODE/DormandPrince54.cs
The file was modified MechJeb2/MechJebLib/Primitives/Vn.cs (diff)
The file was modified MechJebLibTest/Maths/TwoBody/ShepperdTests.cs (diff)
The file was modified MechJebLibTest/Maths/DormandPrinceTests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumThrustIntegrator.cs (diff)
The file was modified MechJebLibTest/Maths/TwoBody/FarnocchiaTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/AbstractRungeKutta.cs (diff)
Commit c73a9cceb246dc28417e70844d1e4f01d88472a8 by lamont
PI error control

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: c73a9cc)
The file was modified MechJeb2/MechJebLib/Core/ODE/AbstractIVP.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/AbstractRungeKutta.cs (diff)
Commit 9359ed25a27b7da63bf73790bb56c5ed2840e587 by lamont
Simplify how I was thinking about K states

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 9359ed2)
The file was modified MechJeb2/MechJebLib/Core/ODE/DormandPrince54.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/BogackiShampine32.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/AbstractIVP.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/AbstractRungeKutta.cs (diff)
Commit 0c6899f8aca68b08e487a29a0591054538e653f4 by lamont
Add exception handling to cleanup

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 0c6899f)
The file was modified MechJeb2/MechJebLib/Core/ODE/AbstractIVP.cs (diff)
Commit dd95067b3a6baf7b9233204835028f084ea4ed6b by lamont
Basic minstep/maxstep logic

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: dd95067)
The file was modified MechJeb2/MechJebLib/Core/ODE/AbstractIVP.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/AbstractRungeKutta.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/DormandPrince54.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/BogackiShampine32.cs (diff)
Commit 2cb92923afc6803831c2d1854501ccdf5cada8ae by lamont
rearrange the DP5 interpolant

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 2cb9292)
The file was modified MechJeb2/MechJebLib/Core/ODE/DormandPrince54.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/BogackiShampine32.cs (diff)
Commit d277897cf6f90c2e4f2684fce0617f04a4de680e by lamont
Hang state off the IVP object

This reduces the method signatures but is less functional.

I was starting down the road of passing t, tnew, y, ynew and
dy, dynew to half of the callback methods, which starts to
look like litter.

Amazingly this fixes the Shepperd tests which seems to have been
a real bug fixed by the new Habs/_habsNext handling (probably in
better handling of Tnew and the isWithin() comparison when
pulling off the interpolated values?)

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: d277897)
The file was modified MechJeb2/MechJebLib/Core/ODE/AbstractIVP.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/DormandPrince54.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/BogackiShampine32.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/AbstractRungeKutta.cs (diff)
The file was modified MechJeb2/FuelFlowSimulation.cs (diff)
The file was modified MechJeb2/FuelNode.cs (diff)
Commit fc51317ee94a455221bee8dfb4e52c605778dc56 by siim.aaver
Fix .vs folder not being correctly gitignored
(commit: fc51317)
The file was modified .gitignore (diff)
Commit a82bc816061b9f3080b050dd96e0255d7af689b2 by siim.aaver
Optimize Stage stats simulation by copying second FuelFlowSimulation from the first instead of initilizing them twice
(commit: a82bc81)
The file was modified MechJeb2/FuelNode.cs (diff)
The file was modified MechJeb2/MechJebModuleStageStats.cs (diff)
The file was modified MechJeb2/FuelFlowSimulation.cs (diff)
Commit 944f9b2a631f7a6d0fdb6c1cf63a319fc082fbe7 by siim.aaver
Make #1515 account for changes made in 1660
(commit: 944f9b2)
The file was modified MechJeb2/FuelNode.cs (diff)
The file was modified MechJeb2/FuelFlowSimulation.cs (diff)
Commit cd87ef9c19963378fe4914c45d89cb57f89eea5b by siim.aaver
Fix 2 cases where logging was done directly from background thread
(commit: cd87ef9)
The file was modified MechJeb2/MechJebModuleStageStats.cs (diff)
The file was modified MechJeb2/Maneuver/TransferCalculator.cs (diff)
Commit 51e44f98e09adae0f8287db7f71b6bb0ec46b5de by lamont
Lot of work

- Working BS3 implementation
- Start of event support
- Additional DP5 random testing
- Fixes major interpolant caching/re-use bug
- Adds Bisection method (used by eventing)
- Eventing may or may not work at all right now

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 51e44f9)
The file was addedMechJeb2/MechJebLib/Core/ODE/BS3.cs
The file was modified MechJeb2/MechJebLib/Core/ODE/AbstractIVP.cs (diff)
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
The file was modified MechJeb2/MechJebLib/Utils/Statics.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/HBase.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was modified MechJeb2/MechJebLib/Primitives/Hn.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumThrustIntegrator.cs (diff)
The file was addedMechJebLibTest/Maths/BS3Tests.c.cs
The file was modified MechJeb2/MechJebLib/Core/ODE/AbstractRungeKutta.cs (diff)
The file was modified MechJebLibTest/Maths/TwoBody/ShepperdTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/BrentRoot.cs (diff)
The file was addedMechJebLibTest/Maths/DP5Tests.cs
The file was removedMechJeb2/MechJebLib/Core/ODE/BogackiShampine32.cs
The file was removedMechJebLibTest/Maths/DormandPrinceTests.cs
The file was addedMechJebLibTest/Maths/BisectionTests.cs
The file was modified MechJeb2/MechJebLib/Core/BrentMin.cs (diff)
The file was addedMechJeb2/MechJebLib/Core/ODE/DP5.cs
The file was addedMechJeb2/MechJebLib/Core/ODE/Event.cs
The file was modified MechJeb2.sln.DotSettings (diff)
The file was modified MechJebLibTest/Maths/TwoBody/FarnocchiaTests.cs (diff)
The file was addedMechJeb2/MechJebLib/Core/Bisection.cs
The file was removedMechJeb2/MechJebLib/Core/ODE/DormandPrince54.cs
Commit d89220e22b9441e608b9d7eb2c4143e33859e8cf by lamont
Make terminal events work correctly, add a test

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: d89220e)
The file was modified MechJebLibTest/Maths/DP5Tests.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Bisection.cs (diff)
The file was modified MechJebLibTest/Maths/BS3Tests.c.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/AbstractIVP.cs (diff)
Commit 8775cca28fcc428c05badac3d1c4e740136c2d37 by lamont
Fix PVG without delta-V window open

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 8775cca)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGSettingsMenu.cs (diff)
Commit e59de6f62cdb597dced835e30d91a2f5df1f5367 by lamont
ReentrySimulation code cleanup
(commit: e59de6f)
The file was modified MechJeb2/LandingAutopilot/DecelerationBurn.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingPredictions.cs (diff)
The file was modified MechJeb2/ReentrySimulation.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingAutopilot.cs (diff)
The file was modified MechJeb2.sln.DotSettings (diff)
The file was modified MechJeb2/LandingAutopilot/CoastToDeceleration.cs (diff)
Commit f0e960a4c438c32bdf1e3bbec340a57b7a904350 by lamont
Extract SimCurves out to its own file

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: f0e960a)
The file was addedMechJeb2/ReentrySimulation/SimCurves.cs
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was modified MechJeb2/FlyingSim/SimulatedPart.cs (diff)
The file was modified MechJeb2/ReentrySimulation.cs (diff)
Commit d57bc207687f57dc896cea4a1b23b6b8439b4f70 by lamont
Cleanup objectpool global/local case

Can use a ThreadLocal<ConcurrentBag> even though that makes little
sense but we only use that in tests, and it keeps the codepaths
simple.

I'd like to use Smooth.Pools now but I don't see how to get this
kind of behavior around it.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: d57bc20)
The file was modified MechJeb2/MechJebLib/Utils/ObjectPool.cs (diff)
Commit 1d7ebb11e7f56b86972f173f3d4e27228dccdf5b by lamont
Convert to shape of Smooth.Pools API

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 1d7ebb1)
The file was modified MechJeb2/MechJebLib/PVG/ResidualWrapper.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/ArrayWrapper.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/H1.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/ObjectPool.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/H3.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/Hn.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/Vn.cs (diff)
Commit 6dc55c3e36d7791f4d3a482bc12d728a7b96cce1 by lamont
Fix ToSI issue

When called with -1 for "maxprecision" the ToSI API would call
something like Clamp(whatever, min: 0, max: -24) which was
nonsensical.

Remove the use of Clamp so that the lower min bounds is applied
last and always wins because negative values into the format
string are just illegal.
(commit: 6dc55c3)
The file was modified MechJeb2/MechJebLib/Utils/Statics.cs (diff)
The file was modified MechJebLibTest/Utils/StaticTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/Statics.cs (diff)
The file was modified MechJebLibTest/Utils/StaticTests.cs (diff)
Commit 02fab0d671985f54d3a22d769affa904db3294b6 by lamont
ToSI tweaks

It looks like maxPrecision is designed to avoid things like
"0.0000000001 qm" for very small values and turn that into
"0.000 qm" instead.  What using values like "-1" did is just
kind of butcher the formatting for values smaller than 1.0 and
lose the significant digits.  There's an optimal value for a given
number of sigfigs to set maxPrecision to in order to get a fixed-width
number of characters of precision that doesn't overflow with very,
very tiny values.  That is now the default, and it adapts by default to
the setting of SigFigs..  The arguments have also been swapped so
that sigFigs is first and that's the one that should probably
be used.

When it comes to existing uses, stuff like ToSI(-1) has been converted
to the default.  When it comes to ToSI(3) that probably was intended to
mean 3 sigFigs but never did that so most of that is just set to the
default as well.  Stuff that was ToSI(-1, 3) has been converted to
ToSI(3) since that was correctly setting 3 sigFigs.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 02fab0d)
The file was modified MechJeb2/MechJebStageStatsHelper.cs (diff)
The file was modified MechJeb2/MechJebModuleCustomInfoWindow.cs (diff)
The file was modified MechJeb2/ScriptsModule/MechJebModuleScriptCondition.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicPathMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingGuidance.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/Statics.cs (diff)
The file was modified MechJeb2/MechJebModuleFlightRecorderGraph.cs (diff)
The file was modified MechJeb2/MechJebModuleInfoItems.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJeb2/VesselState.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousGuidance.cs (diff)
The file was modified MechJebLibTest/Utils/StaticTests.cs (diff)
The file was modified MechJeb2/MechJebModuleSpaceplaneGuidance.cs (diff)
Commit ae6cea6f3f6adfb93fffac0593e48d35f7df4938 by mrev1995
Fix PVG After stage

I think it got overlooked while changing PVG from using logical to KSP stages.
(commit: ae6cea6)
The file was modified MechJeb2/MechJebModuleAscentPVGAutopilot.cs (diff)
Commit 4be1e06ddb9d779556ac11a2387b3fd98a021694 by lamont
Analytic coast integrations with PVG

PVG is now fully analytic

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 4be1e06)
The file was addedMechJebLibTest/PVG/Integrators/VacuumCoastAnalyticTests.cs
The file was modified MechJeb2/MechJebLib/Core/TwoBody/Shepperd.cs (diff)
The file was modified MechJebLibTest/Maths/TwoBody/ShepperdTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/M3.cs (diff)
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
The file was modified MechJeb2/MechJebLib/PVG/Ascent.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumCoastAnalytic.cs (diff)
Commit 34a96675c794277ec4dea6a693493ee93ec62d5e by lamont
Update MechJebLib copyright headers

This utilizes the SPDX-License-Identifier to be more permissive and
legally clear and extend the license under MechJebLib.

It follows https://cr.yp.to/publicdomain.html in order to place the
work under the public domain.

The other licenses are also included to satisfy license checkers and
to provide a deliberate fallback for any concerns over the public
domain declaration.  Worst case this should be equivalent to dual
licensing under 0BSD and LGPL2.1+.

The License Identifier also clears up my poor wording using "and" under
the dual license when the intent was to make it at the choice of the
user, not to have both always applied (which doesn't make any sense to
me which is why I didn't think it needed any clarification)

This work is hereby placed into the public domain.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 34a9667)
The file was modified MechJeb2/MechJebLib/Core/ODE/AbstractRungeKutta.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/AscentBuilder.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle3Energy.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/H3.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Propellant.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Functions/Maneuvers.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Phase.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/Vn.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/ChangeOrbitalElement.cs (diff)
The file was removedMIT-LICENSE.md
The file was modified MechJeb2/MechJebLib/Core/ODE/DP5.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/FunctionImpls/RealSingleImpulseHyperbolicBurn.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/FunctionImpls/RealDeltaVToChangeApoapsisPrograde.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Ascent.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Functions/Angles.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler4Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle5Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/BS3.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/TwoBody/Shepperd.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Gooding.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/HBase.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/IPVGIntegrator.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler3Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler5Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/Scale.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/OptimizerBuilder.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/TwoBody/Farnocchia.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/ObjectPool.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Functions/Interpolants.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Bisection.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumCoastAnalytic.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/BrentRoot.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/H1.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/Hn.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/V3.cs (diff)
The file was modified README.md (diff)
The file was modified MechJeb2/MechJebLib/Core/Maths.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/IPVGTerminal.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Intercept6Cartesian.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumThrustAnalytic.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/Event.cs (diff)
The file was removedGPLv2-LICENSE.md
The file was modified MechJeb2/MechJebLib/Primitives/M3.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/BrentMin.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Problem.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/AbstractIVP.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Energy.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/Statics.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/Q3.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/Logger.cs (diff)
The file was modified MechJeb2/MechJebLib/Control/PIDLoop.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/ArrayWrapper.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/ResidualWrapper.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/Check.cs (diff)
Commit c6ca586d4d312749ffc854e88ff4486be8fedb90 by lamont
Missed this in the License PR

Forgot to update the global README.md

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: c6ca586)
The file was modified README.md (diff)
Commit a208bbfdd31bff18152650291dce876888a40ff2 by lamont
Fix sign in coast time update
(commit: a208bbf)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
Commit 4cde5c3bf5b940e5437be36d7030ef7e2830cbf3 by lamont
Terminal Guidance correctness bug

This seems a bit useless/dangerous to me.

We explicitly catch all the cases when we should exit terminal
guidance above here.  While this will potentially blow up if we
ever call it and grab a zero-dV stage or small ullage stage that
is below minDV and isn't part of the solution.

It seems like we should just loop and wait for the stage and/or
solution to update to something that agrees, or else loop until
one of the explicit conditions at the top handles exiting
properly.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 4cde5c3)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
Commit 87984d63ea5556b57b06e8437ac7d43681c286d1 by lamont
Fix CoastBefore behavior

replaces #1675

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 87984d6)
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
Commit a32c2076e36289664bc17aab4eea7919ae7e16b1 by lamont
Update alglib to 4.0

highlights:

- improvements to SQP solver
- multi-objective optimizer built over the SQP solver

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: a32c207)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
The file was modified MechJeb2/alglib/dataanalysis.cs (diff)
The file was modified MechJeb2/alglib/fasttransforms.cs (diff)
The file was modified MechJeb2/alglib/interpolation.cs (diff)
The file was modified MechJeb2/alglib/ap.cs (diff)
The file was modified MechJeb2/alglib/alglibinternal.cs (diff)
The file was modified MechJeb2/alglib/integration.cs (diff)
The file was modified MechJeb2/alglib/alglibmisc.cs (diff)
The file was modified MechJeb2/alglib/statistics.cs (diff)
The file was modified MechJeb2/alglib/optimization.cs (diff)
The file was modified MechJeb2/alglib/diffequations.cs (diff)
The file was modified MechJeb2/alglib/linalg.cs (diff)
The file was modified MechJeb2/alglib/solvers.cs (diff)
The file was modified MechJeb2/alglib/specialfunctions.cs (diff)
Commit 1547d2b6e64492cf97e13433a1bb1289d10620b5 by lamont
PVG: Use Analytic for bootstrap and Integrator for converged

Makes bootstrapping fast and then makes it accurate.

Also can find issues with the integrator by having it be the
actual second pass through.  It should be very definitive bug
reports as long as people describe it properly or show a video.

Had to initialize the Vn's to zeros because otherwise weird things
happen due to some kind of reuse bug.  Someting is getting +='d or
something like that without being zero'd.  Really that's hard
enough to track down that zero'ing everything makes a lot of sense.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 1547d2b)
The file was modified MechJeb2/MechJebLib/PVG/Ascent.cs (diff)
The file was modified MechJebLibTest/PVG/AscentTests/TheStandardTests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Phase.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/Vn.cs (diff)
The file was modified MechJebLibTest/PVG/Integrators/VacuumThrustIntegratorTests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumThrustIntegrator.cs (diff)
Commit 1f961fea3286b2b4d8032510c959db4b2915966a by lamont
better error message for converged failure

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 1f961fe)
The file was modified MechJeb2/MechJebLib/PVG/Ascent.cs (diff)
Commit 26de45de35fb9d599e3ba45b9f7fea6468e2c8b5 by lamont
Convert the ArrayWrapper class to a struct

- causes more copying but removes the need to memorypool
- weirdly this seems like it fixed a very tiny bug in the Titan2Tests
- split the class up into input/output wrappers
- they're no longer wrappers so i need a better name, TBD

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 26de45d)
The file was addedMechJeb2/MechJebLib/PVG/InputWrapper.cs
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumThrustAnalytic.cs (diff)
The file was modified MechJebLibTest/PVG/AscentTests/Titan2Tests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJebLibTest/PVG/Integrators/VacuumThrustIntegratorTests.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was addedMechJeb2/MechJebLib/PVG/OutputWrapper.cs
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler3Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle5Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler5Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Optimizer.cs (diff)
The file was removedMechJeb2/MechJebLib/PVG/ArrayWrapper.cs
The file was modified MechJeb2/MechJebLib/Primitives/V3.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle3Energy.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumThrustIntegrator.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumCoastAnalytic.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/IPVGTerminal.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler4Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Energy.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Intercept6Cartesian.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Propellant.cs (diff)
The file was modified MechJebLibTest/PVG/Integrators/VacuumCoastAnalyticTests.cs (diff)
Commit d9e18decb931edc30e878555550c5369754768d2 by mrev1995
Fix autostaging for asparagus boosters

In this loop, "continue" means "this condition doesn't prevent staging
(though another might)"; "return true" means "this tank still contains
resources; don't stage it away yet".

Given that interpretation, the condition on this line is reversed: when
there's no more of a resource that can be pulled from this tank, then it
is not a problem if we stage the tank away (irrespective of whether
there's any active engine that can pull it - which is what the rest of
the function checks).

In PR #1613 the other checks in the loop were inverted, but this one was missed.

Fixes #1658.
(commit: d9e18de)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
Commit 9dfc8a8ecdf94d0892beeade99ee8f1f12ff6607 by lamont
Misc cleanup

- rename input/output wrapper
- was playing around with BS3 method, i don't think it'll help PVG at
  this point

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 9dfc8a8)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Intercept6Cartesian.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler4Reduced.cs (diff)
The file was addedMechJeb2/MechJebLib/PVG/InputLayout.cs
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJebLibTest/PVG/Integrators/VacuumThrustIntegratorTests.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumCoastAnalytic.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle3Energy.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/BS3.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Propellant.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Energy.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/IPVGTerminal.cs (diff)
The file was modified MechJebLibTest/PVG/Integrators/VacuumCoastAnalyticTests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumThrustAnalytic.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler5Reduced.cs (diff)
The file was removedMechJeb2/MechJebLib/PVG/OutputWrapper.cs
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler3Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumThrustIntegrator.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle5Reduced.cs (diff)
The file was addedMechJeb2/MechJebLib/PVG/OutputLayout.cs
The file was modified MechJebLibTest/Maths/BS3Tests.c.cs (diff)
The file was removedMechJeb2/MechJebLib/PVG/InputWrapper.cs
Commit 4392aaa87df3ec6592d34c308bb1e5df3900d4df by lamont
Fix Fairing Separation logic

Fairing stages now must be:

- if a PF fairing is in the stage, all the parts in the stage must
  be PF payload fairings.

- if a stage has only decopulers, without children, that aren't launch
  clamps then it is considered a fairing stage.

this fixes the bug where any PF fairing in a stage would turn it into
a fairing stage.

this also fixes things like RSB fairing decouplers, which are just
normal decouplers and it is hard to identify them uniquely.

this may identify non-PF interstage fairings that are in a stage by
themselves as payload fairings.  the workaround to that is to add the
stack decoupler to that stage and stage them together (or an engine,
or any other part which will prevent them being identified as a
payload fairing).

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 4392aaa)
The file was modified MechJeb2/MechJebLib/Core/Maths.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
The file was modified MechJeb2/PartExtensions.cs (diff)
Commit 0c1ff268e6c1de4302d14d9fb4f8b609f7b2af46 by 454857+lamont-granquist
More PID tuning

This uses a "balanced" auto tuning for a 75 degree phase margin and
lets at least a few rockets i tested get through MaxQ at max warp.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 0c1ff26)
The file was modified MechJeb2/MechJebLib/Control/PIDLoop.cs (diff)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
Commit de3afff02d27a905c03b800e0d864e6110f29fbe by lamont
Fix caching bug in FuelFlowSimulation

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: de3afff)
The file was modified MechJeb2/FuelNode.cs (diff)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/FuelFlowSimulation.cs (diff)
Commit 747cacf4d323393803362f6b98dc9fff74fb056e by lamont
Automated Code Cleanup

just rip off the rest of the bandage wholesale.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 747cacf)
The file was modified MechJeb2/MechJebModuleRCSBalancer.cs (diff)
The file was modified LandingSites.cfg (diff)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingPredictions.cs (diff)
The file was modified MechJeb2/MechJebModuleManeuverPlanner.cs (diff)
The file was modified MechJebLibTest/Maths/BisectionTests.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSBalancerWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleAirplaneAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilot.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumThrustAnalytic.cs (diff)
The file was modified MechJeb2/MechJebModuleFlightRecorderGraph.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/H1.cs (diff)
The file was modified MechJeb2/MechJebModuleAttitudeAdjustment.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler4Reduced.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilotWindow.cs (diff)
The file was modified MechJeb2/Maneuver/OperationResonantOrbit.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentGTAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingAutopilot.cs (diff)
The file was modified MechJeb2/Properties/Resources.resx (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/IPVGIntegrator.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/V3.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGSettingsMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustWindow.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/ResidualWrapper.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)
The file was modified MechJeb2/ReentrySimulation/SimCurves.cs (diff)
The file was modified MechJeb2/MechJebModuleTargetController.cs (diff)
The file was modified MechJeb2/MechJebModuleRoverController.cs (diff)
The file was modified MechJeb2/MechJebModuleDockingGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleAttitudeController.cs (diff)
The file was modified MechJeb2/MechJebModuleFlightRecorder.cs (diff)
The file was modified MechJeb2/MechJebModuleWarpHelper.cs (diff)
The file was modified MechJeb2/MechJebModuleDeployableController.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicPathMenu.cs (diff)
The file was modified MechJebLibTest/Structs/V3Tests.cs (diff)
The file was modified MechJeb2/MechJebModuleDockingAutopilot.cs (diff)
The file was modified MechJebLibTest/Maths/BS3Tests.c.cs (diff)
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
The file was modified MechJebLibTest/TestInitialization.cs (diff)
The file was modified MechJeb2/Properties/AssemblyInfo.cs (diff)
The file was modified MechJeb2/MechJebModuleAirplaneGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleSmartASS.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/TwoBody/Shepperd.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/InputLayout.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/OutputLayout.cs (diff)
The file was modified MechJeb2/MechJebModuleRoverWindow.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/ChangeOrbitalElement.cs (diff)
The file was modified MechJeb2/MechJebModuleWaypointWindow.cs (diff)
The file was modified MechJeb2/FlyingSim/SimulatedPart.cs (diff)
The file was modified MechJeb2/MechJebModuleScript.cs (diff)
The file was modified MechJeb2/MechJebModuleSpaceplaneGuidance.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle5Reduced.cs (diff)
The file was modified MechJeb2/MechJebModuleSpinupController.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumCoastAnalytic.cs (diff)
The file was modified MechJeb2/VesselState.cs (diff)
The file was modified MechJebLibTest/Structs/HTests.cs (diff)
The file was modified MechJeb2/FuelFlowSimulation.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeEditor.cs (diff)
The file was modified MechJeb2/FuelStats.cs (diff)
The file was modified MechJeb2/Maneuver/TransferCalculator.cs (diff)
The file was modified MechJeb2/MechJebModuleInfoItems.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSController.cs (diff)
The file was modified MechJeb2/Maneuver/OperationSemiMajor.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/AscentBuilder.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler3Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/Vn.cs (diff)
The file was modified MechJeb2/MechJebModuleMenu.cs (diff)
The file was modified MechJeb2/ReentrySimulation.cs (diff)
The file was modified MechJeb2/MechJebModuleTranslatron.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
The file was modified MechJeb2/FuelNode.cs (diff)
The file was modified MechJeb2/MechJebModuleDeployableAntennaController.cs (diff)
The file was modified MechJebLibTest/Utils/StaticTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/Scale.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Problem.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was modified MechJebLibTest/Structs/M3Tests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler5Reduced.cs (diff)
The file was modified MechJeb2/MechJebModuleSettings.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleStageStats.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleCustomInfoWindow.cs (diff)
The file was modified MechJebEdu.cfg (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleSmartRcs.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/Logger.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicAutopilot.cs (diff)
The file was modified MechJeb2/OrbitExtensions.cs (diff)
The file was modified MechJeb2/MechJebModuleDebugArrows.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/H3.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleSolarPanelController.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
The file was modified MechJeb2/MechJebCore.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettingsMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleWarpController.cs (diff)
The file was modified MechJeb2/MechJebModuleSpaceplaneAutopilot.cs (diff)
Commit 5cd98119a46c507d622d953ad598cfbb70c177bd by lamont
Refactor ChangeOrbitalElements slightly

Makes for a slightly better public interface and eliminates the
case statement to check for errors

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 5cd9811)
The file was modified MechJeb2.sln.DotSettings (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was modified MechJebLibTest/Maths/FunctionsTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/ChangeOrbitalElement.cs (diff)
Commit 118a7971a6b659bb6ec72173081c1a2dbd90ed13 by lamont
PVG cleanup: replace ResidualWrapper with ContinuityLayout/ResidualLayout

also cleans up the "Problem" a bit and removes that one last annoying
null warning i've left in for about a year.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 118a797)
The file was modified MechJeb2/MechJebLib/PVG/InputLayout.cs (diff)
The file was addedMechJeb2/MechJebLib/PVG/ContinuityLayout.cs
The file was modified MechJeb2/MechJebLib/PVG/OptimizerBuilder.cs (diff)
The file was removedMechJeb2/MechJebLib/PVG/ResidualWrapper.cs
The file was modified MechJeb2/MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Problem.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was addedMechJeb2/MechJebLib/PVG/ResidualLayout.cs
The file was modified MechJebLibTest/PVG/AscentTests/BuggyTests.cs (diff)
Commit 2dbfcc6e716e61a98a6387e7d2c52ccc487af6cb by lamont
More PID tuning

Try to address the wobbles
(commit: 2dbfcc6)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
Commit b0ee3b516ad60e012329cafe65824330a83c577b by lamont
Rename to "PVG Settings" and use horizontal split

Slightly more compact menu.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: b0ee3b5)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
Commit e6eabea0c7b020eb16fa109cf8e62a3c3ab983bc by lamont
Stop fairing sep in a coast from ending the coast

This actually fixes the use case now.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: e6eabea)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
Commit 333e5d5d9a3cba4e1c66a0ace4a87c15a3441869 by lamont
Splitup burnout altitude setting

Have one setting for optimized stages and one for fixed burntime
so flipping between them isn't so weird.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 333e5d5)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGAutopilot.cs (diff)
Commit f3eac6093aea9eeabecc441144ae3eb1a0b2bc41 by lamont
Fix both checks that use IndexForKSPStage

Changes the API to more sensibly just use the coast/burn boolean as
a matcher, so we try to find exactly what we're looking for.

Also make sure that we're continuously updating the _blockOptimizerUntilTime
code so that we get the 5 seconds of suspending the optimizer correctly
between the coast and the burn when we're doing coast-before and
therefore don't hit the staging callback.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: f3eac60)
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
Commit 66836f56008efe77f151a816e5bf6d18764fd56e by lamont
Optimize Stage is now Early Shutoff Stage

seems clearly better, and the old label produced lots of
confusion and questions.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 66836f5)
The file was modified MechJeb2/MechJebModuleAscentPVGSettingsMenu.cs (diff)
Commit 1f510646242f09e8e7e0d20409c900b6d0da7291 by lamont
Increase Pos deadband to 0.002

This is 20x higher and is equivalent to 0.1 degrees.  Helps to
stabilize an Atlas-Centaur from Nazfib.

If this needs to go any direction it should probably go down since
20x might have been aggressive.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 1f51064)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
Commit 681d58fd4c51e0cf00e8ea3be13d9ab92b27b57f by lamont
Remove the ScriptsModule

This is largely unmaintained, often broken and gets very little usage.

Discussed this with Sarbian IRL and decided to remove it in the next
release.

Better approach would be integration with kRPC/kOS or something built
directly around MechJebLib when that API stabilizes.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 681d58f)
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionActionGroup.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionManoeuver.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionRCS.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionIRSequencer.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionWhile.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionLoadScript.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionWarp.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionTargetDock.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionSmartASS.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionLanding.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionControlFrom.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionRendezvousAP.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionWaitFor.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionSAS.cs
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was removedMechJeb2/MechJebModuleScript.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionActivateEngine.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptCondition.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionThrottle.cs
The file was removedMechJeb2/ScriptsModule/IMechJebModuleScriptActionContainer.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionTolerance.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionActiveVessel.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionUndock.cs
The file was removedMechJeb2/ScriptsModule/IMechJebModuleScriptActionsList.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionsList.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionFor.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionExecuteNode.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionKos.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionRendezvous.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionAscent.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionParallel.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionStaging.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionTemplate.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionIf.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionPause.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionCrewTransfer.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionTimer.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionDockingAutopilot.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionTarget.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionQuicksave.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptAction.cs
The file was removedMechJeb2/ScriptsModule/MechJebModuleScriptActionDockingShield.cs
Commit 21844b9e9a7e4edddbd28733f43c69d1b437f5f7 by lamont
Landing autopilot style cleanup

This may be breaking due to changing methods to private and changing
the name of public methods.

If anything has been made private that is actually getting used just
drop in a bug report to revert it and it can be made public with a
[UsedImplicitly] added to make IDEs happy.  It isn't intended to
force people to beat on it with reflection calls to private APIs.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 21844b9)
The file was modified MechJeb2/LandingAutopilot/DeorbitBurn.cs (diff)
The file was modified MechJeb2/LandingAutopilot/CoastToDeceleration.cs (diff)
The file was modified MechJeb2/LandingAutopilot/LowDeorbitBurn.cs (diff)
The file was modified MechJeb2/LandingAutopilot/PlaneChange.cs (diff)
The file was modified MechJeb2/AutopilotModule.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingGuidance.cs (diff)
The file was modified MechJeb2/LandingAutopilot/UntargetedDeorbit.cs (diff)
The file was modified MechJeb2/LandingAutopilot/FinalDescent.cs (diff)
The file was modified MechJeb2/LandingAutopilot/KillHorizontalVelocity.cs (diff)
The file was modified MechJeb2/LandingAutopilot/DecelerationBurn.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingAutopilot.cs (diff)
The file was modified MechJeb2/LandingAutopilot/CourseCorrection.cs (diff)
Commit 00ac5bdabd85f276f861b23007c2ee529dcbc86f by lamont
Remove the MechJebPod part

This hasn't worked in years and years.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 00ac5bd)
The file was removedParts/MechJeb2_Pod/model001.dds
The file was removedParts/MechJeb2_Pod/model002.dds
The file was removedParts/MechJeb2_Pod/part.cfg
The file was removedParts/MechJeb2_Pod/model.mu
The file was removedMechJeb2/MechJebPod.cs
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was removedParts/MechJeb2_Pod/model000.dds
Commit 465222152cd006e6027c8d8d6f0350850e90e51f by lamont
Update gitignore for JetBrains IDEs

This starts properly sharing project settings correctly I think.

Also ignores syncthing conflict garbage files.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 4652221)
The file was added.idea/.idea.MechJeb2/.idea/projectSettingsUpdater.xml
The file was added.idea/.idea.MechJeb2/.idea/codeStyles/codeStyleConfig.xml
The file was added.idea/.idea.MechJeb2/.idea/vcs.xml
The file was added.idea/.idea.MechJeb2/.idea/indexLayout.xml
The file was modified .gitignore (diff)
Commit 1bcbef069392dac7971d1d6a420edc51e7d561f7 by lamont
Possibly breaking cleanup of MechJebCore

The renaming here is intended to be breaking, mods will need to
update.  I tried to keep public APIs that looked deliberately
public to be [UsedImplicitly] and visible, if the visibility
changed of something that should be made public that is a bug
and it can be reverted back to public.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 1bcbef0)
The file was modified MechJeb2/LandingAutopilot/KillHorizontalVelocity.cs (diff)
The file was modified MechJeb2/LandingAutopilot/UntargetedDeorbit.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingGuidance.cs (diff)
The file was modified MechJeb2/AutopilotModule.cs (diff)
The file was modified MechJeb2/LandingAutopilot/CoastToDeceleration.cs (diff)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/LandingAutopilot/PlaneChange.cs (diff)
The file was modified MechJeb2/MechJebModuleDockingAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleWaypointWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleDeployableController.cs (diff)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was modified MechJeb2/MechJebModuleDebugArrows.cs (diff)
The file was modified MechJeb2/MechJebModuleSpaceplaneAutopilot.cs (diff)
The file was modified MechJeb2/LandingAutopilot/LowDeorbitBurn.cs (diff)
The file was modified MechJeb2/MechJebModuleSpaceplaneGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleWarpHelper.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettingsMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
The file was modified MechJeb2/MechJebModuleAttitudeController.cs (diff)
The file was modified MechJeb2/MechJebModuleSmartASS.cs (diff)
The file was modified MechJeb2/LandingAutopilot/DecelerationBurn.cs (diff)
The file was modified MechJeb2/MechJebModuleInfoItems.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleAirplaneAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleSmartRcs.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentGTAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAttitudeAdjustment.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGSettingsMenu.cs (diff)
The file was modified MechJeb2/MechjebBundlesManager.cs (diff)
The file was modified MechJeb2/MechJebModuleRoverWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleMenu.cs (diff)
The file was modified MechJeb2/LandingAutopilot/DeorbitBurn.cs (diff)
The file was modified MechJeb2/MechJebCore.cs (diff)
The file was modified MechJeb2/MechJebModuleTranslatron.cs (diff)
The file was modified MechJeb2/LandingAutopilot/CourseCorrection.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingPredictions.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeEditor.cs (diff)
The file was modified MechJeb2/MechJebModuleAirplaneGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousGuidance.cs (diff)
The file was modified MechJeb2/DisplayModule.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
The file was modified MechJeb2/LandingAutopilot/FinalDescent.cs (diff)
The file was modified MechJeb2/MechJebModuleSettings.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilotWindow.cs (diff)
The file was modified MechJeb2/VesselState.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleManeuverPlanner.cs (diff)
The file was modified MechJeb2/ComputerModule.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleSpinupController.cs (diff)
The file was modified MechJeb2/MechJebModuleDockingGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSController.cs (diff)
The file was modified MechJeb2/MechJebModuleRoverController.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
Commit 00891f801674b4aa34046339c051a8b3d151b1c6 by lamont
ComputerModule breaking API changes

Cleanup the API.  Like other PRs similar to this the name changes
are intended to be breaking changes, the visibility changes can be
reversed and aren't intended to force people to use reflection to
call private APIs (please don't) and can be switched back to public.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 00891f8)
The file was modified MechJeb2/MechJebModuleAscentGTAutopilot.cs (diff)
The file was modified MechJeb2/Maneuver/OperationEllipticize.cs (diff)
The file was modified MechJeb2/MechJebModuleAirplaneGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSBalancer.cs (diff)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingGuidance.cs (diff)
The file was modified MechJeb2/Maneuver/OperationResonantOrbit.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicPathMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleSettings.cs (diff)
The file was modified MechJeb2/MechJebModuleDeployableController.cs (diff)
The file was modified MechJeb2/MechJebModuleRoverController.cs (diff)
The file was modified MechJeb2/MechJebModuleSpaceplaneAutopilot.cs (diff)
The file was modified MechJeb2/MechJebAR202.cs (diff)
The file was modified MechJeb2/MechJebModuleAttitudeController.cs (diff)
The file was modified MechJeb2/Maneuver/OperationInclination.cs (diff)
The file was modified MechJeb2/AttitudeControllers/HybridController.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSController.cs (diff)
The file was modified MechJeb2/MechJebModuleSpaceplaneGuidance.cs (diff)
The file was modified MechJeb2/ComputerModule.cs (diff)
The file was modified MechJeb2/Maneuver/OperationTransfer.cs (diff)
The file was modified MechJeb2/MechJebModuleSmartRcs.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleInfoItems.cs (diff)
The file was modified MechJeb2/MechJebModuleAirplaneAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGSettingsMenu.cs (diff)
The file was modified MechJeb2/AttitudeControllers/KosAttitudeController.cs (diff)
The file was modified MechJeb2/MechJebModuleCustomInfoWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleRoverWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleManeuverPlanner.cs (diff)
The file was modified MechJeb2/LandingAutopilot/CoastToDeceleration.cs (diff)
The file was modified MechJeb2/Maneuver/OperationInterplanetaryTransfer.cs (diff)
The file was modified MechJeb2/Maneuver/TimeSelector.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
The file was modified MechJeb2/Maneuver/OperationCourseCorrection.cs (diff)
The file was modified MechJeb2/MechJebModuleTargetController.cs (diff)
The file was modified MechJeb2/MechJebModuleWarpController.cs (diff)
The file was modified MechJeb2/MechJebModuleWarpHelper.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSBalancerWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleStageStats.cs (diff)
The file was modified MechJeb2/AttitudeControllers/MJAttitudeController.cs (diff)
The file was modified MechJeb2/Maneuver/OperationPeriapsis.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleFlightRecorderGraph.cs (diff)
The file was modified MechJeb2/MechJebStageStatsHelper.cs (diff)
The file was modified MechJeb2/MechJebModuleDockingGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
The file was modified MechJeb2/MechJebModuleSpinupController.cs (diff)
The file was modified MechJeb2/DisplayModule.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleTranslatron.cs (diff)
The file was modified MechJeb2/MechJebModuleWaypointWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingPredictions.cs (diff)
The file was modified MechJeb2/GuiUtils.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
The file was modified MechJeb2/MechJebModuleSmartASS.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettingsMenu.cs (diff)
The file was modified MechJeb2/Maneuver/OperationEccentricity.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingAutopilot.cs (diff)
The file was modified MechJeb2/Maneuver/OperationApoapsis.cs (diff)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
The file was modified MechJeb2/MechJebModuleDebugArrows.cs (diff)
The file was modified MechJeb2/MechJebModuleDockingAutopilot.cs (diff)
The file was modified MechJeb2/AttitudeControllers/BaseAttitudeController.cs (diff)
The file was modified MechJeb2/MechJebModuleAttitudeAdjustment.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilotWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleFlightRecorder.cs (diff)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeEditor.cs (diff)
The file was modified MechJeb2/VesselState.cs (diff)
The file was modified MechJeb2/Maneuver/OperationMoonReturn.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicAutopilot.cs (diff)
The file was modified MechJeb2/LandingAutopilot/CourseCorrection.cs (diff)
The file was modified MechJeb2/Maneuver/OperationSemiMajor.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
The file was modified MechJeb2/MechJebModuleMenu.cs (diff)
The file was modified MechJeb2/MechJebCore.cs (diff)
The file was modified MechJeb2/Maneuver/OperationLambert.cs (diff)
Commit da6dfe0a342b05000c2b7bc89bf2da04fa5a1373 by lamont
Mostly automated FFS code cleanup

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: da6dfe0)
The file was modified MechJeb2/FuelNode.cs (diff)
The file was modified MechJeb2/FuelFlowSimulation.cs (diff)
Commit 6048d7c9af9a59211447fbd43d93c7571992812a by lamont
Add back the Ascent AP Toggle

not sure why i deleted that, but it did have to change because of the
restructuring of the ascent autopilots.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 6048d7c)
The file was modified MechJeb2/MechJebCore.cs (diff)
Commit cd5311ff3d18babd04fcef95276b99f39da0a72f by lamont
ergh, typo

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: cd5311f)
The file was modified MechJeb2/MechJebCore.cs (diff)
Commit c206ba6d0ce5cbf4422feb9402f170c980c65f7a by lamont
Update to C# 9.0, add partial suicide burn overhaul

This is kinda weird, its got a half-finished fully numerical suicide
burn overhaul I did which needs to be finished, also bumps the version
to C# 9 and fixes a problem with the FlightRecorder using the 'record'
newly reserved word, along with some support for BackgroundJob in the
MechJebUtils class.

What I really want is that support for BackgroundJobs to use with the
delta-V overhaul, and all this work is drifting and merge conflicting as
I rename things, so I'm going to merge the suicide burn timer a bit
half-done.  The module isn't wired up anywhere so shouldn't run.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: c206ba6)
The file was modified MechJeb2/MechJebModuleFlightRecorderGraph.cs (diff)
The file was modified MechJeb2/VesselExtensions.cs (diff)
The file was addedMechJeb2/MechJebLib/Suicide.cs
The file was addedMechJeb2/MechJebLib/SuicideBuilder.cs
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was addedMechJeb2/MechJebModuleSuicideTimer.cs
The file was addedMechJeb2/MechJebLib/Utils/BackgroundJob.cs
The file was modified MechJeb2/MechJebModuleAscentClassicPathMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleFlightRecorder.cs (diff)
Commit 8afb1ee6d11660a9130e78bf4765373ecb91a196 by lamont
Guess we can't do this bit of C#9

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 8afb1ee)
The file was modified MechJeb2/VesselExtensions.cs (diff)
Commit abb138acc1b2328236cdb6a7d5482245f1a8dd79 by lamont
And sadly we can't use new() either

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: abb138a)
The file was modified MechJeb2/VesselExtensions.cs (diff)
Commit 863fb3003c2f0b25bdee8f4d0cf1fac016577c37 by lamont
Back to C# 8.0

I think @sarbian would have to update the compilers on jankins

But then that doesn't give any good feedback if the features are busted
on the older KSP runtime, so maybe that wasn't a good idea.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 863fb30)
The file was modified MechJeb2/MechJeb2.csproj (diff)
Commit 9adc415ebe0d26259f4b9e8b2da5cd41c590646f by lamont
And fix the code to compile properly on C# 8.0

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 9adc415)
The file was modified MechJeb2/MechJebLib/Utils/BackgroundJob.cs (diff)
Commit 55727c501a742a093756a47108d6a632e41da34b by lamont
Savegame:  working simulation with residuals

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 55727c5)
The file was addedMechJeb2/MechJebLib/Simulations/PartModules/SimModuleDockingNode.cs
The file was modified MechJeb2/MechJebCore.cs (diff)
The file was modified MechJeb2.sln.DotSettings (diff)
The file was addedMechJeb2/MechJebLib/Simulations/FuelStats.cs
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was addedMechJeb2/MechJebLib/Simulations/PartModules/SimProceduralFairingDecoupler.cs
The file was addedMechJeb2/MechJebLib/Simulations/PartModules/SimModuleEngines.cs
The file was addedMechJeb2/MechJebModuleNewFFSTesting.cs
The file was addedMechJeb2/MechJebLib/Simulations/SimPropellant.cs
The file was addedMechJeb2/MechJebLib/Simulations/DecouplingAnalyzer.cs
The file was addedMechJeb2/MechJebLib/Simulations/FuelFlowSimulation.cs
The file was addedMechJeb2/MechJebLib/Utils/DictOfLists.cs
The file was addedMechJeb2/MechJebLib/Simulations/PartModules/SimModuleAnchoredDecoupler.cs
The file was addedMechJeb2/MechJebLib/Simulations/SimVessel.cs
The file was modified MechJeb2/MechJebLib/Utils/Statics.cs (diff)
The file was addedMechJeb2/MechJebLib/Simulations/PartModules/SimLaunchClamp.cs
The file was addedMechJeb2/MechJebLib/Simulations/Builder.cs
The file was addedMechJeb2/MechJebLib/Simulations/PartModules/SimModuleDecouple.cs
The file was addedMechJeb2/MechJebLib/Simulations/SimPart.cs
The file was addedMechJeb2/MechJebLib/Simulations/SimPartModule.cs
The file was modified MechJeb2/MathExtensions.cs (diff)
The file was addedMechJeb2/MechJebLib/Simulations/SimResource.cs
Commit 7f45d8bd3dd072a17daf1fe52aeb54d1fdd99385 by lamont
Savegame: algorithm is basically working

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 7f45d8b)
The file was modified MechJeb2/MechJebCore.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleEngines.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVessel.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/Builder.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimResource.cs (diff)
The file was addedMechJeb2/MechJebLib/Simulations/PartModules/SimModuleRCS.cs
The file was modified MechJeb2/MechJebLib/Simulations/SimPart.cs (diff)
The file was modified MechJeb2/FuelStats.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was modified MechJeb2/MechJebLib/Simulations/FuelStats.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/FuelFlowSimulation.cs (diff)
Commit d32fc91faba0566c4bafd4c47cac1b645d4dddda by lamont
support activating RCS

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: d32fc91)
The file was modified MechJeb2/MechJebLib/Simulations/Builder.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleAnchoredDecoupler.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimPart.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVessel.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimPartModule.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleDockingNode.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleDecouple.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleEngines.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimProceduralFairingDecoupler.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleRCS.cs (diff)
Commit f1d5eb312f0c11823da100c5cf03f847f92fdef8 by lamont
Clean up API a bit

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: f1d5eb3)
The file was modified MechJeb2/MechJebLib/Simulations/Builder.cs (diff)
Commit 13fb2ac90fc79f5aebd4b7a3579a98312131a25f by lamont
Break up Build and Update and use object pooling

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 13fb2ac)
The file was modified MechJeb2/MechJebLib/Utils/DictOfLists.cs (diff)
The file was addedMechJeb2/MechJebLib/Simulations/SimVesselManager.cs
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVessel.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimPart.cs (diff)
The file was addedMechJeb2/MechJebLib/Simulations/SimVesselBuilder.cs
The file was removedMechJeb2/MechJebLib/Simulations/PartModules/SimModuleAnchoredDecoupler.cs
The file was addedMechJeb2/MechJebLib/Simulations/SimVesselUpdater.cs
The file was modified MechJeb2/MechJebModuleNewFFSTesting.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleRCS.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimResource.cs (diff)
The file was removedMechJeb2/MechJebLib/Simulations/Builder.cs
The file was modified MechJeb2/MechJebLib/Simulations/FuelFlowSimulation.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/DecouplingAnalyzer.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleEngines.cs (diff)
Commit 34eb79ea8c8099fd21bd86f4cc810a16da4420ec by lamont
Use callbacks and fix a few bugs

Now works from pad to orbit with my test vehicle.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 34eb79e)
The file was modified MechJeb2/MechJebModuleNewFFSTesting.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/FuelFlowSimulation.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselManager.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselBuilder.cs (diff)
Commit c56094456dca6ec1eca1f7134f12307812ea8629 by lamont
Savegame: lots of fixes

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: c560944)
The file was modified MechJebLibTest/PVG/Integrators/VacuumThrustIntegratorTests.cs (diff)
The file was removedMechJeb2/MechJebModuleNewFFSTesting.cs
The file was modified MechJeb2/MechJebModuleStageStats.cs (diff)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVessel.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/FuelFlowSimulation.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleEngines.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselManager.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/DecouplingAnalyzer.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleInfoItems.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/AscentBuilder.cs (diff)
The file was addedMechJeb2/MechJebModuleOldStageStats.cs
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
The file was modified MechJeb2/MechJebLib/SuicideBuilder.cs (diff)
The file was modified MechJeb2/MechJebCore.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/FuelStats.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Phase.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
The file was modified MechJebLibTest/PVG/AscentTests/BuggyTests.cs (diff)
The file was modified MechJeb2/MechJebStageStatsHelper.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGSettingsMenu.cs (diff)
The file was modified MechJebLibTest/PVG/Integrators/VacuumCoastAnalyticTests.cs (diff)
The file was modified MechJebLibTest/PVG/AscentTests/Titan2Tests.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was modified MechJeb2/MechJebModuleSuicideTimer.cs (diff)
The file was modified MechJebLibTest/PVG/AscentTests/TheStandardTests.cs (diff)
Commit 663f947a441067097e75ee1a70e3105dad13de20 by lamont
Savegame: getting close

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 663f947)
The file was modified MechJeb2/MechJebLib/Simulations/SimVessel.cs (diff)
The file was modified MechJeb2/MechJebModuleSuicideTimer.cs (diff)
The file was addedMechJeb2/MechJebModuleStageStatsOld.cs
The file was modified MechJeb2/ComputerModule.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleEngines.cs (diff)
The file was modified MechJeb2/MechJebModuleStageStats.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was modified MechJeb2/MechJebStageStatsHelper.cs (diff)
The file was modified MechJeb2.sln.DotSettings (diff)
The file was modified MechJeb2/MechJebLib/Primitives/HBase.cs (diff)
The file was modified MechJeb2/MechJebModuleInfoItems.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/FuelFlowSimulation.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGSettingsMenu.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/H1.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/FuelStats.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
The file was modified Localization/en-us.cfg (diff)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was removedMechJeb2/MechJebModuleOldStageStats.cs
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselManager.cs (diff)
Commit 8e3791d202aa7036227577afb5a4db271e1fcffd by lamont
Finished with perf pass and more bugs fixed

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 8e3791d)
The file was modified MechJeb2/MechJebLib/Simulations/DecouplingAnalyzer.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleEngines.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVessel.cs (diff)
The file was modified MechJeb2/MechJebModuleStageStatsOld.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/FuelStats.cs (diff)
The file was modified MechJeb2/MechJebModuleCustomInfoWindow.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselManager.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselBuilder.cs (diff)
The file was modified MechJeb2/MechJebModuleStageStats.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimPart.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselUpdater.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/FuelFlowSimulation.cs (diff)
Commit fcb566a7cd03fe955d4909f53183de5739b43a1e by lamont
slighly more readable reflection

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: fcb566a)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselUpdater.cs (diff)
Commit b381fcd06e5083cfe9865e81556545ab4ab940cb by lamont
even more betterer reflection

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: b381fcd)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselUpdater.cs (diff)
Commit 2b5ee1625d7af153c34a3bd8cc122124115e4662 by lamont
okay now we're getting concise

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 2b5ee16)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselUpdater.cs (diff)
Commit ec3be1b7112ab5306afe55d994ecbe78a2b29a43 by lamont
Finished threading and everything done on the TODO list

Really I don't think its done though but its time to start
iterating on bugfixing and get feedback.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: ec3be1b)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
The file was modified MechJeb2/MechJebModuleStageStats.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselManager.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/BackgroundJob.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/MechJebLib/Suicide.cs (diff)
The file was modified MechJeb2/MechJebModuleInfoItems.cs (diff)
The file was modified MechJeb2/MechJebModuleSuicideTimer.cs (diff)
The file was modified MechJeb2/MechJebStageStatsHelper.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/FuelFlowSimulation.cs (diff)
Commit ee36930b591785b15ae28f2a1e8b56203a2c404b by lamont
Faster flight refresh interval

500ms for the VAB is pretty good, but its really clunky looking in
flight and in flight we have lighterweight updates.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: ee36930)
The file was modified MechJeb2/MechJebLib/Utils/BackgroundJob.cs (diff)
The file was modified MechJeb2/MechJebModuleStageStats.cs (diff)
Commit d9df5df9ecd5ad176bd4fd55594554343583c845 by lamont
Cascade disabling of Guidance Controller to PVG Autopilot

This fixes the problem where PVG would finish but the staging controller
would still run once and jettison a stage.

The largest bug here was that PVG would disable itself but then the
autopilot+glueball wouldn't run until later and see that it should
terminate.

This change makes the disabling of the guidance controller fire an
action to disable the "calling" module as well.

It does this via the introduction of an events API into ComputerModule
with one supported event ModuleDisabledEvent and the addition of an
API CascadeDisable() which lets a computer module call that on another
computer module to setup an event to have itself disabled when the
target module disables itself.

This places the calling module in control, which seems right (rather
than making the GuidanceController know to poke the PVG autopilot which
seems very, very wrong).

There's other jankiness going on in here with the weird coupling between
the PVG Autopilot, the Guidance Controller and the PVG Glueball where
they're all touching all kinds of different modules without being
'subscribed' to those modules.

But this gets the right behavior since when the GuidanceController
disables itself that executes the callback which disables the PVG
autopilot and since the PVG autopilot is the "process group leader"
and it has an OnModuleDisabled that disables the whole tree, that
makes sure that this works more or less like killing the process
group leader in Unix.  By the time that "Enabled = false" returns
to the GuidanceController method the whole set of modules is disabled.

I took a little bit of care to have the callbacks execute in the reverse
order that CascadeDelete() was called and to have them be
non-duplicated.

The event is called ModuleDisabledEvent instead of onModuleDisabled or
OnModuleDisabled because that already exists as the abstract API for
the ComputerModule itself, naming things is hard.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: d9df5df)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGAutopilot.cs (diff)
The file was modified MechJeb2/ComputerModule.cs (diff)
Commit 7bb88a34083c1a6109b94981239af45f016cf038 by lamont
Let multiple modules limit autostaging and add/remove independently

This way they don't scribble over what each other wants, and the
staging controller is responsible for tracking and satisfying
multiple requests.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 7bb88a3)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
The file was modified MechJeb2/MechJebModuleSpinupController.cs (diff)
Commit 29b2e36f83eb57de4359af8939582038ef84dfac by lamont
ThrustController and StagingController cleanup

as per all the other cleanup PRs the renames are intentional code
breaks, any changes in visibility can be reverted to public (just
submit a PR to revert it and tag it with UsedImplicitly and maybe
a comment on what uses it)

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 29b2e36)
The file was modified MechJeb2/MechJebModuleAscentSettingsMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
The file was modified MechJeb2/LandingAutopilot/FinalDescent.cs (diff)
The file was modified MechJeb2/MechJebCore.cs (diff)
The file was modified MechJeb2/MechJebModuleAirplaneAutopilot.cs (diff)
The file was modified MechJeb2/LandingAutopilot/CoastToDeceleration.cs (diff)
The file was modified MechJeb2/LandingAutopilot/UntargetedDeorbit.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicAutopilot.cs (diff)
The file was modified MechJeb2/LandingAutopilot/KillHorizontalVelocity.cs (diff)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
The file was modified MechJeb2/LandingAutopilot/PlaneChange.cs (diff)
The file was modified MechJeb2/LandingAutopilot/LowDeorbitBurn.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentGTAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleTranslatron.cs (diff)
The file was modified MechJeb2/LandingAutopilot/DeorbitBurn.cs (diff)
The file was modified MechJeb2/MechJebModuleMenu.cs (diff)
The file was modified MechJeb2/LandingAutopilot/DecelerationBurn.cs (diff)
The file was modified MechJeb2/LandingAutopilot/CourseCorrection.cs (diff)
The file was modified MechJeb2/MechJebModuleAttitudeController.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
Commit 9605873f51ae3fb3767eb0bc0f5cbc464518293b by lamont
add back adjusting apo-at-apo and per-at-per

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 9605873)
The file was modified MechJeb2/Maneuver/OperationPeriapsis.cs (diff)
The file was modified MechJeb2/Maneuver/OperationApoapsis.cs (diff)
Commit cc8262c108248e3a742b25e031c4634070f4bd68 by noreply
Reset SpoolupCurrent to 0 on recalc

Should fix spoolup time increasing ludicrously, breaking warp in nod executor (and presumably other things)
(commit: cc8262c)
The file was modified MechJeb2/MechJebLib/Simulations/SimVessel.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVessel.cs (diff)
Commit 6514738ccc7c4fa1009737ba8ade5ec86f9a144b by lamont
Some Maneuver code cleanup

- use initializers instead of constructors
- remove API that was orphaned after the scripts module was deleted
- move some allocations to statics, particularly localizations

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 6514738)
The file was modified MechJeb2/Maneuver/OperationCourseCorrection.cs (diff)
The file was modified MechJeb2/Maneuver/OperationAdvancedTransfer.cs (diff)
The file was modified MechJeb2/MechJebModuleManeuverPlanner.cs (diff)
The file was modified .editorconfig (diff)
The file was modified MechJeb2/Maneuver/OperationMoonReturn.cs (diff)
The file was modified MechJeb2/Maneuver/TimeSelector.cs (diff)
The file was modified MechJeb2/Maneuver/OperationSemiMajor.cs (diff)
The file was modified MechJeb2/Maneuver/OperationInterplanetaryTransfer.cs (diff)
The file was modified MechJeb2/Maneuver/OperationTransfer.cs (diff)
The file was modified MechJeb2/Maneuver/OperationLan.cs (diff)
The file was modified MechJeb2/Maneuver/OperationKillRelVel.cs (diff)
The file was modified MechJeb2/Maneuver/OperationApoapsis.cs (diff)
The file was modified MechJeb2/Maneuver/OperationLambert.cs (diff)
The file was modified MechJeb2/Maneuver/OperationPlane.cs (diff)
The file was modified MechJeb2/Maneuver/OperationResonantOrbit.cs (diff)
The file was modified MechJeb2/Maneuver/OperationCircularize.cs (diff)
The file was modified MechJeb2/Maneuver/OperationInclination.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
The file was modified MechJeb2/Maneuver/OperationEccentricity.cs (diff)
The file was modified MechJeb2/Maneuver/OperationEllipticize.cs (diff)
The file was modified MechJeb2/Maneuver/OperationPeriapsis.cs (diff)
The file was modified MechJeb2/Maneuver/OperationLongitude.cs (diff)
Commit 705c6d559bae1e61655592f5d99b51e12822ced1 by lamont
Fix autostage limit bug that broke coasts

- fix in the StagingController to update the limit every time in
  case it changes (which it does in the guidance controller).
- fixes UI bug to show KSP stage in the PVG settings menu
- fixes UI bug to show KSP stage next to the coast in the PVG solution
  display.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 705c6d5)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGSettingsMenu.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
Commit b4dd0e59251b1d53a51c957345b4016e2a902905 by lamont
Residuals calcs update every tick

This should stop the issue where the engine burns past the
MJ prediction of the 0s cutoff, so MJ is perfectly accurate right
at the end.

This requires an updated RF from earlier today

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: b4dd0e5)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselUpdater.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselBuilder.cs (diff)
Commit 26f52564ef352acab818339fba9f95ba3c1af23e by lamont
Make KSPStage mandatory stage stats column

I deeply hate seeing it being hidden and not exposing that information

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 26f5256)
The file was modified MechJeb2/MechJebStageStatsHelper.cs (diff)
Commit 7119129d9f7e070952467b7fbf89e4f5f55c159a by lamont
Update BetterController settings

And make it easier to correctly set the SETTINGS_VERSION to force
bumping the defaults.
(commit: 7119129)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
Commit 09cd44b9f15af1b18a20b4c993e8a853324c423c by lamont
RCS Fuel Flow

This doesn't complete the RCS fuel flow simulation, but it gets to the
point of correctly activating RCS modules and setting up resource
drains.

It supports all the same features as engines, so if anyone added nonISP
fuel to RCS or zero density resources, or different fuel 'modes' that
it should all work correctly.

Now the question is the shape of the algorithm that uses it to actually
drain the resources and compute deltaV values.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 09cd44b)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselBuilder.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimPart.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselUpdater.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleRCS.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVessel.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/FuelFlowSimulation.cs (diff)
Commit 45710d6488eb4bb9c569f6416e1f13f99edf43c1 by lamont
Add RCS stats to the stage stats display

Works fairly similarly to KER, but knows about fuel flow and RCS
staging activation.  RCS drop tanks in stock shouldn't work correctly
at this point, need to have some kind of logic to quit the RCS
simulation early if all of the drainable RCS resources have been
drained from the parts that would drop after the next staging
activation.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 45710d6)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleRCS.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/FuelFlowSimulation.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVessel.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimResource.cs (diff)
The file was modified MechJeb2/MechJebModuleInfoItems.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/BackgroundJob.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimPart.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/FuelStats.cs (diff)
The file was modified MechJeb2/MechJebStageStatsHelper.cs (diff)
Commit 6c988a4fef06989425fae8444d595a26357dc6fa by lamont
Fix an RCS bug

burntime and propellant counts were getting double-counted.

debug logging was also excessive.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 6c988a4)
The file was modified MechJeb2/MechJebLib/Simulations/SimResource.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/FuelFlowSimulation.cs (diff)
Commit dbe799827a530d202d8d4f17d3dc4aa307ddfe20 by lamont
Zero residuals before doing RCS calcs

ModuleRCS doesn't have residuals and this was causing infinite spinning.

Note that it makes me worried there's some sort of floating point round
off error bug inherent to residuals, because it should have at least
worked and gotten the wrong answer.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: dbe7998)
The file was modified MechJeb2/MechJebLib/Simulations/FuelFlowSimulation.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimPart.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimResource.cs (diff)
Commit 8621b2e0c0441c81eaa862ed09949cf24c862c36 by lamont
Change some RCS "display" logic

If you have a stage which has RCS and a thruster that both pull the
same fuel (e.g. MMH+NTO) then the "RCS ∆v max value" which is really
the value-after-all-the-normal-engine-fuel-tanks-are-drained will be
zero because the thruster drained all the shared RCS fuel.

So use the "min" values for stuff like resources burned and deltatime
and the showEmpty button should key off the min value instead of max.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 8621b2e)
The file was modified MechJeb2/MechJebLib/Simulations/FuelFlowSimulation.cs (diff)
The file was modified MechJeb2/MechJebStageStatsHelper.cs (diff)
Commit 738f22bf67311b0c4de4b92e200ac43c34d4f526 by lamont
slightly better behavior in residual threshold calcs

when we're checking if we're done with a tank we always need to
be using the part.ResidualThreshold() which includes the
resourceRequestRemainingThreshold floating point slop factor.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 738f22b)
The file was modified MechJeb2/MechJebLib/Simulations/FuelFlowSimulation.cs (diff)
Commit ad5622b6316c383cea05af291d6d709c47bf9d18 by lamont
Fix more residuals handling

Correctly resets residuals on every step and ModuleRCS drawing from
an "empty" tank shared with a thruster will have some non-zero delta-V
from the leftover residuals.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: ad5622b)
The file was modified MechJeb2/MechJebLib/Simulations/FuelFlowSimulation.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleEngines.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVessel.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleRCS.cs (diff)
Commit 09066d254c46705dfc2a50ff530ccdfb6bae199b by lamont
Fix DeltaV Stats and planes in RF

When RF is loaded ModuleEngines can still be non-RF module engines
so all the reflection needs to be conditional on checking we've
got a valid ModuleEnginesRF.

Old code used to do this by handling exceptions, new code sets up a
boolean to check the type dynamically.  On build we take the hit
of doing expensive dynamic type reflection, but tick to tick in
update we use the boolean.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 09066d2)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselUpdater.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleEngines.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselBuilder.cs (diff)
Commit 85d48d4e1f8fc90f44c7813981c5e4b22d63ab8c by lamont
Fix roundoff handling in RCS calcs

Missed a minus sign.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 85d48d4)
The file was modified MechJeb2/MechJebLib/Simulations/SimVessel.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimResource.cs (diff)
Commit 7f3cd291ea1d56c6dbc7e4dd99321c816eb1387c by lamont
Fix residuals calcs again

Biggest problem seems to be the inverted boolean check, no idea how that
was working.  Also fixed it to correctly check subclassing, which
didn't seem to be the current issue but probably is one.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 7f3cd29)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselUpdater.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselBuilder.cs (diff)
Commit 83323fd6cb6b5b1ce4cbe95816670f6068eefe13 by lamont
Fix some PVG optimizer edge conditions

This pins the initial mass to m0 of the phase so that the optimizer
doesn't play around with it.  That is necessary to combine with the
max burntime constraint in order to avoid the rocket burning past the
tau restriction and off into infinity.  If m0 is free then the tau
constraint becomes dynamic based on the selected value of m0 and no
longer a box constraint (so this may need to change for e.g.
stage and a half or coasts in the middle of a stage).

Also though this flips the boolean so that the integrator shouldn't
blow up when it goes past max interations, which seems to have been
a mistake (although it surfaced this issue pretty nicely).

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 83323fd)
The file was modified MechJeb2/MechJebLib/PVG/InputLayout.cs (diff)
The file was modified MechJebLibTest/PVG/AscentTests/BuggyTests.cs (diff)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumThrustIntegrator.cs (diff)
Commit 4c3a8f2b425e7d5a23658a7141179fa241fc752a by lamont
Additional box pinning in the PVG optimizer

pin r0, v0 and the burntime of fixed phases

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 4c3a8f2)
The file was modified MechJeb2/MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/InputLayout.cs (diff)
Commit 26acae4479cff789994d5fec0c840abb4e24e684 by lamont
Better PVG+StageStats integration

Save off the initial conditions at the time that the stage stats
simulation starts running.  Then when the results of that are fed into
PVG, use those initial conditions so that the PVG simulation is
consistent and not using stagestats results from one tick and initial
conditions from another.

This should reduce visual 'flicker' in the predictions display at the
very least.  It might increase accuracy.

It does allow the update cycle of stage stats to be tweaked for
performance without really affecting PVG accuracy.  PVG producing
results that are a few 100ms stale doesn't really matter since it
produces the whole interpolated future trajectory.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 26acae4)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselManager.cs (diff)
The file was modified MechJeb2/MechJebModuleStageStats.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVessel.cs (diff)
Commit cbd396424c627d1376c1c007b6a1429fec6eb719 by lamont
Tweak DecouplingAnalyzer algorithm

As we walk through the vessel we should never decrease the
decoupledInStage value to a lower value based on the inverseStage of
the decoupler.

If that happens then what we've done is fire a decoupler that is already
decoupled.  In that case the decoupler is rendered "sterile" and is
treated like just another part.

This is a departure from old behavior, but is necessary to get some
analysis to be correct, and to agree with the autostaging behavior of
mechjeb (and to make PVG work correctly).
(commit: cbd3964)
The file was modified MechJeb2/MechJebLib/Simulations/DecouplingAnalyzer.cs (diff)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/FuelFlowSimulation.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVessel.cs (diff)
Commit 62f53641dcacadd8fc476d45f9979bc693eb2351 by lamont
Add option to override warp to plane

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 62f5364)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/DecouplingAnalyzer.cs (diff)
Commit 2002ba0b49e1264f89284971255c052d75e99673 by lamont
The barest start at mass costate integration

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 2002ba0)
The file was modified MechJeb2/MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/InputLayout.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/OutputLayout.cs (diff)
Commit be01ad9655fc454642d4a4f1c9921d980f7a74c9 by lamont
Use System.Math statically

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: be01ad9)
The file was modified MechJeb2/MechJebLib/Control/PIDLoop.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
The file was modified MechJebLibTest/Utils/StaticTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/Vn.cs (diff)
The file was modified MechJebLibTest/Structs/M3Tests.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/HBase.cs (diff)
The file was modified MechJebLibTest/Structs/V3Tests.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/BrentMin.cs (diff)
The file was modified MechJebLibTest/Maths/FunctionsTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)
The file was modified MechJebLibTest/Maths/TwoBody/ShepperdTests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Ascent.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/InputLayout.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/V3.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Phase.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/FunctionImpls/RealSingleImpulseHyperbolicBurn.cs (diff)
The file was modified MechJebLibTest/AssertionExtensions.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/OutputLayout.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/Scale.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimPart.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/Statics.cs (diff)
The file was modified MechJebLibTest/Maths/BS3Tests.c.cs (diff)
The file was modified MechJebLibTest/Maths/DP5Tests.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Functions/Angles.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/BackgroundJob.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/AscentBuilder.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/Logger.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/ChangeOrbitalElement.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/Hn.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Gooding.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/Q3.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/FuelFlowSimulation.cs (diff)
The file was modified MechJebLibTest/Maths/GoodingTests.cs (diff)
The file was modified MechJebLibTest/Maths/TwoBody/FarnocchiaTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselUpdater.cs (diff)
The file was modified MechJebLibTest/Maths/BrentRootTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Maths.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/BrentRoot.cs (diff)
The file was modified MechJebLibTest/Structs/Q3Tests.cs (diff)
Commit 89196a32c3a52ddc853accb1c648cf27f49b8c4f by lamont
ChangeOrbitalElements now uses Forward AutoDiff via Dual numbers/vectors

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 89196a3)
The file was addedMechJeb2/MechJebLib/Primitives/Dual.cs
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was addedMechJeb2/MechJebLib/Primitives/DualV3.cs
The file was modified MechJeb2/MechJebLib/Maneuvers/ChangeOrbitalElement.cs (diff)
The file was modified MechJebLibTest/Maths/FunctionsTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Maths.cs (diff)
Commit 7992f607ef52d443cd205bc18dc846940140bed7 by lamont
ReturnFromMoon improvements

remove a lot of junk that I don't know what I was thinking about.

construct a feasible rf+vf which helps convergence.

split up the forward + reverse times into independent variables and
then just constrain them to be equal to pick a point.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 7992f60)
The file was modified MechJebLibTest/Maths/FunctionsTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)
Commit dc1bf95d22dcc0951376f72a8c9aa43cf764850f by lamont
Convert ReturnFromMoon maneuver to use analytical Jacobian

This doesn't seem to do that much in terms of speedup or stability
really (although I didn't try investigating stability very well).

Investigating the values in the jacobian one of the biggest problems is
clearly integrating back from the terminal endpoints.  The biggest
numbers come from the state transition matrix there.  This is likely
because small target periapsis constraints results in highly eccentric
return orbits.  Taking problems that blow up and using a higher target
periapsis often results in convergence.

There is a note in Ellison & Englander (2019) that might be applicable:

> A more natural propagation strategy would be to utilize time
> eegularization, such a Sundman transformation,18–20 and a
> corresponding modification to the variational equations. This
> is left as future work.

It might also be possible to use some kind of "homotopy" and if the
problem fails, relax the periapsis constraint to some higher
intermediate point that is easier to solve, then use that as an initial
guess.  I'd really like to avoid iterative approaches.

Also I have not investigated how good/bad my initial guessing is, and it
may be possible that in the cases which do not converge that it is very
poor.

I think it may also work to target an Apoapsis now (higher orbit than
the moon around the primary), although I didn't test that a lot.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: dc1bf95)
The file was modified MechJeb2/MechJebLib/Primitives/M3.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/ChangeOrbitalElement.cs (diff)
The file was modified MechJebLibTest/Maths/FunctionsTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/Statics.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/DualV3.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/V3.cs (diff)
Commit 7624a872a35ab04abc173db75d952488c80cefb0 by lamont
Cleanup ReturnFromMoon

extract scalaing from the SQP problem, extract initial guess
generation as well and do it all after scalaing.

this already seems to have stabilized it a bit, maybe i had
some scaling bugs in the initial guess generation.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 7624a87)
The file was modified MechJeb2/MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)
The file was modified MechJebLibTest/Maths/FunctionsTests.cs (diff)
Commit d78272af5589a7c6e5ca9052bc5cc86e9474551e by lamont
More ReturnFromMoon cleanup

Bunch of reorganization of the files and now the test files match
up better.

Much better construction of a nearly-feasible initial guess that
helps to minimize the errors at the initial point.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: d78272a)
The file was modified MechJebLibTest/Maths/FunctionsTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Functions/Maneuvers.cs (diff)
The file was addedMechJeb2/MechJebLib/Maneuvers/Simple.cs
The file was addedMechJebLibTest/Maneuvers/ReturnFromMoonTests.cs
The file was modified MechJeb2/MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)
The file was addedMechJebLibTest/Maneuvers/ChangeOrbitalElementTests.cs
The file was modified MechJeb2/MechJebLib/Core/Maths.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/ChangeOrbitalElement.cs (diff)
The file was addedMechJebLibTest/Maneuvers/Simple.cs
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was modified MechJeb2/MechJebLib/Primitives/Dual.cs (diff)
Commit f03a1f6b3a7bf11717e631e0750d2f250b9d9921 by lamont
ReturnFromMoon: improve final accuracy + allow larger stepsize

Doesn't seem to have much of an effect on total runtime or
convergence.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: f03a1f6)
The file was modified MechJebLibTest/Maneuvers/ReturnFromMoonTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)
Commit e69fdfd650a032973c3ce54dfeeb9ca70a0926ed by lamont
Better RK initial stepsize

Probably won't make much of a difference at all, but it makes me
feel like the ODE suite is more grown up.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: e69fdfd)
The file was modified MechJeb2/MechJebLib/Core/ODE/AbstractIVP.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/AbstractRungeKutta.cs (diff)
Commit 4287b096ba300477e0795187dacacdbae6c664d7 by lamont
Wire up Hstart in the IVP API

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 4287b09)
The file was modified MechJeb2/MechJebLib/Core/ODE/AbstractIVP.cs (diff)
The file was modified MechJebLibTest/Maneuvers/ReturnFromMoonTests.cs (diff)
Commit 56d7513d2175487e8c7c092a1337682fce88d5da by lamont
ReturnFromMoon tweaks

- fixes a bug in the initial guess generator
- splits the infeasibility in the guess over both SOIs by averaging
  the vsoi at the interface.
- tweaks some parameters trying to target faster convergence.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 56d7513)
The file was modified MechJeb2/MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)
The file was modified MechJebLibTest/Maneuvers/ReturnFromMoonTests.cs (diff)
Commit 127d70449a05466dcc0adbe842ecc38cb7c57bf6 by lamont
Move Ellipticize and Circularize into MJLib

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 127d704)
The file was modified MechJeb2/MechJebModuleFlightRecorder.cs (diff)
The file was modified MechJeb2/MechJebModuleInfoItems.cs (diff)
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was modified MechJeb2/OrbitExtensions.cs (diff)
The file was modified MechJebLibTest/Maneuvers/Simple.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/Simple.cs (diff)
Commit ac2207c183c3864bd4bf4e7a3afc47fbf650e227 by lamont
Use ChangeInclination out of MJLib

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: ac2207c)
The file was modified MechJebLibTest/Maneuvers/Simple.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/Simple.cs (diff)
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
Commit f673b88889226688f494f144874ecd69ec773b9d by lamont
Fix namespace collisions in the MJLib Tests

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: f673b88)
The file was addedMechJebLibTest/MathsTests/BrentRootTests.cs
The file was addedMechJebLibTest/PVGTests/AscentTests/TheStandardTests.cs
The file was removedMechJebLibTest/PVG/Integrators/VacuumCoastAnalyticTests.cs
The file was removedMechJebLibTest/Maneuvers/ChangeOrbitalElementTests.cs
The file was removedMechJebLibTest/Maths/BisectionTests.cs
The file was addedMechJebLibTest/PVGTests/AscentTests/Titan2Tests.cs
The file was modified MechJebLibTest/Structs/M3Tests.cs (diff)
The file was addedMechJebLibTest/PVGTests/Integrators/VacuumThrustIntegratorTests.cs
The file was removedMechJebLibTest/Maths/TwoBody/FarnocchiaTests.cs
The file was addedMechJebLibTest/MathsTests/TwoBody/FarnocchiaTests.cs
The file was removedMechJebLibTest/Maneuvers/Simple.cs
The file was removedMechJebLibTest/Maths/DP5Tests.cs
The file was modified MechJebLibTest/Utils/StaticTests.cs (diff)
The file was removedMechJebLibTest/PVG/AscentTests/BuggyTests.cs
The file was addedMechJebLibTest/PVGTests/Integrators/VacuumCoastAnalyticTests.cs
The file was addedMechJebLibTest/ManeuversTests/ChangeOrbitalElementTests.cs
The file was addedMechJebLibTest/MathsTests/TwoBody/ShepperdTests.cs
The file was addedMechJebLibTest/PVGTests/AscentTests/BuggyTests.cs
The file was addedMechJebLibTest/MathsTests/GoodingTests.cs
The file was addedMechJebLibTest/ControlTests/PIDLoopTests.cs
The file was addedMechJebLibTest/MathsTests/DP5Tests.cs
The file was removedMechJebLibTest/Maths/FunctionsTests.cs
The file was modified MechJebLibTest/Structs/Q3Tests.cs (diff)
The file was removedMechJebLibTest/Maths/BS3Tests.c.cs
The file was addedMechJebLibTest/MathsTests/FunctionsTests.cs
The file was removedMechJebLibTest/PVG/AscentTests/Titan2Tests.cs
The file was modified MechJebLibTest/Structs/HTests.cs (diff)
The file was addedMechJebLibTest/MathsTests/BisectionTests.cs
The file was removedMechJebLibTest/Control/PIDLoopTests.cs
The file was modified MechJebLibTest/Structs/V3Tests.cs (diff)
The file was addedMechJebLibTest/ManeuversTests/Simple.cs
The file was addedMechJebLibTest/MathsTests/BS3Tests.c.cs
The file was removedMechJebLibTest/Maths/TwoBody/ShepperdTests.cs
The file was removedMechJebLibTest/Maneuvers/ReturnFromMoonTests.cs
The file was removedMechJebLibTest/PVG/Integrators/VacuumThrustIntegratorTests.cs
The file was addedMechJebLibTest/ManeuversTests/ReturnFromMoonTests.cs
The file was removedMechJebLibTest/Maths/GoodingTests.cs
The file was removedMechJebLibTest/PVG/AscentTests/TheStandardTests.cs
The file was removedMechJebLibTest/Maths/BrentRootTests.cs
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
Commit 4806676a4ccc471f7236feec9347232602ab450f by lamont
Move MJLib.Statics up a level for convenience

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 4806676)
The file was modified MechJeb2/MechJebLib/Maneuvers/Simple.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle5Reduced.cs (diff)
The file was addedMechJeb2/MechJebLib/Statics.cs
The file was modified MechJebLibTest/MathsTests/TwoBody/ShepperdTests.cs (diff)
The file was modified MechJebLibTest/ManeuversTests/Simple.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleEngines.cs (diff)
The file was removedMechJeb2/MechJebLib/Utils/Statics.cs
The file was modified MechJebLibTest/MathsTests/GoodingTests.cs (diff)
The file was modified MechJeb2/Maneuver/OperationEllipticize.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/BackgroundJob.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/AbstractRungeKutta.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Maths.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSBalancer.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler5Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselUpdater.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGSettingsMenu.cs (diff)
The file was addedMechJebLibTest/StaticTests.cs
The file was modified MechJeb2/MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilot.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Ascent.cs (diff)
The file was modified MechJebLibTest/MathsTests/FunctionsTests.cs (diff)
The file was modified MechJebLibTest/Structs/M3Tests.cs (diff)
The file was removedMechJebLibTest/Utils/StaticTests.cs
The file was modified MechJebLibTest/Structs/Q3Tests.cs (diff)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/AscentBuilder.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/AbstractIVP.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler3Reduced.cs (diff)
The file was modified MechJebLibTest/MathsTests/TwoBody/FarnocchiaTests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Phase.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/Vn.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler4Reduced.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was modified MechJeb2/MechJebLib/Core/FunctionImpls/RealSingleImpulseHyperbolicBurn.cs (diff)
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
The file was modified MechJeb2/MechJebModuleRendezvousGuidance.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/Q3.cs (diff)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/MechJebModuleWaypointWindow.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/FuelFlowSimulation.cs (diff)
The file was modified MechJeb2/MechJebModuleFlightRecorderGraph.cs (diff)
The file was modified MechJebLibTest/PVGTests/AscentTests/BuggyTests.cs (diff)
The file was modified MechJeb2/MechJebModuleInfoItems.cs (diff)
The file was modified MechJebLibTest/MathsTests/DP5Tests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle3Energy.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleRCS.cs (diff)
The file was modified MechJebLibTest/PVGTests/Integrators/VacuumCoastAnalyticTests.cs (diff)
The file was modified MechJeb2/Maneuver/OperationSemiMajor.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/DecouplingAnalyzer.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicPathMenu.cs (diff)
The file was modified MechJebLibTest/MathsTests/BrentRootTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/BrentRoot.cs (diff)
The file was modified MechJebLibTest/AssertionExtensions.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Energy.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Propellant.cs (diff)
The file was modified MechJeb2/MechJebLib/Control/PIDLoop.cs (diff)
The file was modified MechJebLibTest/PVGTests/AscentTests/Titan2Tests.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/V3.cs (diff)
The file was modified MechJeb2/MechJebStageStatsHelper.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Functions/Angles.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselBuilder.cs (diff)
The file was modified MechJeb2/Maneuver/OperationAdvancedTransfer.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Gooding.cs (diff)
The file was modified MechJeb2/MechJebModuleSpaceplaneGuidance.cs (diff)
The file was modified MechJeb2/Maneuver/OperationPeriapsis.cs (diff)
The file was modified MechJeb2/MechJebModuleTranslatron.cs (diff)
The file was modified MechJeb2/MechJebModuleCustomInfoWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingGuidance.cs (diff)
The file was modified MechJebLibTest/PVGTests/AscentTests/TheStandardTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/BrentMin.cs (diff)
The file was modified MechJeb2/GLUtils.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/TwoBody/Farnocchia.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was modified MechJeb2/OrbitExtensions.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/ChangeOrbitalElement.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimResource.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/Check.cs (diff)
Commit 0fb3a016daf01425c754f3a33bf375c049cecab6 by lamont
MJLib version of HeadingForLaunchInclination

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 0fb3a01)
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Maths.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/Simple.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
The file was modified MechJeb2/CelestialBodyExtensions.cs (diff)
Commit 951d135123c5b58c2dabac6f70a78b346accc4ef by lamont
remove now used method

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 951d135)
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
Commit 1e5bbc81311e5fe308e431c337c1979193cdfc06 by lamont
Add a README.md file for MJLib
(commit: 1e5bbc8)
The file was addedMechJebLibTest/README.md
Commit b7c667d618cb99f093f01665f35f1f88d9676efa by lamont
I put the README in the wrong spot
(commit: b7c667d)
The file was removedMechJebLibTest/README.md
The file was addedMechJeb2/MechJebLib/README.md
The file was modified Localization/fr-fr.cfg (diff)
The file was modified Localization/fr-fr.cfg (diff)
Commit f5eda67b8b77ca718f7f347b98bff5f774766e88 by lamont
Remove old FuelFlowSimulation

The new one seems to be stable enough

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: f5eda67)
The file was removedMechJeb2/FuelNode.cs
The file was modified MechJeb2/MechJebStageStatsHelper.cs (diff)
The file was removedMechJeb2/MechJebModuleStageStatsOld.cs
The file was modified MechJeb2/MechJebModuleStageStats.cs (diff)
The file was removedMechJeb2/FuelStats.cs
The file was modified MechJeb2/MechJebCore.cs (diff)
The file was removedMechJeb2/FuelFlowSimulation.cs
The file was modified MechJeb2/MechJeb2.csproj (diff)
Commit a926641e1a210359caa71ddd022d09d13f3099fe by lamont
Hohmann/Bi-impulsive overhaul

The problem has been recrafted as a conjugate gradient problem with
a bit of heuristics for a search.  Limiting to coplanar is still
supported.  Transfer/Rendezvous is still supported.

There are buttons for no capture burn and to plan the capture burn
(maybe that should be "intercept burn" or "matching burn" or
something?), but they don't yet work.

The period offset thingy needs to be changed and doesn't yet work.

The simulated annealing is gone for now and will probably come back as
a rewriting with a basin hopping algorithm, but needs some UI work.

This is going to be best when dealing with things that are closer to
circular-to-circular coplanar transfer with smaller synodic periods, and
will still break as you get away from it.

It can at least plan transfer burns to GEO with the optimal inclination
change at the equator included (~2.16 degrees for a 185x185 launch
from Kennedy).  All that is lacking is a UX/UI way to construct an
artificial target.orbit.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: a926641)
The file was modified MechJeb2/MechJebModuleRendezvousGuidance.cs (diff)
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilot.cs (diff)
The file was modified MechJebLibTest/PVGTests/AscentTests/BuggyTests.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was addedMechJeb2/MechJebLib/Maneuvers/CoplanarTransfer.cs
The file was modified MechJeb2/MechJebLib/Core/Maths.cs (diff)
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was modified MechJebLibTest/PVGTests/AscentTests/Titan2Tests.cs (diff)
The file was modified MechJeb2/Maneuver/OperationTransfer.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was addedMechJeb2/MechJebLib/Utils/MechJebLibException.cs
The file was addedMechJebLibTest/ManeuversTests/CoplanarTransferTests.cs
The file was modified MechJeb2/MechJebLib/Primitives/Q3.cs (diff)
Commit 78f7d3cc9176607259bdb1997cb72c013dc52885 by lamont
Fix Hohmann bugs and implement more features

Previous PR was just broke, fixes a few things, implements
planning the capture burn, doing rendezvous/transfer, the
"period offset" is now just a "lag time" (chasing time?)

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 78f7d3c)
The file was modified MechJeb2/MechJebModuleRendezvousGuidance.cs (diff)
The file was modified MechJeb2/Maneuver/OperationTransfer.cs (diff)
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/CoplanarTransfer.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilot.cs (diff)
The file was modified Localization/en-us.cfg (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
Commit 83121cc885b3796850f73beea67cd403e15ce37e by lamont
Fix planning of insertion burn

And change most of the API to return dt2=dt1+tt instead of tt.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 83121cc)
The file was modified MechJeb2/MechJebLib/Maneuvers/CoplanarTransfer.cs (diff)
The file was modified MechJebLibTest/ManeuversTests/CoplanarTransferTests.cs (diff)
Commit 9335acdbab7891ad3f14316fecb35335f19fc7f2 by lamont
Fix the FFS root part

Need to pick the part with a null parent, not part[0]

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 9335acd)
The file was modified MechJeb2/MechJebLib/Simulations/SimPart.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/DecouplingAnalyzer.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselBuilder.cs (diff)
Commit c411cd83c00dc2e0306a0e8cf14139df84437ac0 by lamont
Add a warning to the hohmann operation, add note to decoupling analyzer

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: c411cd8)
The file was modified MechJeb2/MechJebLib/Simulations/DecouplingAnalyzer.cs (diff)
The file was modified MechJeb2/Maneuver/OperationTransfer.cs (diff)
Commit 82b714e4df71f974908c8d5c3ad5146f41d054b4 by lamont
add time selector to two-impulse transfer

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 82b714e)
The file was modified MechJeb2/Maneuver/OperationTransfer.cs (diff)
Commit 684b65eaeb76d1fd4c3fc4b5082b6527db28871a by lamont
Lots of code cleanup

Shouldn't be any behavioral changes.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 684b65e)
The file was modified MechJeb2/AttitudeControllers/MJAttitudeController.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingPredictions.cs (diff)
The file was modified MechJeb2/MechJebModuleAirplaneAutopilot.cs (diff)
The file was modified MechJeb2/Vector6.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/Check.cs (diff)
The file was modified MechJeb2/MechJebModuleWaypointWindow.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/Dual.cs (diff)
The file was modified MechJeb2/MuUtils.cs (diff)
The file was modified MechJeb2/ComputerModule.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSBalancerWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleDeployableAntennaController.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/DecouplingAnalyzer.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/V3.cs (diff)
The file was modified MechJeb2/MechJebModuleStageStats.cs (diff)
The file was modified MechJeb2/CompatibilityChecker.cs (diff)
The file was modified MechJeb2/Maneuver/OperationEllipticize.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/H3.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimLaunchClamp.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimResource.cs (diff)
The file was modified MechJeb2/MechJebCore.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
The file was modified MechJeb2/MechJebModuleFlightRecorderGraph.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/Functions/Maneuvers.cs (diff)
The file was modified MechJeb2/MechJebModuleSettings.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/ChangeOrbitalElement.cs (diff)
The file was modified MechJeb2/MechJebModuleTargetController.cs (diff)
The file was modified MechJeb2/MechJebModuleSpaceplaneGuidance.cs (diff)
The file was modified MechJeb2/MathExtensions.cs (diff)
The file was modified MechJeb2/MechJebModuleTranslatron.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingGuidance.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/M3.cs (diff)
The file was modified MechJeb2/ReentrySimulation/SimCurves.cs (diff)
The file was modified MechJeb2/MechJebModuleAttitudeAdjustment.cs (diff)
The file was modified MechJeb2/Maneuver/TransferCalculator.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettingsMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleSpaceplaneAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleSmartASS.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSBalancer.cs (diff)
The file was modified MechJeb2/GuiUtils.cs (diff)
The file was modified MechJeb2/CachedLocalizer.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Propellant.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Reduced.cs (diff)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingAutopilot.cs (diff)
The file was modified MechJeb2/OrbitExtensions.cs (diff)
The file was modified MechJeb2/VesselState.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGAutopilot.cs (diff)
The file was modified MechJeb2/ReflectionUtils.cs (diff)
The file was modified MechJeb2/MechJebModuleWarpController.cs (diff)
The file was modified MechJeb2/Maneuver/Operation.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/BS3.cs (diff)
The file was modified MechJeb2/MechJebLib/SuicideBuilder.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler4Reduced.cs (diff)
The file was modified MechJeb2/MechJebModuleDeployableController.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
The file was modified MechJeb2/MechJebModuleInfoItems.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustWindow.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleRCS.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler3Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/ObjectPool.cs (diff)
The file was modified MechJeb2/ReentrySimulation.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle5Reduced.cs (diff)
The file was modified MechJeb2/MechJebModuleSpinupController.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSController.cs (diff)
The file was modified MechJeb2/GLUtils.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicAutopilot.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselBuilder.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/TwoBody/Farnocchia.cs (diff)
The file was modified MechJeb2/MechJebModuleSolarPanelController.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/CoplanarTransfer.cs (diff)
The file was modified MechJeb2/DisplayModule.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/H1.cs (diff)
The file was modified MechJeb2/MechJebModuleAirplaneGuidance.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleEngines.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler5Reduced.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselUpdater.cs (diff)
The file was modified MechJeb2/FlyingSim/SimulatedPart.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Intercept6Cartesian.cs (diff)
The file was modified MechJeb2/MechJebModuleSmartRcs.cs (diff)
The file was modified MechJeb2/VesselExtensions.cs (diff)
The file was modified MechJeb2/MechJebModuleCustomInfoWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleRoverController.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilotWindow.cs (diff)
The file was modified MechJeb2/RCSSolver.cs (diff)
The file was modified MechJeb2/MechJebLib/Suicide.cs (diff)
The file was modified MechJeb2/AttitudeControllers/BaseAttitudeController.cs (diff)
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was modified MechJeb2/PartExtensions.cs (diff)
The file was modified MechJeb2/AttitudeControllers/KosPIDLoop.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleDecouple.cs (diff)
The file was modified MechJeb2/MechJebModuleWarpHelper.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimProceduralFairingDecoupler.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleRoverWindow.cs (diff)
The file was modified MechJeb2/ToolbarWrapper.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicPathMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleSuicideTimer.cs (diff)
The file was modified MechJeb2/MechJebModuleAttitudeController.cs (diff)
The file was modified MechJeb2/Maneuver/OperationTransfer.cs (diff)
The file was modified MechJeb2/FlyingSim/SimulatedParachute.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle3Energy.cs (diff)
The file was modified MechJeb2/MechJebModuleDebugArrows.cs (diff)
The file was modified MechJeb2/AutopilotModule.cs (diff)
The file was modified MechJeb2/AttitudeControllers/TorquePI.cs (diff)
The file was modified MechJeb2/Maneuver/PlotArea.cs (diff)
The file was modified MechJeb2/PIDController.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeEditor.cs (diff)
The file was modified MechJeb2/FlyingSim/SimulatedVessel.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleDockingNode.cs (diff)
The file was modified MechJeb2/MechJebModuleDockingGuidance.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Energy.cs (diff)
The file was modified MechJeb2/MechJebModuleManeuverPlanner.cs (diff)
The file was modified MechJeb2.sln.DotSettings (diff)
Commit c6aa66583a25badfe92d564e40886dae0084e075 by lamont
Fix thrust limiter

just some derp that somehow snuck in here.

closes #1781

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: c6aa665)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleEngines.cs (diff)
Commit b6ea7decdc8d050bd7ef120670ac065b146d04aa by lamont
Rename ThrustPercentage to ThrottleLimiter

I see why I made that last mistake and it was due to KSPs bad
API name.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: b6ea7de)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselUpdater.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleEngines.cs (diff)
Commit 9f4d60a3dc8ab415a682d629e67d685ceded8761 by lamont
Make PVG converge under more extreme circumstances

By falling back to numerical integration when initial analytical
integration fails, we can burn more of the rocket and hit more
extreme solutions (closer to burning the rocket to the last proton).

This will give users better feedback when their target conditions
exceed their rocket capabilities.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 9f4d60a)
The file was modified MechJeb2/MechJebLib/PVG/Ascent.cs (diff)
The file was modified MechJebLibTest/PVGTests/AscentTests/BuggyTests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/BackgroundJob.cs (diff)
The file was modified MechJebLibTest/PVGTests/AscentTests/Titan2Tests.cs (diff)
Commit ed96b5d27b4f7112452a49749fb5584e96e3e85c by lamont
Rename to Two-Impulse Maneuver and support fixed time

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: ed96b5d)
The file was addedMechJeb2/MechJebLib/Maneuvers/TwoImpulseTransfer.cs
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was removedMechJeb2/MechJebLib/Maneuvers/CoplanarTransfer.cs
The file was modified MechJeb2/Maneuver/OperationTransfer.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was addedMechJebLibTest/ManeuversTests/TwoImpulseTransferTests.cs
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
The file was modified Localization/en-us.cfg (diff)
The file was removedMechJebLibTest/ManeuversTests/CoplanarTransferTests.cs
Commit 87f6ef2b9b8473632017c534edfd32f3ad037a6e by lamont
Start of refactoring of node executor

This deliberately removes the different behavior in stock where the
alignment happens as soon as the button is pressed and instead
it aligns 10 mins before the burn.

Some other slight tweaks in being more consistent with handling
the ignition time.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 87f6ef2)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit e047769f8c2edfa1b66bb5d06713dc9b41e3a588 by lamont
Node executor code cleanup

This is automated cleanup and shoudln't change behavior

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: e047769)
The file was modified MechJeb2/MechJebModuleNodeEditor.cs (diff)
The file was modified MechJeb2/MechJebModuleManeuverPlanner.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilot.cs (diff)
The file was modified MechJeb2/LandingAutopilot/DeorbitBurn.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentGTAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilotWindow.cs (diff)
The file was modified MechJeb2/LandingAutopilot/CoastToDeceleration.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettingsMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicAutopilot.cs (diff)
The file was modified MechJeb2/LandingAutopilot/LowDeorbitBurn.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was modified MechJeb2/LandingAutopilot/FinalDescent.cs (diff)
The file was modified MechJeb2/LandingAutopilot/PlaneChange.cs (diff)
The file was modified MechJeb2/LandingAutopilot/DecelerationBurn.cs (diff)
Commit c79001f91db8c99e122bbe0e80a7949b3b8ba83e by lamont
Node executor:  more tweaks to algorithm

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: c79001f)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit d7a69e03293c3b7c69fdfd48c0a883a9fdb45659 by lamont
Behavioral changes to Node Executor

The stock node executor no longer "hunts" for the last dribbling
bit of the maneuver node and the "tolerance" setting has been
eliminated.  There is a 1 second terminal guidance period where
tracking is frozen and the burn terminates when the angle between
the heading and the maneuver node is >= 90 degrees.

This also backs out the MANEUVER_COT and thrustForward stuff for
asymmetric thrust vehicles.  This is because thrustForward isn't
valid if the engines are off.  Don't know if VesselState needs
fixing to fix thrustForward or if the node executor needs to
switch modes based on thrust being on or not, but it feels like
VesselState should be updated.

replaces #1771

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: d7a69e0)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
The file was modified MechJeb2/VesselState.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeEditor.cs (diff)
The file was modified MechJeb2/MechJebModuleAttitudeController.cs (diff)
The file was modified MechJeb2/MechJebModuleManeuverPlanner.cs (diff)
Commit 64da2d1c8abd564010a91db5295ecf27563426fb by lamont
Fix stock burn termination and bring back MANEUVER_COT

Still don't know if MANEUVER_COT works, but it is back.

The expression:

Quaternion.FromToRotation(VesselState.forward, VesselState.thrustForward) * VesselState.forward

Looks a little useless but FromToRotation returns identity when
thrustForward is [0,0,0] which fixes things for the non-thrust case.

More importantly this fixes stock-style burn termination to work
correctly again and it measure the angle to the actual maneuver node
rather than the angle to the frozen inertial direction (which really
shouldn't have worked at all, dunno why it eventually did stop).

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 64da2d1)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit 6cc7fd1f1498b73fe93c4832c298531ae1e8d695 by lamont
Fix thrust curves yet again

Actually this sort of abandons even caring about them at all.

Engines that don't work with this patch need to have their
ThrustCurve config scaled to work with MJ, no exceptions, there
isn't a MJ bug here.
(commit: 6cc7fd1)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleEngines.cs (diff)
Commit 04245a9322be561e106dfbeb5679aee0e8bdb642 by lamont
Fuse principia + stock maneuver node execution behavior

Yep I'm actually doing DRY

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 04245a9)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit c441e6b9b8b74d458dbb746b19fb248a70a92ecd by lamont
Remove principia node execution button

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: c441e6b)
The file was modified MechJeb2/MechJebModuleManeuverPlanner.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeEditor.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit 0162ec3143646eb9684f449a0fcc62272a4377d2 by lamont
maybe fix principia node execution

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 0162ec3)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit f87468c265038a78f283733e8d9895986e53b942 by lamont
Node Executor State Machine + RCS burns

Think this also restores the stock node executor to basically working,
although it breaks multi-node.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: f87468c)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleManeuverPlanner.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit 437f551425c214c5782628317d483bd413c331da by lamont
Fix multinode execution for stock

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 437f551)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit 0d2025bd1064381c7c7154f274de4bed1ca07443 by lamont
Fix principia execution

also back to not using center-of-thrust

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 0d2025b)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit 866e7be38335d6bd358af09338b1affd1456747a by lamont
Warp past 10 minutes if we're already aligned

If there's no need to drop out of warp, don't.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 866e7be)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit e21bb536f13ab0bf61c9a0cd551eba00eb88c08f by lamont
Fix principia multi-node

The node executor now works with two maneuvers planned.

The button for multi-node shows up.

There's a bug that I don't know how to fix because there's at least
one tick between the last maneuver node disappearing and the next
maneuver node showing up.  So the multi-node executor sees no future
nodes, so it quits.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: e21bb53)
The file was modified MechJeb2/MechJebModuleManeuverPlanner.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit 5826137e3aaeb95fc6a72e112251aabec1f34a4e by lamont
Run gravity losses continuously

Per discussion with eggrobin this is obviously correct.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 5826137)
The file was modified MechJeb2/MechJebModuleFlightRecorder.cs (diff)
Commit 5a71aa1b122dc72a3df915c05667ec9ea7224f96 by lamont
FlightRecorder automated cleanup

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 5a71aa1)
The file was modified MechJeb2/MechJebModuleFlightRecorderGraph.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleFlightRecorder.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicPathMenu.cs (diff)
Commit e60798fbbb564db0adfa86c881bdf4f055726ae3 by lamont
CachedLocalizer cleanup

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: e60798f)
The file was modified MechJeb2/MechJebModuleCustomInfoWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGSettingsMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleInfoItems.cs (diff)
The file was modified MechJeb2/CachedLocalizer.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettingsMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
The file was modified MechJeb2/MechJebStageStatsHelper.cs (diff)
Commit 4bff46668dc1988b8b8663887a629a4d4eed0a45 by lamont
DisplayModule cleanup

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 4bff466)
The file was modified MechJeb2/MechJebModuleDockingGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleSpaceplaneGuidance.cs (diff)
The file was modified MechJeb2/MechJebAR202.cs (diff)
The file was modified MechJeb2/MechJebModuleManeuverPlanner.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicPathMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSBalancerWindow.cs (diff)
The file was modified MechJeb2/GuiUtils.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilotWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleSmartASS.cs (diff)
The file was modified MechJeb2/MechJebModuleCustomInfoWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeEditor.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustWindow.cs (diff)
The file was modified MechJeb2/MechJebCore.cs (diff)
The file was modified MechJeb2/MechJebModuleRoverWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGSettingsMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleTranslatron.cs (diff)
The file was modified MechJeb2/MechJebModuleMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
The file was modified MechJeb2/MechJebModuleWarpHelper.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleSettings.cs (diff)
The file was modified MechJeb2/MechJebModuleAttitudeAdjustment.cs (diff)
The file was modified MechJeb2/MechJebModuleSmartRcs.cs (diff)
The file was modified MechJeb2/MechJebModuleFlightRecorderGraph.cs (diff)
The file was modified MechJeb2/DisplayModule.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleWaypointWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleAirplaneGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettingsMenu.cs (diff)
Commit 4bcd32b88367fb7280c78198cd050db3cc1aca70 by lamont
Clean up GLUtils

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 4bcd32b)
The file was modified MechJeb2/GLUtils.cs (diff)
Commit 2f04821796d30a293b69087642d7e2acafa8e41f by lamont
Fix multiple enumeration in InstallChecker

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 2f04821)
The file was modified MechJeb2/InstallChecker.cs (diff)
Commit c5045501566445f502143690da81f4a33520e2eb by lamont
Add SerializeField to private Persistent fields

This might fix the problem with window positions not updating.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: c504550)
The file was modified MechJeb2/DisplayModule.cs (diff)
Commit a0b239b4bead1f3aa9842c49a77e08f7381487af by lamont
Make all Persistent fields Public

this should really fix persistence

closes #1678
closes #1580

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: a0b239b)
The file was modified MechJeb2/DisplayModule.cs (diff)
The file was modified MechJeb2/MechJebModuleDeployableController.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleManeuverPlanner.cs (diff)
The file was modified MechJeb2/MechJebModuleWarpHelper.cs (diff)
The file was modified MechJeb2/AttitudeControllers/HybridController.cs (diff)
The file was modified MechJeb2/Maneuver/TimeSelector.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
The file was modified MechJeb2/AttitudeControllers/KosAttitudeController.cs (diff)
The file was modified MechJeb2/MechJebModuleCustomInfoWindow.cs (diff)
The file was modified MechJeb2/GuiUtils.cs (diff)
The file was modified MechJeb2/AttitudeControllers/MJAttitudeController.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
The file was modified MechJeb2/MechJebModuleWarpController.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeEditor.cs (diff)
The file was modified MechJeb2/MechJebModuleAirplaneGuidance.cs (diff)
Commit 6ea3842e149daba0ef96866886fca881db4929c9 by lamont
Rename DisplayModule fields

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 6ea3842)
The file was modified MechJeb2/DisplayModule.cs (diff)
Commit 37b09f436b415d942a2e0f156391a4a874a54ba2 by lamont
cleanup attitude controllers

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 37b09f4)
The file was modified MechJeb2/AttitudeControllers/BaseAttitudeController.cs (diff)
The file was modified MechJeb2/AttitudeControllers/MJAttitudeController.cs (diff)
The file was modified MechJeb2.sln.DotSettings (diff)
The file was modified MechJeb2/AttitudeControllers/KosAttitudeController.cs (diff)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
The file was modified MechJeb2/AttitudeControllers/TorquePI.cs (diff)
The file was modified MechJeb2/AttitudeControllers/KosPIDLoop.cs (diff)
The file was modified MechJeb2/AttitudeControllers/HybridController.cs (diff)
Commit 60990212217878a0d6fe46390098799168684fa8 by lamont
GuiUtils cleanup

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 6099021)
The file was modified MechJeb2/MechJebModuleRendezvousGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicPathMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleSettings.cs (diff)
The file was modified MechJeb2/MechJebModuleAirplaneGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleDebugArrows.cs (diff)
The file was modified MechJeb2/MechJebModuleDockingGuidance.cs (diff)
The file was modified MechJeb2/MechJebCore.cs (diff)
The file was modified MechJeb2/MechJebModuleTranslatron.cs (diff)
The file was modified MechJeb2/AttitudeControllers/MJAttitudeController.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGSettingsMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
The file was modified MechJeb2/MechJebModuleManeuverPlanner.cs (diff)
The file was modified MechJeb2/MechJebModuleSmartASS.cs (diff)
The file was modified MechJeb2/AttitudeControllers/KosAttitudeController.cs (diff)
The file was modified MechJeb2/CelestialBodyExtensions.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
The file was modified MechJeb2/Maneuver/OperationAdvancedTransfer.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettingsMenu.cs (diff)
The file was modified MechJeb2/Maneuver/OperationInterplanetaryTransfer.cs (diff)
The file was modified MechJeb2/Maneuver/TimeSelector.cs (diff)
The file was modified MechJeb2/Maneuver/OperationResonantOrbit.cs (diff)
The file was modified MechJeb2/MechJebModuleTargetController.cs (diff)
The file was modified MechJeb2.sln.DotSettings (diff)
The file was modified MechJeb2/MechJebModuleAttitudeAdjustment.cs (diff)
The file was modified MechJeb2/MechJebModuleWaypointWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleCustomInfoWindow.cs (diff)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
The file was modified MechJeb2/MechJebModuleRoverWindow.cs (diff)
The file was modified MechJeb2/MechJebStageStatsHelper.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeEditor.cs (diff)
The file was modified MechJeb2/MechJebModuleWarpHelper.cs (diff)
The file was modified MechJeb2/MechJebModuleDockingAutopilot.cs (diff)
The file was modified MechJeb2/DisplayModule.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
The file was modified MechJeb2/MechJebModuleFlightRecorderGraph.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleSpaceplaneGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleInfoItems.cs (diff)
The file was modified MechJeb2/Maneuver/OperationTransfer.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSController.cs (diff)
The file was modified MechJeb2/MechJebModuleRoverController.cs (diff)
The file was modified MechJeb2/MechJebModuleMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilotWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilot.cs (diff)
The file was modified MechJeb2/AttitudeControllers/HybridController.cs (diff)
The file was modified MechJeb2/GuiUtils.cs (diff)
Commit d04257e8c4451507c579daefbcde0303ce70fab1 by lamont
WaypointWindow cleanup

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: d04257e)
The file was modified MechJeb2/MechJebModuleWaypointWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleRoverWindow.cs (diff)
Commit 95ae54a2ff4ac000f67eb73cf66c536a77115bfe by lamont
Use string interpolation

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 95ae54a)
The file was modified MechJeb2/MechJebLib/Maneuvers/TwoImpulseTransfer.cs (diff)
The file was modified MechJeb2/MechJebModuleInfoItems.cs (diff)
The file was modified MechJeb2/MechJebModuleMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSBalancer.cs (diff)
The file was modified MechJeb2/MechJebModuleWaypointWindow.cs (diff)
The file was modified MechJeb2/CompatibilityChecker.cs (diff)
The file was modified MechJeb2/GuiUtils.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGAutopilot.cs (diff)
Commit faf0377e96f2f3c19731d771d6e87980d49554f5 by lamont
Make fields readonly

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: faf0377)
The file was modified MechJeb2/MechJebModuleDeployableController.cs (diff)
The file was modified MechJeb2/MechJebModuleSpaceplaneAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleMenu.cs (diff)
The file was modified MechJeb2/VesselState.cs (diff)
The file was modified MechJeb2/MechJebLib/Core/ODE/Event.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingPredictions.cs (diff)
The file was modified MechJeb2/MechJebModuleStageStats.cs (diff)
The file was modified MechJeb2/MechJebModuleAttitudeController.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJeb2/MechJebModuleSmartASS.cs (diff)
The file was modified MechJeb2/Maneuver/OperationAdvancedTransfer.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Phase.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSBalancer.cs (diff)
The file was modified MechJeb2/MechJebModuleDockingAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSController.cs (diff)
The file was modified MechJeb2/MechJebModuleCustomInfoWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleTranslatron.cs (diff)
The file was modified MechJeb2/MechJebModuleSettings.cs (diff)
The file was modified MechJeb2/FlyingSim/SimulatedVessel.cs (diff)
The file was modified MechJeb2/MechJebModuleRoverController.cs (diff)
The file was modified MechJeb2/FlyingSim/SimulatedPart.cs (diff)
The file was modified MechJeb2/MechJebModuleDebugArrows.cs (diff)
The file was modified MechJeb2/MechJebModuleWarpHelper.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilot.cs (diff)
Commit a060fd799fd05742c9749ee1c65e585a24956d3a by lamont
Use TryGetValue

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: a060fd7)
The file was modified MechJeb2/VesselState.cs (diff)
Commit dad84bf0cb1127017ed2b9bd9ddef15126c4f56c by lamont
Use TryAdd

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: dad84bf)
The file was modified MechJeb2/VesselState.cs (diff)
Commit 088be36ba0a07a1607f4abfcad935759aa90d5ad by lamont
Inline out variable declaration

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 088be36)
The file was modified MechJeb2/VesselState.cs (diff)
The file was modified MechJeb2/MechJebModuleCustomInfoWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleAttitudeController.cs (diff)
The file was modified MechJeb2/MechJebModuleRoverController.cs (diff)
The file was modified MechJeb2/MechJebModuleSpaceplaneAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleDebugArrows.cs (diff)
Commit 824cb304253c24c5149c1691e1e30cee3cfa6a5c by lamont
Remove unused local variables in Tests

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 824cb30)
The file was modified MechJebLibTest/PVGTests/Integrators/VacuumThrustIntegratorTests.cs (diff)
The file was modified MechJebLibTest/ManeuversTests/TwoImpulseTransferTests.cs (diff)
The file was modified MechJebLibTest/MathsTests/FunctionsTests.cs (diff)
The file was modified MechJebLibTest/PVGTests/AscentTests/Titan2Tests.cs (diff)
Commit e58d5d2e162ecbe669d4fc81319e0432f7e073ad by lamont
Remove empty statements

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: e58d5d2)
The file was modified MechJeb2/VesselExtensions.cs (diff)
The file was modified MechJebLibTest/PVGTests/AscentTests/Titan2Tests.cs (diff)
Commit dc4525e6e96584075a9cf29003afd83306010a04 by lamont
Revert back to old naming

Renaming causes too many issues and corrupts the global config so that
the delta V and vessel info windows disappears in the VAB.

Unfortunately, corrupted windows will need to be manually fixed by
editing mechjeb_settings_global.cfg and setting showInEditor to
'True' for the 'Vessel Info' and 'Stage Stats' windows.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: dc4525e)
The file was modified MechJeb2/DisplayModule.cs (diff)
Commit 89ead30a31ba754f264677cce0f0a402ad2a2ac2 by lamont
Mark all info items as implicitly used

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 89ead30)
The file was modified MechJeb2/MechJebModuleCustomInfoWindow.cs (diff)
Commit 0e54ef9e61c153ad9dd83ddaf831d9194830a2ac by lamont
Fix Principia Node execution again

Need to not spill out into the AngleFromNode() test.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 0e54ef9)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit b37673fd2aef2a0439da0a2cded1669e5d5a954d by lamont
Small fix to the Updater for null attach part

Some parts would cause this to throw.

Also added the right Copyright notices

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: b37673f)
The file was modified MechJeb2/MechJebLib/Simulations/DecouplingAnalyzer.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselManager.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimLaunchClamp.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselUpdater.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/FuelStats.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimPartModule.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimPropellant.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/FuelFlowSimulation.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleEngines.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleDecouple.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimPart.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVesselBuilder.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimVessel.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleDockingNode.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimModuleRCS.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/PartModules/SimProceduralFairingDecoupler.cs (diff)
The file was modified MechJeb2/MechJebLib/Simulations/SimResource.cs (diff)
Commit 3b4e45a998a6e2b9f96c4644053b20e86d85d853 by lamont
Fix node executor ullage

should allow people to manually ullage and should now check for the
proper boolean and actually do RCS ullage in the LEAD time state for
you.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 3b4e45a)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit e93ea6e535f732d81d0242df658724b690ee0563 by lamont
Node executor: aligned is good enough for RCS ullaging

we shouldn't need to worry about being settled to start ullaging.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: e93ea6e)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit 0af2ef458cf6810050e3cede87102d83a2011642 by lamont
also only use aligned in deciding to start burn

if we're aligned then just start the burn, don't worry about
angular velocity.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 0af2ef4)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit f06acb0d603cb3126f21811c2471a6a92c428148 by lamont
Simplify RCS ullage

Always apply RCS ullage if we're less than verystable.

Don't kill the engine if the last command was to apply throttle.

In my head, this means that if we drop below verystable during spoolup we
should apply some RCS, without having logic that will accidentally kill
the engine and waste an ignition if ullage drops before spoolup is done.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: f06acb0)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
Commit de9691b001adc50641fcc48234af218a548a92be by lamont
Add back a minimum rcs time and ignition delay

This is working around the fact that "very stable" still has a
0.2% chance of failure and that we want to deliberately "over ullage"
the engine, and we want to wait for a couple of ticks above
"very stable" to ensure we are at 100% before engaging the throttle.

Ullage may still bounce down below "very stable" again, but we'll
reapply ullage as soon as it does.

RF does not currently expose any API that allows seeing if we're at
an ullage state over 100%, we might be able to directly look at
propellantStability to see if we're actually at 100% or only at 99.6%

It would be nice if RF would not truncate propellantStability at 100%
and would have Stable be 100% and VeryStable be something like 105%.

(And note that currently the exponent of RF is 0.5 so that 99.6% ullage
results in a 99.8% chance of ignition)

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: de9691b)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
Commit 586dc2c43820ad1a0cba3ccced729cb228d691e6 by lamont
Use propellantStability directly

This lets the ThrustController and NodeExecutor use the 0.996 to 1.0
range as where to apply RCS to get back up to 1.0

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 586dc2c)
The file was modified MechJeb2/VesselState.cs (diff)
The file was modified MechJeb2/PartExtensions.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit bcb686aec7d39520ee9427c176307a968815791b by lamont
Ullage in the Node Executor for at least 1/2 second

Same code as the ThrustController

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: bcb686a)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit 50fae03e79a89d07e6833b6fcd39eddcbc2cce39 by lamont
The final RCS ullage fix

1. the node executor will continuously apply RCS in the "lead"
   time if the vessel is aligned with the node.

2. the thrust controller will continuously apply RCS until the
   thrust of the engines exceeds the fore thrust of the RCS
   engines.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 50fae03)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit cd846e3a189faeb916bbf039ca124b26aa49ccd3 by lamont
Tune RCS ullaging more

Back to having the node executor ullage only for 1/4 second past
100% so that it doesn't excessively waste RCS during the LEAD time.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: cd846e3)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit fa93eac31c23fbdf8b198d68d8c70d9b66188d1c by lamont
Add forced ullaging right before ignition

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: fa93eac)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit c9a4c4e9c629a45fba82b7598d1fb871cae2a5d8 by lamont
Adding Izzo's Lambert method

This isn't actually any faster than Gooding in the nrev=0 case, so I
don't think we should use it over Gooding right now.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: c9a4c4e)
The file was modified MechJebLibTest/MathsTests/GoodingTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/TwoImpulseTransfer.cs (diff)
The file was removedMechJeb2/MechJebLib/Core/Gooding.cs
The file was addedMechJeb2/MechJebLib/Core/Lambert/Izzo.cs
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was addedMechJeb2/MechJebLib/Core/Lambert/Gooding.cs
The file was modified MechJeb2/Maneuver/TransferCalculator.cs (diff)
Commit 4b468e2fe0ec05987c6de9d4ddc5bcfdd0a7011a by lamont
MechJebLib reorganization

Use a much "wider" directory structure

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 4b468e2)
The file was addedMechJeb2/MechJebLib/Utils/Statics.cs
The file was addedMechJeb2/MechJebLib/FuelFlowSimulation/SimVessel.cs
The file was removedMechJeb2/MechJebLib/Simulations/SimVessel.cs
The file was removedMechJeb2/MechJebLib/Simulations/SimPartModule.cs
The file was modified MechJebLibTest/ManeuversTests/ReturnFromMoonTests.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler5Reduced.cs (diff)
The file was modified MechJebLibTest/MathsTests/BrentRootTests.cs (diff)
The file was addedMechJeb2/MechJebLib/FuelFlowSimulation/SimVesselBuilder.cs
The file was modified MechJebLibTest/ManeuversTests/Simple.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Ascent.cs (diff)
The file was removedMechJeb2/MechJebLib/Core/FunctionImpls/RealSingleImpulseHyperbolicBurn.cs
The file was modified MechJeb2/MechJebStageStatsHelper.cs (diff)
The file was addedMechJeb2/MechJebLib/FuelFlowSimulation/PartModules/SimModuleDecouple.cs
The file was removedMechJeb2/MechJebLib/Simulations/DecouplingAnalyzer.cs
The file was removedMechJeb2/MechJebLib/Core/Functions/Maneuvers.cs
The file was addedMechJeb2/MechJebLib/ODE/Event.cs
The file was addedMechJeb2/MechJebLib/FuelFlowSimulation/PartModules/SimModuleRCS.cs
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumCoastAnalytic.cs (diff)
The file was addedMechJeb2/MechJebLib/Lambert/Izzo.cs
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Energy.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Reduced.cs (diff)
The file was modified MechJeb2/OrbitExtensions.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler3Reduced.cs (diff)
The file was removedMechJeb2/MechJebLib/Suicide.cs
The file was modified MechJebLibTest/MathsTests/GoodingTests.cs (diff)
The file was addedMechJeb2/MechJebLib/FuelFlowSimulation/FuelFlowSimulation.cs
The file was addedMechJeb2/MechJebLib/FuelFlowSimulation/SimPartModule.cs
The file was removedMechJeb2/MechJebLib/Simulations/SimResource.cs
The file was addedMechJeb2/MechJebLib/Rootfinding/Bisection.cs
The file was modified MechJebLibTest/PVGTests/AscentTests/BuggyTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/ChangeOrbitalElement.cs (diff)
The file was removedMechJeb2/MechJebLib/Simulations/SimPropellant.cs
The file was addedMechJeb2/MechJebLib/Functions/Maneuvers.cs
The file was modified MechJeb2/MechJebLib/Primitives/Q3.cs (diff)
The file was addedMechJeb2/MechJebLib/FuelFlowSimulation/SimVesselManager.cs
The file was modified MechJeb2/MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJeb2/Maneuver/OperationEllipticize.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/Vn.cs (diff)
The file was modified MechJeb2/MechJebModuleCustomInfoWindow.cs (diff)
The file was addedMechJeb2/MechJebLib/FuelFlowSimulation/PartModules/SimProceduralFairingDecoupler.cs
The file was addedMechJeb2/MechJebLib/FuelFlowSimulation/SimPropellant.cs
The file was removedMechJeb2/MechJebLib/Simulations/PartModules/SimProceduralFairingDecoupler.cs
The file was modified MechJeb2/MechJebModuleAscentClassicPathMenu.cs (diff)
The file was modified MechJebLibTest/ManeuversTests/TwoImpulseTransferTests.cs (diff)
The file was modified MechJeb2/Maneuver/OperationPeriapsis.cs (diff)
The file was removedMechJeb2/MechJebLib/Core/FunctionImpls/RealDeltaVToChangeApoapsisPrograde.cs
The file was modified MechJeb2/MechJebLib/Primitives/H3.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/TwoImpulseTransfer.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was modified MechJeb2/MechJebLib/Control/PIDLoop.cs (diff)
The file was addedMechJeb2/MechJebLib/FunctionImpls/RealDeltaVToChangeApoapsisPrograde.cs
The file was removedMechJeb2/MechJebLib/Simulations/SimVesselUpdater.cs
The file was removedMechJeb2/MechJebLib/Core/BrentRoot.cs
The file was addedMechJeb2/MechJebLib/FuelFlowSimulation/PartModules/SimLaunchClamp.cs
The file was removedMechJeb2/MechJebLib/Core/ODE/Event.cs
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was removedMechJeb2/MechJebLib/Simulations/PartModules/SimModuleEngines.cs
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Propellant.cs (diff)
The file was addedMechJeb2/MechJebLib/Functions/Astro.cs
The file was removedMechJeb2/MechJebLib/Core/ODE/AbstractIVP.cs
The file was removedMechJeb2/MechJebLib/Simulations/PartModules/SimModuleDockingNode.cs
The file was modified MechJeb2/MechJebLib/PVG/Integrators/VacuumThrustIntegrator.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/Hn.cs (diff)
The file was removedMechJeb2/MechJebLib/Core/BrentMin.cs
The file was modified MechJeb2/MechJebModuleAscentPVGSettingsMenu.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle3Energy.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Phase.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
The file was modified MechJeb2/MechJebLib/Maneuvers/Simple.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/V3.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingGuidance.cs (diff)
The file was modified MechJebLibTest/Structs/Q3Tests.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
The file was modified MechJebLibTest/StaticTests.cs (diff)
The file was removedMechJeb2/MechJebLib/Simulations/SimVesselBuilder.cs
The file was modified MechJeb2/MechJebLib/PVG/AscentBuilder.cs (diff)
The file was removedMechJeb2/MechJebLib/Simulations/FuelFlowSimulation.cs
The file was addedMechJeb2/MechJebLib/FuelFlowSimulation/PartModules/SimModuleDockingNode.cs
The file was modified MechJeb2/MechJebModuleStageStats.cs (diff)
The file was addedMechJeb2/MechJebLib/FuelFlowSimulation/SimResource.cs
The file was addedMechJeb2/MechJebLib/ODE/AbstractIVP.cs
The file was removedMechJeb2/MechJebLib/Simulations/SimVesselManager.cs
The file was removedMechJeb2/MechJebLib/Core/TwoBody/Farnocchia.cs
The file was modified MechJeb2/Maneuver/TransferCalculator.cs (diff)
The file was addedMechJeb2/MechJebLib/FuelFlowSimulation/PartModules/SimModuleEngines.cs
The file was removedMechJeb2/MechJebLib/Core/TwoBody/Shepperd.cs
The file was addedMechJeb2/MechJebLib/TwoBody/Shepperd.cs
The file was removedMechJeb2/MechJebLib/Simulations/SimPart.cs
The file was removedMechJeb2/MechJebLib/Core/Lambert/Gooding.cs
The file was modified MechJebLibTest/PVGTests/Integrators/VacuumCoastAnalyticTests.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleSpaceplaneGuidance.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/BackgroundJob.cs (diff)
The file was addedMechJeb2/MechJebLib/FuelFlowSimulation/DecouplingAnalyzer.cs
The file was addedMechJeb2/MechJebLib/FunctionImpls/RealSingleImpulseHyperbolicBurn.cs
The file was removedMechJeb2/MechJebLib/SuicideBuilder.cs
The file was modified MechJeb2/MechJebModuleFlightRecorderGraph.cs (diff)
The file was modified MechJebLibTest/PVGTests/AscentTests/TheStandardTests.cs (diff)
The file was addedMechJeb2/MechJebLib/SuicideBurnSimulation/Suicide.cs
The file was modified MechJeb2/MechJebLib/PVG/Terminal/Kepler4Reduced.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was addedMechJeb2/MechJebLib/FuelFlowSimulation/FuelStats.cs
The file was modified MechJeb2/MechJebModuleInfoItems.cs (diff)
The file was addedMechJeb2/MechJebLib/Rootfinding/BrentRoot.cs
The file was removedMechJeb2/MechJebLib/Core/Functions/Angles.cs
The file was modified MechJebLibTest/AssertionExtensions.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
The file was removedMechJeb2/MechJebLib/Core/ODE/DP5.cs
The file was modified MechJebLibTest/MathsTests/BisectionTests.cs (diff)
The file was modified MechJeb2/MechJebLib/Primitives/H1.cs (diff)
The file was modified MechJebLibTest/Structs/M3Tests.cs (diff)
The file was modified MechJebLibTest/PVGTests/AscentTests/Titan2Tests.cs (diff)
The file was removedMechJeb2/MechJebLib/Core/Functions/Interpolants.cs
The file was removedMechJeb2/MechJebLib/Core/Bisection.cs
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was removedMechJeb2/MechJebLib/Statics.cs
The file was addedMechJeb2/MechJebLib/Functions/Interpolants.cs
The file was modified MechJeb2/MechJebModuleWaypointWindow.cs (diff)
The file was removedMechJeb2/MechJebLib/Simulations/PartModules/SimModuleDecouple.cs
The file was removedMechJeb2/MechJebLib/Simulations/FuelStats.cs
The file was addedMechJeb2/MechJebLib/SuicideBurnSimulation/SuicideBuilder.cs
The file was modified MechJeb2/MechJebLib/PVG/Solution.cs (diff)
The file was removedMechJeb2/MechJebLib/Core/Maths.cs
The file was modified MechJeb2/MechJebLib/Primitives/Dual.cs (diff)
The file was addedMechJeb2/MechJebLib/FuelFlowSimulation/SimVesselUpdater.cs
The file was modified MechJeb2/MechJebModuleTranslatron.cs (diff)
The file was addedMechJeb2/MechJebLib/ODE/DP5.cs
The file was addedMechJeb2/MechJebLib/ODE/AbstractRungeKutta.cs
The file was modified MechJeb2/MechJebLib/Utils/Check.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSBalancer.cs (diff)
The file was addedMechJeb2/MechJebLib/Functions/Angles.cs
The file was modified MechJebLibTest/MathsTests/BS3Tests.c.cs (diff)
The file was addedMechJeb2/MechJebLib/TwoBody/Farnocchia.cs
The file was modified MechJeb2/Maneuver/OperationAdvancedTransfer.cs (diff)
The file was modified MechJeb2/GLUtils.cs (diff)
The file was addedMechJeb2/MechJebLib/Minimization/BrentMin.cs
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was modified MechJebLibTest/MathsTests/DP5Tests.cs (diff)
The file was modified MechJebLibTest/MathsTests/TwoBody/ShepperdTests.cs (diff)
The file was modified MechJeb2/Maneuver/OperationSemiMajor.cs (diff)
The file was modified MechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle5Reduced.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousGuidance.cs (diff)
The file was removedMechJeb2/MechJebLib/Core/ODE/AbstractRungeKutta.cs
The file was removedMechJeb2/MechJebLib/Simulations/PartModules/SimLaunchClamp.cs
The file was removedMechJeb2/MechJebLib/Simulations/PartModules/SimModuleRCS.cs
The file was modified MechJebLibTest/MathsTests/FunctionsTests.cs (diff)
The file was addedMechJeb2/MechJebLib/ODE/BS3.cs
The file was addedMechJeb2/MechJebLib/Lambert/Gooding.cs
The file was modified MechJeb2/MechJebModuleSuicideTimer.cs (diff)
The file was addedMechJeb2/MechJebLib/FuelFlowSimulation/SimPart.cs
The file was modified MechJebLibTest/ManeuversTests/ChangeOrbitalElementTests.cs (diff)
The file was modified MechJebLibTest/MathsTests/TwoBody/FarnocchiaTests.cs (diff)
The file was removedMechJeb2/MechJebLib/Core/Lambert/Izzo.cs
The file was removedMechJeb2/MechJebLib/Core/ODE/BS3.cs
Commit a3a9ff86606c0e7fd83a5e6b1f23e2790f4d91b3 by lamont
Change IsFinite() to static from extension

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: a3a9ff8)
The file was modified MechJebLibTest/AssertionExtensions.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/Statics.cs (diff)
The file was modified MechJeb2/MechJebLib/Utils/Check.cs (diff)
The file was modified MechJeb2/MechJebLib/Control/PIDLoop.cs (diff)
Commit 7d329fd5a93dfb58d8f5a8b8369337781f95baf7 by lamont
Extract MechJebLib as separate project/dll

MechJebLib.dll has no references to MJ/Unity/KSP (pure C#)
MechJebLibBindings.dll has references to Unity/KSP (conversion glue)
alglib.dll is extracted so that MJLib+MJ can both reference it
Jetbrains.Annotations is included so MJLib can use it without
  referencing Unity and MJ now uses the updated nuget package as well
  (Unity version is old and now will never get updated)

The TARGET_DIR now contains:

```
JetBrains.Annotations.dll
JetBrains.Annotations.xml
MechJeb2.dll
MechJeb2.pdb
MechJebLib.dll
MechJebLib.pdb
MechJebLibBindings.dll
MechJebLibBindings.pdb
System.Core.dll
System.dll
alglib.dll
alglib.pdb
mscorlib.dll
```

System.Core.dll, System.dll, mscorlib.dll shouldn't ship with the zip
file, but everything else should go into the MechJeb/Plugins directory

System.Buffers.dll can be removed it hasn't been necessary for quite
some time.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 7d329fd)
The file was modified MechJeb2/MechJebModuleDockingGuidance.cs (diff)
The file was addedMechJebLib/FuelFlowSimulation/PartModules/SimProceduralFairingDecoupler.cs
The file was addedMechJebLib/Primitives/Dual.cs
The file was modified MechJeb2/MechJebModuleSpinupController.cs (diff)
The file was addedMechJebLib/FuelFlowSimulation/PartModules/SimLaunchClamp.cs
The file was removedMechJeb2/MechJebLib/PVG/Integrators/VacuumThrustIntegrator.cs
The file was removedMechJeb2/alglib/alglibinternal.cs
The file was removedMechJeb2/MechJebLib/PVG/Integrators/IPVGIntegrator.cs
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
The file was removedMechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Energy.cs
The file was addedMechJebLib/Primitives/V3.cs
The file was removedMechJeb2/MechJebLib/PVG/Terminal/IPVGTerminal.cs
The file was modified MechJeb2/Maneuver/OperationSemiMajor.cs (diff)
The file was addedalglib/integration.cs
The file was modified MechJeb2/MechJebModuleRendezvousAutopilotWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentGTAutopilot.cs (diff)
The file was addedMechJebLib/PVG/Integrators/VacuumThrustAnalytic.cs
The file was addedMechJebLib/packages.config
The file was modified MechJeb2/GuiUtils.cs (diff)
The file was removedMechJeb2/MechJebLib/ODE/BS3.cs
The file was modified MechJeb2/Maneuver/OperationInterplanetaryTransfer.cs (diff)
The file was modified MechJeb2/MechJebModuleSuicideTimer.cs (diff)
The file was modified MechJeb2/MechJebModuleInfoItems.cs (diff)
The file was removedMechJeb2/MechJebLib/PVG/Integrators/VacuumCoastAnalytic.cs
The file was addedMechJebLib/Properties/AssemblyInfo.cs
The file was addedMechJebLib/PVG/ContinuityLayout.cs
The file was addedMechJebLib/FuelFlowSimulation/PartModules/SimModuleDecouple.cs
The file was removedMechJeb2/MechJebLib/Primitives/V3.cs
The file was addedalglib/alglibinternal.cs
The file was addedMechJebLib/Utils/BackgroundJob.cs
The file was modified MechJeb2/Maneuver/OperationLambert.cs (diff)
The file was addedalglib/ap.cs
The file was addedMechJebLib/Control/PIDLoop.cs
The file was removedMechJeb2/MechJebLib/Functions/Angles.cs
The file was removedMechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Reduced.cs
The file was addedMechJebLib/Rootfinding/BrentRoot.cs
The file was removedMechJeb2/MechJebLib/Functions/Maneuvers.cs
The file was addedMechJebLib/PVG/Ascent.cs
The file was removedMechJeb2/MechJebLib/Lambert/Izzo.cs
The file was removedMechJeb2/alglib/dataanalysis.cs
The file was addedMechJebLib/ODE/AbstractRungeKutta.cs
The file was removedMechJeb2/MechJebLib/PVG/Optimizer.cs
The file was modified MechJeb2/AttitudeControllers/KosPIDLoop.cs (diff)
The file was removedMechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle4Propellant.cs
The file was removedMechJeb2/MechJebLib/FuelFlowSimulation/SimResource.cs
The file was removedMechJeb2/alglib/ap.cs
The file was modified MechJeb2/MechJebModuleDockingAutopilot.cs (diff)
The file was removedMechJeb2/alglib/optimization.cs
The file was removedMechJeb2/MechJebLib/PVG/ResidualLayout.cs
The file was modified MechJeb2/AttitudeControllers/HybridController.cs (diff)
The file was addedMechJebLib/TwoBody/Farnocchia.cs
The file was removedMechJeb2/MechJebLib/Lambert/Gooding.cs
The file was modified MechJeb2/Maneuver/OperationKillRelVel.cs (diff)
The file was removedMechJeb2/MechJebLib/FuelFlowSimulation/SimVesselManager.cs
The file was addedMechJebLib/Utils/Logger.cs
The file was addedMechJebLib/PVG/Integrators/VacuumThrustIntegrator.cs
The file was removedMechJeb2/MechJebLib/FuelFlowSimulation/SimPartModule.cs
The file was removedMechJeb2/MechJebLib/PVG/Terminal/Kepler4Reduced.cs
The file was addedMechJebLibBindings/MathExtensions.cs
The file was modified MechJeb2/Maneuver/OperationMoonReturn.cs (diff)
The file was modified MechJeb2/ModExtensionDemo.cs (diff)
The file was removedMechJeb2/MechJebLib/Utils/MechJebLibException.cs
The file was addedMechJebLib/FunctionImpls/RealSingleImpulseHyperbolicBurn.cs
The file was removedMechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle3Energy.cs
The file was removedMechJeb2/MechJebLib/Rootfinding/Bisection.cs
The file was modified MechJeb2/MechJebModuleLandingGuidance.cs (diff)
The file was addedMechJebLibBindings/MechJebLibBindings.csproj
The file was addedMechJebLib/PVG/Terminal/FlightPathAngle3Energy.cs
The file was modified MechJeb2/MechJebModuleCustomInfoWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleSmartASS.cs (diff)
The file was removedMechJeb2/MechJebLib/Functions/Interpolants.cs
The file was modified MechJeb2/MechJebModuleStageStats.cs (diff)
The file was addedMechJebLib/Primitives/HBase.cs
The file was addedMechJebLib/ODE/BS3.cs
The file was removedMechJeb2/MechJebLib/PVG/ContinuityLayout.cs
The file was removedMechJeb2/MechJebLib/PVG/InputLayout.cs
The file was modified MechJeb2/Maneuver/TimeSelector.cs (diff)
The file was addedMechJebLib/Primitives/DualV3.cs
The file was addedMechJebLib/FuelFlowSimulation/SimPartModule.cs
The file was removedMechJeb2/MechJebLib/FuelFlowSimulation/SimPart.cs
The file was addedMechJebLib/PVG/Terminal/FlightPathAngle4Propellant.cs
The file was addedMechJebLib/Primitives/Hn.cs
The file was modified MechJeb2/MechJebModuleManeuverPlanner.cs (diff)
The file was modified MechJeb2/Vector6.cs (diff)
The file was removedMechJeb2/MechJebLib/Maneuvers/Simple.cs
The file was modified MechJeb2/Maneuver/OperationPlane.cs (diff)
The file was addedMechJebLib/PVG/Phase.cs
The file was addedalglib/Properties/AssemblyInfo.cs
The file was removedMechJeb2/MechJebLib/Minimization/BrentMin.cs
The file was modified MechJeb2/MechJebModuleDebugArrows.cs (diff)
The file was removedMechJeb2/MechJebLib/FuelFlowSimulation/PartModules/SimLaunchClamp.cs
The file was removedMechJeb2/MechJebLib/Primitives/DualV3.cs
The file was addedMechJebLib/PVG/Terminal/Intercept6Cartesian.cs
The file was removedMechJeb2/MechJebLib/README.md
The file was addedMechJebLib/FuelFlowSimulation/PartModules/SimModuleRCS.cs
The file was addedMechJebLib/Maneuvers/TwoImpulseTransfer.cs
The file was addedMechJebLib/MechJebLib.csproj
The file was removedMechJeb2/MechJebLib/Rootfinding/BrentRoot.cs
The file was addedMechJebLib/Maneuvers/Simple.cs
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
The file was removedMechJeb2/alglib/interpolation.cs
The file was modified MechJeb2/MechJebModuleMenu.cs (diff)
The file was addedalglib/specialfunctions.cs
The file was modified MechJeb2/MechJebModuleRendezvousAutopilot.cs (diff)
The file was addedMechJebLib/Maneuvers/ChangeOrbitalElement.cs
The file was addedMechJebLibBindings/ReflectionUtils.cs
The file was addedMechJebLib/PVG/Terminal/Kepler5Reduced.cs
The file was removedMechJeb2/MechJebLib/FuelFlowSimulation/DecouplingAnalyzer.cs
The file was removedMechJeb2/MechJebLib/FuelFlowSimulation/SimPropellant.cs
The file was removedMechJeb2/MechJebLib/PVG/Ascent.cs
The file was removedMechJeb2/MechJebLib/Primitives/Hn.cs
The file was modified MechJeb2/Maneuver/OperationPeriapsis.cs (diff)
The file was removedMechJeb2/alglib/diffequations.cs
The file was addedMechJebLib/PVG/Terminal/FlightPathAngle4Reduced.cs
The file was modified MechJeb2/CelestialBodyExtensions.cs (diff)
The file was addedMechJebLib/PVG/OptimizerBuilder.cs
The file was modified MechJeb2/MechJebModuleDeployableController.cs (diff)
The file was modified MechJeb2/Maneuver/OperationEccentricity.cs (diff)
The file was addedalglib/linalg.cs
The file was addedMechJebLib/PVG/OutputLayout.cs
The file was modified MechJeb2/MechJebModuleRendezvousGuidance.cs (diff)
The file was removedMechJeb2/MechJebLib/FuelFlowSimulation/FuelStats.cs
The file was modified MechJeb2/MechJebModuleSolarPanelController.cs (diff)
The file was addedMechJebLib/Primitives/Scale.cs
The file was addedMechJebLib/FuelFlowSimulation/SimVessel.cs
The file was addedMechJebLib/Lambert/Gooding.cs
The file was modified MechJeb2/MechJebModuleSmartRcs.cs (diff)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSController.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicAutopilot.cs (diff)
The file was removedMechJeb2/MechJebLib/ODE/DP5.cs
The file was removedMechJeb2/alglib/specialfunctions.cs
The file was modified MechJeb2/AttitudeControllers/KosAttitudeController.cs (diff)
The file was removedMechJeb2/MechJebLib/PVG/Integrators/VacuumThrustAnalytic.cs
The file was removedMechJeb2/MechJebLib/Utils/Check.cs
The file was modified MechJeb2/MechJebModuleRoverController.cs (diff)
The file was addedMechJebLib/Maneuvers/ReturnFromMoon.cs
The file was modified MechJeb2/MechJebModuleSpaceplaneAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSBalancer.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSBalancerWindow.cs (diff)
The file was removedMechJeb2/MechJebLib/Primitives/Vn.cs
The file was modified MechJeb2/MechJebModuleAscentPVGAutopilot.cs (diff)
The file was removedMechJeb2/MechJebLib/Primitives/H3.cs
The file was modified MechJeb2/MechJebModuleWarpController.cs (diff)
The file was modified MechJeb2/MechJebModuleDeployableAntennaController.cs (diff)
The file was removedMechJeb2/MechJebLib/FuelFlowSimulation/PartModules/SimModuleDecouple.cs
The file was removedMechJeb2/MechJebLib/Utils/Statics.cs
The file was removedMechJeb2/alglib/linalg.cs
The file was modified MechJeb2.sln (diff)
The file was modified MechJeb2/Maneuver/OperationAdvancedTransfer.cs (diff)
The file was modified MechJeb2/MechJebModuleFlightRecorderGraph.cs (diff)
The file was addedMechJebLib/PVG/Optimizer.cs
The file was removedMechJeb2/MechJebLib/ODE/AbstractRungeKutta.cs
The file was removedMechJeb2/MechJebLib/PVG/OptimizerBuilder.cs
The file was addedMechJebLib/PVG/Terminal/IPVGTerminal.cs
The file was addedMechJebLib/PVG/AscentBuilder.cs
The file was removedMechJeb2/MechJebLib/PVG/Phase.cs
The file was modified MechJeb2/copy_build.sh (diff)
The file was removedMechJeb2/MechJebLib/FuelFlowSimulation/PartModules/SimModuleRCS.cs
The file was addedalglib/fasttransforms.cs
The file was addedMechJebLib/FuelFlowSimulation/DecouplingAnalyzer.cs
The file was addedalglib/interpolation.cs
The file was removedMechJeb2/MechJebLib/FuelFlowSimulation/FuelFlowSimulation.cs
The file was addedalglib/alglib.csproj
The file was addedMechJebLib/PVG/Problem.cs
The file was addedMechJebLib/PVG/Terminal/Kepler3Reduced.cs
The file was removedMechJeb2/ReflectionUtils.cs
The file was removedMechJeb2/MechJebLib/FuelFlowSimulation/PartModules/SimModuleEngines.cs
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
The file was addedMechJebLib/PVG/Integrators/VacuumCoastAnalytic.cs
The file was addedMechJebLib/Primitives/Q3.cs
The file was removedMechJeb2/MechJebLib/ODE/Event.cs
The file was removedMechJeb2/MechJebLib/PVG/Problem.cs
The file was addedMechJebLib/Primitives/M3.cs
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
The file was modified MechJeb2/Maneuver/OperationResonantOrbit.cs (diff)
The file was modified MechJeb2/MathExtensions.cs (diff)
The file was removedMechJeb2/MechJebLib/PVG/AscentBuilder.cs
The file was modified MechJeb2/MechJebModuleAirplaneGuidance.cs (diff)
The file was modified MechJeb2/Maneuver/OperationLan.cs (diff)
The file was removedMechJeb2/MechJebLib/FuelFlowSimulation/SimVesselUpdater.cs
The file was removedMechJeb2/MechJebLib/TwoBody/Farnocchia.cs
The file was addedMechJebLib/SuicideBurnSimulation/Suicide.cs
The file was removedMechJeb2/MechJebLib/Maneuvers/ReturnFromMoon.cs
The file was modified MechJeb2/MechJebModuleLandingPredictions.cs (diff)
The file was addedMechJebLib/ODE/Event.cs
The file was addedMechJebLibBindings/FuelFlowSimulation/SimVesselBuilder.cs
The file was modified MechJeb2/Maneuver/OperationApoapsis.cs (diff)
The file was removedMechJeb2/MechJebLib/Primitives/Scale.cs
The file was addedMechJebLib/FuelFlowSimulation/FuelStats.cs
The file was removedMechJeb2/MechJebLib/ODE/AbstractIVP.cs
The file was removedMechJeb2/MechJebLib/PVG/Terminal/Kepler3Reduced.cs
The file was modified MechJeb2/MechJebModuleTranslatron.cs (diff)
The file was modified MechJeb2/MechJebModuleAttitudeController.cs (diff)
The file was modified MechJeb2/MechJebModuleWarpHelper.cs (diff)
The file was addedMechJebLib/Utils/DictOfLists.cs
The file was addedMechJebLib/Utils/ObjectPool.cs
The file was modified MechJeb2/DisplayModule.cs (diff)
The file was addedMechJebLibBindings/FuelFlowSimulation/SimVesselManager.cs
The file was addedalglib/statistics.cs
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
The file was addedalglib/alglibmisc.cs
The file was addedMechJebLib/PVG/Integrators/IPVGIntegrator.cs
The file was modified MechJeb2/MechJebModuleFlightRecorder.cs (diff)
The file was addedMechJebLibBindings/H1Extensions.cs
The file was modified MechJeb2/MechJebModuleLandingAutopilot.cs (diff)
The file was addedMechJebLib/Primitives/H1.cs
The file was removedMechJeb2/MechJebLib/SuicideBurnSimulation/SuicideBuilder.cs
The file was modified MechJeb2/MechJebCore.cs (diff)
The file was modified MechJeb2/MechJebModuleAirplaneAutopilot.cs (diff)
The file was addedMechJebLib/FuelFlowSimulation/FuelFlowSimulation.cs
The file was modified MechJeb2/Maneuver/OperationTransfer.cs (diff)
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
The file was removedMechJeb2/alglib/integration.cs
The file was removedMechJeb2/MechJebLib/SuicideBurnSimulation/Suicide.cs
The file was addedMechJebLib/Primitives/H3.cs
The file was modified MechJeb2/MechJebModuleThrustWindow.cs (diff)
The file was removedMechJeb2/MechJebLib/FunctionImpls/RealSingleImpulseHyperbolicBurn.cs
The file was removedMechJeb2/alglib/solvers.cs
The file was modified MechJeb2/Maneuver/OperationEllipticize.cs (diff)
The file was addedMechJebLib/FuelFlowSimulation/SimPropellant.cs
The file was removedMechJeb2/MechJebLib/Control/PIDLoop.cs
The file was addedMechJebLib/PVG/InputLayout.cs
The file was removedMechJeb2/MechJebLib/Maneuvers/ChangeOrbitalElement.cs
The file was addedMechJebLib/FuelFlowSimulation/SimResource.cs
The file was removedMechJeb2/MechJebLib/Maneuvers/TwoImpulseTransfer.cs
The file was addedMechJebLib/SuicideBurnSimulation/SuicideBuilder.cs
The file was modified MechJeb2/MechJebModuleAscentSettingsMenu.cs (diff)
The file was modified MechJeb2/copy_build.bat (diff)
The file was removedMechJeb2/MechJebLib/PVG/Terminal/FlightPathAngle5Reduced.cs
The file was removedMechJeb2/MechJebLib/Primitives/H1.cs
The file was addedMechJebLib/Functions/Maneuvers.cs
The file was modified MechJeb2/MechJebModuleAttitudeAdjustment.cs (diff)
The file was modified MechJeb2/MechJebModuleRoverWindow.cs (diff)
The file was addedMechJebLib/ODE/AbstractIVP.cs
The file was addedMechJebLib/FuelFlowSimulation/SimPart.cs
The file was addedMechJebLib/Functions/Angles.cs
The file was addedMechJebLib/PVG/Terminal/FlightPathAngle5Reduced.cs
The file was addedMechJebLib/PVG/ResidualLayout.cs
The file was removedMechJeb2/alglib/fasttransforms.cs
The file was modified MechJeb2/MechJebModuleAscentClassicPathMenu.cs (diff)
The file was removedMechJeb2/MechJebLib/FunctionImpls/RealDeltaVToChangeApoapsisPrograde.cs
The file was removedMechJeb2/alglib/alglibmisc.cs
The file was removedMechJeb2/MechJebLib/Utils/Logger.cs
The file was modified MechJeb2/MechJebModuleAscentPVGSettingsMenu.cs (diff)
The file was addedMechJebLib/TwoBody/Shepperd.cs
The file was removedMechJeb2/MechJebLib/PVG/OutputLayout.cs
The file was modified MechJeb2/Maneuver/OperationCourseCorrection.cs (diff)
The file was removedMechJeb2/MechJebLib/Primitives/Dual.cs
The file was removedMechJeb2/MechJebLib/FuelFlowSimulation/SimVesselBuilder.cs
The file was removedMechJeb2/MechJebLib/FuelFlowSimulation/PartModules/SimProceduralFairingDecoupler.cs
The file was addedMechJebLib/PVG/Solution.cs
The file was addedMechJebLib/Utils/Statics.cs
The file was addedMechJebLibBindings/FuelFlowSimulation/SimVesselUpdater.cs
The file was addedMechJebLib/Rootfinding/Bisection.cs
The file was addedMechJebLibBindings/Properties/AssemblyInfo.cs
The file was removedMechJeb2/MechJebLib/Primitives/Q3.cs
The file was removedMechJeb2/MechJebLib/Primitives/HBase.cs
The file was removedMechJeb2/MechJebLib/TwoBody/Shepperd.cs
The file was modified MechJeb2/MechJebModuleTargetController.cs (diff)
The file was modified MechJeb2/Maneuver/Porkchop.cs (diff)
The file was modified MechJeb2/MechJebModuleSpaceplaneGuidance.cs (diff)
The file was removedMechJeb2/MechJebLib/PVG/Solution.cs
The file was addedalglib/diffequations.cs
The file was addedalglib/optimization.cs
The file was removedMechJeb2/MechJebLib/PVG/Terminal/Intercept6Cartesian.cs
The file was modified MechJeb2/Maneuver/OperationCircularize.cs (diff)
The file was addedMechJebLib/FuelFlowSimulation/PartModules/SimModuleEngines.cs
The file was removedMechJeb2/MechJebLib/Utils/ObjectPool.cs
The file was addedMechJebLib/FunctionImpls/RealDeltaVToChangeApoapsisPrograde.cs
The file was addedMechJebLib/Primitives/Vn.cs
The file was addedalglib/solvers.cs
The file was addedMechJebLib/PVG/Terminal/FlightPathAngle4Energy.cs
The file was addedMechJebLib/FuelFlowSimulation/PartModules/SimModuleDockingNode.cs
The file was addedMechJebLib/ODE/DP5.cs
The file was removedMechJeb2/MechJebLib/Primitives/M3.cs
The file was removedMechJeb2/MechJebLib/FuelFlowSimulation/SimVessel.cs
The file was addedMechJebLib/PVG/Terminal/Kepler4Reduced.cs
The file was modified MechJeb2/ComputerModule.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeEditor.cs (diff)
The file was modified MechJeb2/Maneuver/TransferCalculator.cs (diff)
The file was addedalglib/dataanalysis.cs
The file was addedMechJebLib/Utils/MechJebLibException.cs
The file was modified MechJeb2/VesselState.cs (diff)
The file was removedMechJeb2/MechJebLib/Functions/Astro.cs
The file was modified MechJeb2/MechJebModuleWaypointWindow.cs (diff)
The file was addedMechJebLib/Minimization/BrentMin.cs
The file was modified MechJeb2/Maneuver/OperationLongitude.cs (diff)
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was addedMechJebLib/Functions/Interpolants.cs
The file was removedMechJeb2/MechJebLib/PVG/Terminal/Kepler5Reduced.cs
The file was removedMechJeb2/alglib/statistics.cs
The file was removedMechJeb2/MechJebLib/FuelFlowSimulation/PartModules/SimModuleDockingNode.cs
The file was addedMechJebLib/Utils/Check.cs
The file was removedMechJeb2/MechJebLib/Utils/DictOfLists.cs
The file was modified MechJeb2/Maneuver/OperationInclination.cs (diff)
The file was addedMechJebLib/Lambert/Izzo.cs
The file was modified MechJeb2/AttitudeControllers/MJAttitudeController.cs (diff)
The file was addedMechJebLib/Functions/Astro.cs
The file was modified MechJeb2/OrbitExtensions.cs (diff)
The file was removedMechJeb2/MechJebLib/Utils/BackgroundJob.cs
Commit 7d1b6a8dc6d9b3f54a2cec09c77b80650d985b55 by lamont
Add a newton's method that fails back to bisection

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 7d1b6a8)
The file was addedMechJebLibTest/MathsTests/NewtonTests.cs
The file was addedMechJebLib/Rootfinding/Newton.cs
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
The file was modified MechJebLib/MechJebLib.csproj (diff)
Commit a264270705b66e6222036b29cd02fddf070f1cfc by lamont
More cleanup and reorg

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: a264270)
The file was modified MechJebLibTest/PVGTests/Integrators/VacuumCoastAnalyticTests.cs (diff)
The file was addedMechJebLibTest/FunctionsTests.cs
The file was modified MechJebLibTest/Structs/V3Tests.cs (diff)
The file was addedMechJebLibTest/RootfindingTests/BrentRootTests.cs
The file was removedMechJebLibTest/MathsTests/GoodingTests.cs
The file was modified MechJebLibTest/AssertionExtensions.cs (diff)
The file was modified MechJebLibTest/ManeuversTests/Simple.cs (diff)
The file was addedMechJebLibTest/TwoBodyTests/ShepperdTests.cs
The file was removedMechJebLibTest/MathsTests/DP5Tests.cs
The file was removedMechJebLibTest/MathsTests/BrentRootTests.cs
The file was modified MechJebLibTest/Structs/M3Tests.cs (diff)
The file was modified MechJebLibTest/ManeuversTests/TwoImpulseTransferTests.cs (diff)
The file was modified MechJebLibTest/ManeuversTests/ChangeOrbitalElementTests.cs (diff)
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
The file was modified MechJebLibTest/PVGTests/AscentTests/Titan2Tests.cs (diff)
The file was addedMechJebLibTest/ODETests/DP5Tests.cs
The file was removedMechJebLibTest/MathsTests/BisectionTests.cs
The file was modified MechJebLibTest/StaticTests.cs (diff)
The file was removedMechJebLibTest/MathsTests/TwoBody/FarnocchiaTests.cs
The file was addedMechJebLibTest/RootfindingTests/NewtonTests.cs
The file was removedMechJebLibTest/MathsTests/FunctionsTests.cs
The file was modified MechJebLib/Lambert/Izzo.cs (diff)
The file was modified MechJebLibTest/ManeuversTests/ReturnFromMoonTests.cs (diff)
The file was addedMechJebLibTest/ODETests/BS3Tests.c.cs
The file was modified MechJebLibTest/PVGTests/AscentTests/BuggyTests.cs (diff)
The file was modified MechJebLibTest/PVGTests/AscentTests/TheStandardTests.cs (diff)
The file was modified MechJebLibTest/Structs/HTests.cs (diff)
The file was removedMechJebLibTest/MathsTests/TwoBody/ShepperdTests.cs
The file was modified MechJebLibTest/PVGTests/Integrators/VacuumThrustIntegratorTests.cs (diff)
The file was removedMechJebLibTest/MathsTests/NewtonTests.cs
The file was modified MechJebLibTest/ControlTests/PIDLoopTests.cs (diff)
The file was addedMechJebLibTest/LambertTests/GoodingTests.cs
The file was addedMechJebLibTest/RootfindingTests/BisectionTests.cs
The file was modified MechJebLibTest/Structs/Q3Tests.cs (diff)
The file was addedMechJebLibTest/TwoBodyTests/FarnocchiaTests.cs
The file was removedMechJebLibTest/MathsTests/BS3Tests.c.cs
Commit 58135711b65d73cf327a8896ee3d5ff3e32ef4ea by lamont
Automated cleanup

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 5813571)
The file was modified MechJebLib/Primitives/H3.cs (diff)
The file was modified MechJebLib/Primitives/Hn.cs (diff)
The file was modified MechJebLibBindings/FuelFlowSimulation/SimVesselUpdater.cs (diff)
The file was modified MechJebLib/Functions/Astro.cs (diff)
The file was modified MechJebLib/Primitives/V3.cs (diff)
The file was modified MechJeb2/VesselState.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/PartModules/SimLaunchClamp.cs (diff)
The file was modified MechJebLib/PVG/Terminal/FlightPathAngle4Reduced.cs (diff)
The file was modified MechJebLib/Lambert/Gooding.cs (diff)
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
The file was modified MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/SimPropellant.cs (diff)
The file was modified MechJebLib/Primitives/Dual.cs (diff)
The file was modified MechJebLib/PVG/Integrators/VacuumThrustAnalytic.cs (diff)
The file was modified MechJebLib/Functions/Angles.cs (diff)
The file was modified MechJebLib/ODE/AbstractIVP.cs (diff)
The file was modified MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)
The file was modified MechJebLib/ODE/Event.cs (diff)
The file was modified MechJebLib/Primitives/Scale.cs (diff)
The file was modified MechJebLib/Primitives/Q3.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/PartModules/SimModuleEngines.cs (diff)
The file was modified MechJebLib/Minimization/BrentMin.cs (diff)
The file was modified MechJebLib/Utils/BackgroundJob.cs (diff)
The file was modified MechJebLib/Maneuvers/ChangeOrbitalElement.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/SimPart.cs (diff)
The file was modified MechJeb2/GuiUtils.cs (diff)
The file was modified MechJeb2/MechJebModuleSettings.cs (diff)
The file was modified MechJebLib/Utils/ObjectPool.cs (diff)
The file was modified MechJebLib/Rootfinding/Bisection.cs (diff)
The file was modified MechJeb2/MechJebModuleMenu.cs (diff)
The file was modified MechJebLib/FunctionImpls/RealSingleImpulseHyperbolicBurn.cs (diff)
The file was modified MechJebLib/PVG/OptimizerBuilder.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/PartModules/SimModuleDecouple.cs (diff)
The file was modified MechJeb2/AttitudeControllers/KosAttitudeController.cs (diff)
The file was modified MechJeb2/MechJebModuleSuicideTimer.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/DecouplingAnalyzer.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/SimVessel.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/PartModules/SimModuleRCS.cs (diff)
The file was modified MechJebLib/PVG/ContinuityLayout.cs (diff)
The file was modified MechJebLib/ODE/DP5.cs (diff)
The file was modified MechJebLib/PVG/AscentBuilder.cs (diff)
The file was modified MechJebLib/TwoBody/Shepperd.cs (diff)
The file was modified MechJebLib/PVG/Terminal/FlightPathAngle5Reduced.cs (diff)
The file was modified MechJebLib/Control/PIDLoop.cs (diff)
The file was modified MechJebLib/PVG/Terminal/Kepler4Reduced.cs (diff)
The file was modified MechJebLib/Utils/Logger.cs (diff)
The file was modified MechJebLib/FunctionImpls/RealDeltaVToChangeApoapsisPrograde.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/PartModules/SimProceduralFairingDecoupler.cs (diff)
The file was modified MechJebLib/packages.config (diff)
The file was modified MechJebLib/FuelFlowSimulation/FuelFlowSimulation.cs (diff)
The file was modified MechJebLib/PVG/Phase.cs (diff)
The file was modified MechJebLib/PVG/Problem.cs (diff)
The file was modified MechJebLib/PVG/ResidualLayout.cs (diff)
The file was modified MechJebLib/PVG/Terminal/IPVGTerminal.cs (diff)
The file was modified MechJebLib/ODE/BS3.cs (diff)
The file was modified MechJebLib/PVG/OutputLayout.cs (diff)
The file was modified MechJebLib/PVG/Terminal/FlightPathAngle4Energy.cs (diff)
The file was modified MechJeb2/MechJebModuleStageStats.cs (diff)
The file was modified MechJebLib/PVG/Integrators/VacuumThrustIntegrator.cs (diff)
The file was modified MechJebLib/Primitives/HBase.cs (diff)
The file was modified MechJebLibBindings/FuelFlowSimulation/SimVesselBuilder.cs (diff)
The file was modified MechJebLib/Rootfinding/BrentRoot.cs (diff)
The file was modified MechJebLib/TwoBody/Farnocchia.cs (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was modified MechJeb2/MechJebModuleRCSController.cs (diff)
The file was modified MechJebLib/PVG/Integrators/VacuumCoastAnalytic.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/FuelStats.cs (diff)
The file was modified MechJebLib/PVG/Terminal/FlightPathAngle3Energy.cs (diff)
The file was modified MechJebLib/PVG/Ascent.cs (diff)
The file was modified MechJebLib/PVG/InputLayout.cs (diff)
The file was modified MechJebLib/Utils/Check.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSBalancer.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/SimPartModule.cs (diff)
The file was modified MechJebLib/PVG/Terminal/Intercept6Cartesian.cs (diff)
The file was modified MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJebLib/Primitives/DualV3.cs (diff)
The file was modified MechJebLibBindings/MechJebLibBindings.csproj (diff)
The file was modified MechJebLib/Functions/Interpolants.cs (diff)
The file was modified MechJebLib/PVG/Terminal/Kepler3Reduced.cs (diff)
The file was modified MechJeb2/MathExtensions.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/SimResource.cs (diff)
The file was modified MechJebLib/PVG/Integrators/IPVGIntegrator.cs (diff)
The file was modified MechJeb2/MechJebModuleRoverController.cs (diff)
The file was modified MechJebLib/Primitives/Vn.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/PartModules/SimModuleDockingNode.cs (diff)
The file was modified MechJebLib/Lambert/Izzo.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
The file was modified MechJebLib/PVG/Terminal/Kepler5Reduced.cs (diff)
The file was modified MechJebLib/Primitives/H1.cs (diff)
The file was modified MechJebLib/Utils/Statics.cs (diff)
The file was modified MechJebLib/ODE/AbstractRungeKutta.cs (diff)
The file was modified MechJebLib/PVG/Terminal/FlightPathAngle4Propellant.cs (diff)
The file was modified MechJebLib/Primitives/M3.cs (diff)
The file was modified MechJebLibTest/ManeuversTests/TwoImpulseTransferTests.cs (diff)
Commit cec19be52e38a7d057e32c4c5d1b3cdd2e4adfdf by lamont
Use WithInheritors to cleanup a lot of jetbrains spam

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: cec19be)
The file was modified MechJeb2/MechJebModuleAttitudeAdjustment.cs (diff)
The file was modified MechJeb2/MechJebModuleDockingGuidance.cs (diff)
The file was modified MechJeb2/ComputerModule.cs (diff)
The file was modified MechJeb2/MechJebModuleMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was modified MechJeb2/MechJebModuleDeployableAntennaController.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicPathMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
The file was modified MechJeb2/MechJebModuleFlightRecorderGraph.cs (diff)
The file was modified MechJeb2/MechJebModuleWaypointWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleManeuverPlanner.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSController.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSBalancer.cs (diff)
The file was modified MechJeb2/MechJebModuleSpaceplaneAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleTranslatron.cs (diff)
The file was modified MechJeb2/MechJebModuleFlightRecorder.cs (diff)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJeb2/MechJebModuleRoverWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettingsMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleAirplaneAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleStageStats.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilotWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleSuicideTimer.cs (diff)
The file was modified MechJeb2/MechJebModuleWarpController.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentGTAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGSettingsMenu.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
The file was modified MechJeb2/MechJebModuleSpinupController.cs (diff)
The file was modified MechJeb2/MechJebModuleDockingAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleSpaceplaneGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleSolarPanelController.cs (diff)
The file was modified MechJeb2/MechJebModuleNodeEditor.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleRoverController.cs (diff)
The file was modified MechJeb2/MechJebModuleSmartRcs.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleAirplaneGuidance.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingPredictions.cs (diff)
The file was modified MechJeb2/MechJebModuleRCSBalancerWindow.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleInfoItems.cs (diff)
The file was modified MechJeb2/MechJebModuleWarpHelper.cs (diff)
The file was modified MechJeb2/MechJebModuleTargetController.cs (diff)
The file was modified MechJeb2/MechJebModuleRendezvousAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleDebugArrows.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
The file was modified MechJeb2/MechJebModuleSmartASS.cs (diff)
Commit 675f7a2ac8efaa8fc26f422337a49258617be571 by lamont
ReturnFromMoon: don't force the meetpoint to be halfway

It actually seems to converge faster if the meetpoint constraints
are removed and the initialization isn't in the middle.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 675f7a2)
The file was modified MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)
The file was modified MechJebLibTest/ManeuversTests/ReturnFromMoonTests.cs (diff)
Commit bf9e8dc2b2e3ebc509fac06aaa0a32aa0979c171 by lamont
ReturnFromMoon: change periapsis constraint

removing normalization makes it converge much faster.

slight impact on accuracy but cuts the time by over 50%.

also add an always-on-optguard test so i make sure not to screw up the
jacobians.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: bf9e8dc)
The file was modified MechJebLibTest/ManeuversTests/ReturnFromMoonTests.cs (diff)
The file was modified MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)
Commit 805aecd11d16e861242eb98f5eec16545520146a by lamont
ReturnFromMoon updating tests

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 805aecd)
The file was modified MechJebLibTest/ManeuversTests/ReturnFromMoonTests.cs (diff)
Commit 96a998d755190d71ec41e7cb3e253599af85ce1c by lamont
Add Dormand-Prince 8(5)3 method

No interpolant yet though.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 96a998d)
The file was modified MechJebLibTest/TwoBodyTests/ShepperdTests.cs (diff)
The file was modified MechJebLib/ODE/BS3.cs (diff)
The file was addedMechJebLib/ODE/DP8.cs
The file was modified MechJebLib/ODE/AbstractRungeKutta.cs (diff)
The file was modified MechJebLib/MechJebLib.csproj (diff)
The file was modified MechJebLib/ODE/DP5.cs (diff)
Commit 05475d6acfbd4eea00069e9cdc594dbadf0ee76d by lamont
Nuke more of the old gravity turner code

somehow this never got cleaned up

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 05475d6)
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
The file was removedMechJeb2/MechJebModuleAscentGTAutopilot.cs
Commit 56031e94f51881a731cdb525adce46b60bfb43c8 by lamont
ReturnFromMoon: increased precision and logging

EPSX needs to be 1e-5 to find some solutions

Added some better logging and now some of the tests are validating
against optimal values of dv.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 56031e9)
The file was modified MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)
The file was modified MechJebLibTest/ManeuversTests/ReturnFromMoonTests.cs (diff)
Commit 423d7748799158590178835e4a6b09f2a8ffa1e5 by lamont
add the Tsit5 method

no interpolant yet

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 423d774)
The file was modified MechJebLibTest/TwoBodyTests/ShepperdTests.cs (diff)
The file was addedMechJebLib/ODE/Tsit5.cs
The file was modified MechJebLib/MechJebLib.csproj (diff)
Commit a61ca041950f24c7a9f93f493f5ddcb3c122aa81 by lamont
Overhaul of ReturnFromMoon initial guesser

It now uses Brent's minimization algorithm to try to guess the
inclination of the return ellipse and if it is type I or type II
return orbit.

Restored the 1/2 time midpoint constraints since that helps
convergence speed in the hyperbolic initial conditions case and
seems to improve other ones as well.

This also now finds some better solutions as evidenced by the
one test which dropped from 1520 m/s to 1092 m/s.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: a61ca04)
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was modified MechJebLibTest/ManeuversTests/Simple.cs (diff)
The file was modified MechJebLib/Functions/Astro.cs (diff)
The file was modified MechJebLibTest/ManeuversTests/ReturnFromMoonTests.cs (diff)
The file was modified MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)
Commit 50f1b11078780be98f683631ce797797ca19e0df by lamont
ReturnFromMoon: fix dtmin bug well enough for now

- the attempt at handling stepping one period into the future was
not doing any useful work at all, now it at least steps dtmin forward
by one period.

- switch to SLP which is about 10x to 100x faster than SQP and gets
all the solve times down under 1000ms.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 50f1b11)
The file was modified MechJebLibTest/ManeuversTests/ReturnFromMoonTests.cs (diff)
The file was modified MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)
Commit 3dee06ca22763579529f3152741573b3fb25807c by lamont
Rewrite and simplify ReturnFromMoon

Reject the Sims-Flanaghan-inspired approach and just use two
Lambert phases, switch to SLP solver, improve the sliding windows
for the initial guess.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 3dee06c)
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was modified MechJebLibTest/ManeuversTests/ReturnFromMoonTests.cs (diff)
The file was modified MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)
Commit 201c3d05026561224e4264a0f68109cde6cf3602 by lamont
ReturnToMoon: the quite stable solution

The branch in the Lambert solver was creating discontinuous "tears" in
the optimization problem.  Avoiding that branch greatly stabilizes the
problem.  I'm still not entirely certain what I just did though.

Slight tweak to the outer loop as well.

The initial guess generator is still pretty crazy, but seems to work, I
haven't come up with anything simpler.  Probably needs a better global
optimization strategy.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 201c3d0)
The file was modified MechJebLib/Lambert/Gooding.cs (diff)
The file was modified MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)
The file was modified MechJebLibTest/ManeuversTests/ReturnFromMoonTests.cs (diff)
Commit a50fce6320e380bb1b0b3826cb170f9026e74ef2 by lamont
Fix ascent-type menu selector

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: a50fce6)
The file was modified MechJeb2/MechJebModuleAscentMenu.cs (diff)
Commit 96163916a2d54db08551459ecc1ac6337959c01f by lamont
Try to remap old ascent settings to not throw cast errors

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 9616391)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
Commit 7e72dabd181f8da9a4e1b51f5daaf7d41a16d671 by lamont
Rename the AscentTypeInteger and remove old GT params

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 7e72dab)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
Commit 9806024eb7a0effc3ca1c53f7bc0fa4fb8021687 by mrev1995
Fix custom window presets

Some fields got renamed since these were last updated; some of these
strings were simply wrong (periods that should be colons) and would
never have worked.
(commit: 9806024)
The file was modified MechJeb2/MechJebModuleCustomInfoWindow.cs (diff)
Commit fab24718862b0e8116be0591200f909ca97db421 by lamont
Beginning of Directory.Build.props settings

Can create that file in the root with:

```
<Project>
  <PropertyGroup>
    <KspDir>/Users/lamont/ksp/plc_1.12.3</KspDir>
  </PropertyGroup>
</Project>
```

And it'll get passed into copy_build.sh

Or KSPDIR will override that setting

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: fab2471)
The file was modified MechJeb2/copy_build.sh (diff)
The file was modified MechJeb2/MechJeb2.csproj (diff)
Commit fa685a530f1d7920070327d59416fb7360500225 by lamont
Fix the longstanding launch to plane bug

Should stop going to FINISHED when the vessel comes
out of warp.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: fa685a5)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
Commit dde57e904405143baa4d142564c742e87a975453 by lamont
Run optimizer during final countdown

When doing launch to plane run the optimizer before T=0 secs

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: dde57e9)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
Commit d7259979d2bc9cc2d76457c97cebac05f8e28a9d by noreply
Update README.md

Fixed typo and added missing instructions for Windows build process
(commit: d725997)
The file was modified README.md (diff)
Commit a75e950cafbb1d6652a48f5b1c4c52f24046cc9f by lamont
Convert PVG to SQP solver and upgrade alglib

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: a75e950)
The file was modified alglib/statistics.cs (diff)
The file was modified alglib/ap.cs (diff)
The file was modified alglib/optimization.cs (diff)
The file was modified alglib/specialfunctions.cs (diff)
The file was modified alglib/fasttransforms.cs (diff)
The file was modified alglib/interpolation.cs (diff)
The file was modified alglib/alglibmisc.cs (diff)
The file was modified alglib/solvers.cs (diff)
The file was modified alglib/dataanalysis.cs (diff)
The file was modified alglib/alglibinternal.cs (diff)
The file was modified alglib/linalg.cs (diff)
The file was modified MechJebLibTest/PVGTests/AscentTests/Titan2Tests.cs (diff)
The file was modified MechJebLib/PVG/Optimizer.cs (diff)
The file was modified alglib/integration.cs (diff)
The file was modified alglib/diffequations.cs (diff)
Commit eba4650ac6c93abc844423a26383dc0db6d2b43c by lamont
Ascent optimizer algorithm changes

It now always returns a fully numerical solution and has some other
tweaks

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: eba4650)
The file was modified MechJebLibTest/PVGTests/AscentTests/TheStandardTests.cs (diff)
The file was modified MechJebLib/PVG/Ascent.cs (diff)
The file was modified MechJebLib/PVG/Phase.cs (diff)
The file was modified MechJeb2/Maneuver/TransferCalculator.cs (diff)
The file was modified MechJebLibTest/PVGTests/AscentTests/BuggyTests.cs (diff)
The file was modified MechJebLibTest/PVGTests/AscentTests/Titan2Tests.cs (diff)
Commit 530ff86997a9aeb475c285ea27d3f27445a62437 by lamont
Fix some new ascent algorithm bugs

Had some copypasta errors syncing from my abandoned dev branch

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 530ff86)
The file was modified MechJebLibTest/PVGTests/AscentTests/Titan2Tests.cs (diff)
The file was modified MechJebLibTest/PVGTests/AscentTests/BuggyTests.cs (diff)
The file was modified MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJebLib/PVG/Ascent.cs (diff)
Commit b6ee0296e25747c8d23e5e2a19c7613d3b3036cc by lamont
Eliminate mass costate entirely from PVG calcs

This is now likely never going to happen

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: b6ee029)
The file was modified MechJebLib/PVG/OutputLayout.cs (diff)
The file was modified MechJebLib/PVG/InputLayout.cs (diff)
The file was modified MechJebLib/PVG/Integrators/VacuumCoastAnalytic.cs (diff)
The file was modified MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJebLib/PVG/Integrators/VacuumThrustAnalytic.cs (diff)
The file was modified MechJebLib/PVG/ContinuityLayout.cs (diff)
The file was modified MechJebLibTest/PVGTests/AscentTests/BuggyTests.cs (diff)
The file was modified MechJebLib/PVG/Integrators/VacuumThrustIntegrator.cs (diff)
Commit 0a5f2b84105f5f0cd91cf7c736a2a545f50f9585 by lamont
More PVG test fixes

TheStandardPeriapsis is known to be busted because of #1751

Not sure why Kepler3ExtremeElliptical is still busted.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 0a5f2b8)
The file was modified MechJebLibTest/PVGTests/Integrators/VacuumThrustIntegratorTests.cs (diff)
The file was modified MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJebLibTest/PVGTests/AscentTests/TheStandardTests.cs (diff)
The file was modified MechJebLibTest/AssertionExtensions.cs (diff)
Commit 8b1fb757e0e3566597ebf52b1d9237e5df70eef7 by lamont
Multiple PVG fixes

1. don't do TERMINAL_RCS in anything other than the last stage
2. end the TERMINAL state if there's no thrust
3. skip the current stage in the stage dV iterations in the glueball
   if it is coasting and is coast after (not coast before).

plus a bit of mass costate removal

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 8b1fb75)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
The file was modified MechJebLib/PVG/ResidualLayout.cs (diff)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
Commit d66ad990396d722dd119547ffa35f108de70712b by lamont
Remove unrestartable dead engines from deltaV display

RF Engines with no restarts left don't have any dV

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: d66ad99)
The file was modified MechJebLibBindings/FuelFlowSimulation/SimVesselUpdater.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/SimVessel.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/PartModules/SimModuleEngines.cs (diff)
The file was modified MechJebLibBindings/MechJebLibBindings.csproj (diff)
The file was addedMechJebLibBindings/PartExtensions.cs
The file was modified MechJebLibBindings/FuelFlowSimulation/SimVesselBuilder.cs (diff)
Commit b99cb0005985455a5bd136a27416551f89ad9cf4 by lamont
Move StagingController check for dead engine into MJLibBindings

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: b99cb00)
The file was modified MechJeb2/PartExtensions.cs (diff)
The file was modified MechJebLibBindings/FuelFlowSimulation/SimVesselUpdater.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
The file was modified MechJebLibBindings/PartExtensions.cs (diff)
Commit 64c77bc309e79197c190153e25f8a0f47a84195a by lamont
Change boolean-returning API to look more boolean

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 64c77bc)
The file was modified MechJebLibBindings/FuelFlowSimulation/SimVesselUpdater.cs (diff)
The file was modified MechJebLibBindings/PartExtensions.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/PartModules/SimModuleEngines.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/SimVessel.cs (diff)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
Commit d1c02208c01e40fc7a803bc33a6d593220604445 by noreply
Update VesselState.cs

There's a bug reported #1860  where RCS keeps turning on when unwanted for non-Real Fuels users and requires turning off AutoRCSUllaging. This may be enough to fix it but this could use other sanity checks elsewhere. Also, RCS ullaging should either

* Check for Core.Attitude.RCS_auto = true or else don't enable RCS!
* Put in code to turn RCS back off when ullaging is completed.
(commit: d1c0220)
The file was modified MechJeb2/VesselState.cs (diff)
Commit 07ff52820477cb330c8ed98f2bbddbb526902198 by lamont
Fix node executor in stock to not RCS ullage

adds a check for RF being loaded or not

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 07ff528)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit 33e8258921563c8615e2b7281b7ddf7ba1d94a73 by lamont
Don't run RCS in Node Executor when IDLE

We can be enabled and hammering on DoRCS every tick but not be doing
anything.

Added more initializion paranoia around resetting back to Idle as well.

Also bonus fixed that it doesn't rely on VesselState any more for doing
its own reflection poking around.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 33e8258)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit 66d4fcaa55523c952654eb1c8d1557c4a412efd0 by lamont
Some fixes for stock node execution behavior

minThrustAccel is always zero in stock, use max instead.

do a bit better about coordination with different modules.

have a lowest thrust level of 1% in ThrustForDV().

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 66d4fca)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
Commit 207f4ee9c2c52c265ed2b132e702408aae23e777 by lamont
Node executor shouldn't control attitude in warp

not doing this causes a weird kick to the vessel right when you
come out of warp to align with the node.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 207f4ee)
The file was modified MechJeb2/MechJebModuleNodeExecutor.cs (diff)
Commit 991442f5cb2a8801c20b86b3da5f58d0dc344ccb by lamont
Fix issues with RCS being enabled when doing node execution

the way that ullage needs to be applied until throttle comes up
sufficient to deal with RF spoolup wound up trolling stock players.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 991442f)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
Commit cd58b3fa81fcffc51df076f803bc26410b08f27c by lamont
Switch adv transfer to SQP from AUL

whatever i did with converting to "aul2" with the alglib update
didn't work, switch to SQP which is more likely to be the appropriate
algorithm in the end anyway

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: cd58b3f)
The file was modified MechJeb2/Maneuver/TransferCalculator.cs (diff)
Commit 4b50512228dc8ba03672161a68d98f93460664d7 by lamont
Absolute minimum stepsize of 10 ULPs in ODE solver

Should work the same as scipy's integrator.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 4b50512)
The file was modified MechJebLibTest/ODETests/DP5Tests.cs (diff)
The file was modified MechJebLib/ODE/AbstractRungeKutta.cs (diff)
The file was modified MechJebLib/Utils/Statics.cs (diff)
The file was modified MechJebLib/ODE/AbstractIVP.cs (diff)
The file was modified MechJebLib/Rootfinding/BrentRoot.cs (diff)
The file was modified MechJebLib/Rootfinding/Newton.cs (diff)
Commit 411bc9fb16779dd89eb4e6e0a7c5c95dab4314db by lamont
Faster ValueInfoItem

use System.Reflection.Emit instead of System.Linq.Expressions, modify
the accessors to take the instance as an argument, and cache the
accessors in a static dictionary.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 411bc9f)
The file was modified MechJeb2/MechJebModuleCustomInfoWindow.cs (diff)
Commit 5aa5d7f7802de135e87d7f32fc65f91eac8ea8c2 by mrev1995
Fix phase angle from mark calculation

Now works with inclined orbits.
(commit: 5aa5d7f)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleFlightRecorder.cs (diff)
Commit a96d6f1c7092cb9740eaa7b863b009e218932e35 by mrev1995
Calculate phase angle to target in target's plane
(commit: a96d6f1)
The file was modified MechJeb2/MechJebModuleInfoItems.cs (diff)
Commit 4d26b0ffc9bef9662eb43c0716a2729ef145a528 by lamont
Log time spent registering info items

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 4d26b0f)
The file was modified MechJeb2/MechJebModuleCustomInfoWindow.cs (diff)
Commit fe3eca87c8355eb318cb028f4c202fd31c5e462d by lamont
More instrumentation and caching of InfoItems

Caches all the reflection to find the attributes on the modules, fixes
caching of the accessor compilation, adds some profiling and some more
default fine grained timing around creating the info items.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: fe3eca8)
The file was modified MechJeb2/MechJebModuleCustomInfoWindow.cs (diff)
Commit f93531975c4f19e52a0e9534a94b01da2b2a9682 by mrev1995
Fix ToSI for floats

Fix `float.ToSI` to conform to the changes in `double.ToSI` in
02fab0d671985f54d3a22d769affa904db3294b6
(commit: f935319)
The file was modified MechJebLib/Utils/Statics.cs (diff)
The file was modified MechJeb2/MechJebModuleWaypointWindow.cs (diff)
Commit d2e52ef6f314216fe3f68f0647ad14b2721547d1 by lamont
switch bettercontroller back to 90 degree pid

should make it a lot less stiff and hopefully fix some
wiggles, but may make high warp through maxQ much more flippy.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: d2e52ef)
The file was modified MechJebLib/Control/PIDLoop.cs (diff)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
Commit 783a86313c2153cb9ac491421a1aa2c1ce15576c by lamont
Add MultFlow to FuelFlowSimulation

Also moves MultFlow and FlowMultiplier to the Updater instead of the
Builder so it gets updated on every tick.

May or may not fix TF loss of thrust failures from not showing up in the
DV display.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 783a863)
The file was modified MechJebLibBindings/FuelFlowSimulation/SimVesselBuilder.cs (diff)
The file was modified MechJebLibBindings/FuelFlowSimulation/SimVesselUpdater.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/PartModules/SimModuleEngines.cs (diff)
Commit cafcaa40c1bd3e01283d2970d70e8480267fb48e by lamont
PID rewrite

Adds PIDLoop2 which is written more conventionally.

- exposes pterm, iterm and dterm for inspection
- trapezoidal integration/differentiation
- standard and parallel form setters
- separate out the deadbands for p, i, d and output
- proper tracking anti-windup
- first order reset element behavior (extended clegg integrator)

Also fixes bugs in the B and C options for 2DOF behavior.

Tweaks the BetterController to just be a cascade with a PI instead of
the PID, with a more aggressive integral term and no derivative.  Backed
off the p-term over what matlab recommended, because it made some
engines with too much gimbal way too twitchy still.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: cafcaa4)
The file was modified MechJebLib/ODE/AbstractRungeKutta.cs (diff)
The file was modified MechJeb2.sln.DotSettings (diff)
The file was modified MechJebLib/Control/PIDLoop.cs (diff)
The file was modified MechJebLib/ODE/AbstractIVP.cs (diff)
The file was modified MechJebLib/MechJebLib.csproj (diff)
The file was modified MechJebLibTest/ControlTests/PIDLoopTests.cs (diff)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
The file was addedMechJebLib/Control/IPIDLoop.cs
The file was modified MechJebLib/ODE/BS3.cs (diff)
The file was addedMechJebLib/Control/PIDLoop2.cs
Commit 029ba5501e8c64fcb2c92bab2602c803fd67d112 by siim.aaver
Add missing Profiler.EndSample()
(commit: 029ba55)
The file was modified MechJeb2/MechJebModuleCustomInfoWindow.cs (diff)
Commit 863a3786aebffefb1d58fe1360574392de75d709 by lamont
alglib upgrade to 4.03

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 863a378)
The file was modified alglib/optimization.cs (diff)
The file was modified alglib/alglibmisc.cs (diff)
The file was modified alglib/dataanalysis.cs (diff)
The file was modified alglib/alglibinternal.cs (diff)
The file was modified alglib/diffequations.cs (diff)
The file was modified alglib/linalg.cs (diff)
The file was modified alglib/statistics.cs (diff)
The file was modified alglib/interpolation.cs (diff)
The file was modified MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)
The file was modified alglib/fasttransforms.cs (diff)
The file was modified alglib/specialfunctions.cs (diff)
The file was modified .idea/.idea.MechJeb2/.idea/projectSettingsUpdater.xml (diff)
The file was modified alglib/integration.cs (diff)
The file was modified alglib/solvers.cs (diff)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
The file was modified alglib/ap.cs (diff)
Commit e9a2d95d673f283be3625ea9d6923fe1e0fc04fd by lamont
use genipm intead of ipm

ipm can fail on nonconvex problems, and i'm just guessing this needs
to be more robust.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: e9a2d95)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
Commit 2c0df94df343f32280cb1b27c7725edb2d6eed11 by lamont
Move some PVG logging to DEBUG-only

some unrelated auto-code reformatting which seems to have
been picked up by the new version of rider.  yay for
IDEs flailing on code cleanup rules.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 2c0df94)
The file was modified MechJebLib/PVG/Ascent.cs (diff)
The file was modified MechJebLib/Utils/Statics.cs (diff)
The file was modified MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJebLib/PVG/AscentBuilder.cs (diff)
Commit 23b28b6837fb6a14ec4fed292a51beeae97b09e7 by mrev1995
Fix PVG settings stage numbers

When multiple stages in the Δv stats window have the same KSP stage
number, the (unguided) and (optimize) labels get applied to the wrong
stage(s). This commit changes the window to apply the labels to the
stage with the correct KSP stage, which may not be the same as the index
in the vacStats list.

Fix #1920.
(commit: 23b28b6)
The file was modified MechJeb2/MechJebModuleAscentPVGSettingsMenu.cs (diff)
Commit b54372b006122a3aad5bc90d5380d01bb46427b5 by mrev1995
Only check for ullage on ModuleEnginesRF

When trying to check for ullage on a non-ModuleEnginesRF engine,
VesselState sets the reflection fields to null; this causes
the autostaging code to spam NREs and refuse to work.

This change makes sure that an engine is a (subclass of) ModuleEnginesRF
before trying to access the ullage field.
(commit: b54372b)
The file was modified MechJeb2/VesselState.cs (diff)
The file was modified MechJebLibBindings/ReflectionUtils.cs (diff)
The file was modified MechJeb2/PartExtensions.cs (diff)
Commit 83693bca387290c1c2edbf94521c3b882d75c096 by lamont
typo

closes #1908

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 83693bc)
The file was modified Localization/es-es.cfg (diff)
The file was modified Localization/en-us.cfg (diff)
Commit 30d949ad5ba911104d9b785cb2ef175840275e67 by lamont
RCS fuel flow fixes and missing last stage in the VAB

In the ALL_VESSEL checks, it needs to be looking at "PartsRemainingInStage"
rather than Vessel.Parts since the latter isn't updated as the Sim runs.

This also affects ModuleEngines as well, but typically engines don't use
ALL_VESSEL flow, so it seems like it affects RCS.

This also should fix bugs with the bottom stage being missing in the
VAB.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 30d949a)
The file was modified MechJebLib/FuelFlowSimulation/PartModules/SimModuleEngines.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/SimVessel.cs (diff)
The file was modified MechJebLib/Utils/DictOfLists.cs (diff)
The file was modified MechJebLibBindings/FuelFlowSimulation/SimVesselUpdater.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/DecouplingAnalyzer.cs (diff)
The file was modified MechJebLibBindings/FuelFlowSimulation/SimVesselBuilder.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/PartModules/SimModuleRCS.cs (diff)
Commit 804cca3e6d560559122ade14510406d3d07004c5 by lamont
revert back to previous current stage behavior

seems to cause actual issues in flight somehow.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 804cca3)
The file was modified MechJebLib/FuelFlowSimulation/DecouplingAnalyzer.cs (diff)
Commit 1014850c833221676f103134e951af9264fa5ac4 by lamont
FFS: always reset current stage if it is too high

The saved current stage can sometimes be too high, so always save it in
the updater if it is higher than the actual current stage.

Probably fixes some tick-to-tick bugs in KSP's staging where the builder
will get triggered and the stage hasn't been decremented yet.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 1014850)
The file was modified MechJebLib/FuelFlowSimulation/SimVessel.cs (diff)
The file was modified MechJebLibBindings/FuelFlowSimulation/SimVesselUpdater.cs (diff)
Commit 8ceb3f80916ac55a0651b9a1cc0f30d25d431b43 by lamont
Revert "revert back to previous current stage behavior"

Should re-fix adding back the missing stage in the VAB

This reverts commit 804cca3e6d560559122ade14510406d3d07004c5.
(commit: 8ceb3f8)
The file was modified MechJebLib/FuelFlowSimulation/DecouplingAnalyzer.cs (diff)
Commit 4cd92a2671188e9e1ab769f692e0c26177ac9fcc by lamont
Code cleanup in MJLib

Automated code cleanup, shouldn't change behavior.

Note that previous PR didn't trigger a build, so check that
one if the behavior changes in the build this lands in.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 4cd92a2)
The file was modified MechJebLib/FuelFlowSimulation/PartModules/SimModuleEngines.cs (diff)
The file was modified MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJebLib/PVG/Terminal/FlightPathAngle4Propellant.cs (diff)
The file was modified MechJebLib/Functions/Interpolants.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/DecouplingAnalyzer.cs (diff)
The file was modified MechJebLib/Maneuvers/TwoImpulseTransfer.cs (diff)
The file was modified MechJebLib/PVG/Phase.cs (diff)
The file was modified MechJebLib/Primitives/Q3.cs (diff)
The file was modified MechJebLib/Primitives/HBase.cs (diff)
The file was modified MechJebLib/Primitives/V3.cs (diff)
The file was modified MechJebLib/Control/PIDLoop2.cs (diff)
The file was modified MechJebLib/PVG/InputLayout.cs (diff)
The file was modified MechJebLib/Lambert/Gooding.cs (diff)
The file was modified MechJebLib/Control/PIDLoop.cs (diff)
The file was modified MechJebLib/PVG/Ascent.cs (diff)
The file was modified .editorconfig (diff)
The file was modified MechJebLib/PVG/Terminal/Kepler3Reduced.cs (diff)
The file was modified MechJebLib/PVG/Optimizer.cs (diff)
The file was modified MechJebLib/Lambert/Izzo.cs (diff)
The file was modified MechJebLib/PVG/Terminal/FlightPathAngle4Reduced.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/SimVessel.cs (diff)
The file was modified MechJebLib/PVG/Terminal/FlightPathAngle3Energy.cs (diff)
The file was modified MechJebLib/ODE/AbstractIVP.cs (diff)
The file was modified MechJebLib/Utils/BackgroundJob.cs (diff)
The file was modified MechJebLib/Primitives/M3.cs (diff)
The file was modified MechJebLib/TwoBody/Shepperd.cs (diff)
The file was modified MechJebLib/Maneuvers/Simple.cs (diff)
The file was modified MechJebLib/Functions/Astro.cs (diff)
The file was modified MechJebLib/Maneuvers/ReturnFromMoon.cs (diff)
The file was modified MechJebLib/Utils/Statics.cs (diff)
The file was modified MechJebLib/PVG/AscentBuilder.cs (diff)
The file was modified MechJebLib/PVG/Terminal/Kepler5Reduced.cs (diff)
The file was modified MechJebLib/ODE/AbstractRungeKutta.cs (diff)
The file was modified MechJebLib/ODE/DP8.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/FuelFlowSimulation.cs (diff)
The file was modified MechJebLib/PVG/OutputLayout.cs (diff)
The file was modified MechJebLib/PVG/Terminal/FlightPathAngle5Reduced.cs (diff)
The file was modified MechJebLib/ODE/BS3.cs (diff)
The file was modified MechJebLib/Primitives/Scale.cs (diff)
The file was modified MechJebLib/FunctionImpls/RealSingleImpulseHyperbolicBurn.cs (diff)
The file was modified MechJebLib/PVG/Integrators/VacuumThrustAnalytic.cs (diff)
The file was modified MechJebLib/TwoBody/Farnocchia.cs (diff)
The file was modified MechJebLib/PVG/Terminal/Kepler4Reduced.cs (diff)
The file was modified MechJebLib/Rootfinding/BrentRoot.cs (diff)
The file was modified MechJebLib/Functions/Angles.cs (diff)
The file was modified MechJebLib/Minimization/BrentMin.cs (diff)
The file was modified MechJebLib/Maneuvers/ChangeOrbitalElement.cs (diff)
The file was modified MechJebLib/PVG/Integrators/VacuumThrustIntegrator.cs (diff)
The file was modified MechJebLib/ODE/DP5.cs (diff)
The file was modified MechJebLib/FuelFlowSimulation/PartModules/SimModuleRCS.cs (diff)
The file was modified MechJebLib/Rootfinding/Newton.cs (diff)
Commit 2570ac47095e759bcf3687186e36e841baafabc9 by lamont
More code cleanup and editorconfig tweaks

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 2570ac4)
The file was modified MechJebLibTest/PVGTests/AscentTests/TheStandardTests.cs (diff)
The file was modified MechJebLibTest/TwoBodyTests/FarnocchiaTests.cs (diff)
The file was modified .gitignore (diff)
The file was modified MechJebLibTest/ControlTests/PIDLoopTests.cs (diff)
The file was modified MechJebLibTest/ManeuversTests/Simple.cs (diff)
The file was modified MechJebLibTest/LambertTests/GoodingTests.cs (diff)
The file was modified MechJebLibTest/ManeuversTests/ChangeOrbitalElementTests.cs (diff)
The file was modified MechJebLibTest/Structs/M3Tests.cs (diff)
The file was modified MechJebLibTest/Structs/Q3Tests.cs (diff)
The file was modified MechJebLibTest/ODETests/BS3Tests.c.cs (diff)
The file was modified MechJebLibTest/PVGTests/AscentTests/Titan2Tests.cs (diff)
The file was modified MechJebLibTest/FunctionsTests.cs (diff)
The file was modified MechJebLibTest/PVGTests/AscentTests/BuggyTests.cs (diff)
The file was modified MechJebLibTest/ManeuversTests/ReturnFromMoonTests.cs (diff)
The file was modified MechJebLibTest/PVGTests/Integrators/VacuumCoastAnalyticTests.cs (diff)
The file was modified MechJebLibTest/ManeuversTests/TwoImpulseTransferTests.cs (diff)
The file was modified MechJebLibTest/ODETests/DP5Tests.cs (diff)
The file was modified MechJebLibTest/TwoBodyTests/ShepperdTests.cs (diff)
The file was modified MechJebLibTest/Structs/V3Tests.cs (diff)
The file was modified MechJebLibTest/PVGTests/Integrators/VacuumThrustIntegratorTests.cs (diff)
The file was modified .editorconfig (diff)
The file was modified MechJebLib/PVG/Ascent.cs (diff)
Commit 1b37703681a4b78e9a88e480f69478006d11f7aa by lamont
PVG needs to immediately autostage

- PVG was not immediately staging and was obying autostagePreDelay but
  would never call Stage() again, and we don't want that behavior.

- The autostagePreDelay setting of 0 didn't work to immediately stage.
  Changed things around so that in the same tick that countingDown is
  set to true that it can autostage if the conditions are met and
  changed '>' to '>=' so that zero would match and fire.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 1b37703)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
Commit b37d7b344568991c01ef2094efa58a7db6bb2a05 by lamont
Also kill throttle before autostaging in PVG

Keeps the previous stage from trying to ride up your ass the rest of the
way to orbit...

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: b37d7b3)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
Commit 1eba9de0841e1701908be76b96496c51432f15f4 by mrev1995
Only ever insert one coast

When the current stage (in case of 'coast before') or the next stage (in
case of 'coast after') occurs multiple times in the stage stats, PVG
inserts a coast before/after _each_ of them. This should not happen,
there should only ever be one coast stage.
(commit: 1eba9de)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
Commit 8824457849e1fcd8acce753d9fc9b91eef937301 by mrev1995
Fix coasts after the early shutoff stage

When a coast is inserted immediately after the "Early shutoff stage",
RCS does not get enabled and the `StartCoast` variable doesn't get set;
this means that the coast time does not tick down.

This patch makes it so both those things do get done when starting the
coast after the early shutoff stage.
(commit: 8824457)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
Commit fecb43422c245cfb57678da7d66ef5458a5708c0 by lamont
upgrade alglib to 4.04

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: fecb434)
The file was modified alglib/dataanalysis.cs (diff)
The file was modified alglib/fasttransforms.cs (diff)
The file was modified alglib/optimization.cs (diff)
The file was modified alglib/specialfunctions.cs (diff)
The file was modified alglib/linalg.cs (diff)
The file was modified alglib/alglibinternal.cs (diff)
The file was modified alglib/integration.cs (diff)
The file was modified alglib/ap.cs (diff)
The file was modified alglib/solvers.cs (diff)
The file was modified alglib/alglibmisc.cs (diff)
The file was modified alglib/statistics.cs (diff)
The file was modified alglib/diffequations.cs (diff)
The file was modified alglib/interpolation.cs (diff)
Commit 5f213f66a33c80eb4d1b91abd20b1e70de40c282 by mrev1995
Fix a problem where coast time doesn't count down

When 'Coast after' is checked, the kspStage inside the loop is one past
the vessel's current stage. Similarly, if autostaging hasn't staged to
the point where the vessel's current stage is the coast stage, then this
check will also fail. In either case the coast time will not tick
down.

If we are coasting, then the timers should always be ticking down,
whatever the current stage happens to be. Therefore, the
Vessel.currentStage check is unnecessary.
(commit: 5f213f6)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
Commit 0857eac9338de80d224653ad1f226f0adb99f3ed by lamont
Fix thrustForward calc for hotstaging

Try to fix the behavior during hotstaging discovered in:

https://github.com/MuMech/MechJeb2/issues/1943#issuecomment-2813979955

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 0857eac)
The file was modified MechJeb2/VesselState.cs (diff)
Commit ff69e9322e2676bb63cfc841513fd6fe6def0292 by lamont
Fix Suicide Burntime calculation

This is an analytic function (inside a root solver) which assumes
constant twr and flat constant surface gravity.

It will not be perfect, but it should be 'safe' in that if you
start your burn before zero you should not collide with the surface.

It tries to accurately predict the height of the terrain at the predicted
downrange burnout point, but extremely rugged terrain (e.g. cliffs)
may void this warranty.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: ff69e93)
The file was modified MechJebLib/Functions/Astro.cs (diff)
The file was modified MechJeb2/MechJebModuleWarpHelper.cs (diff)
The file was modified MechJeb2/OrbitExtensions.cs (diff)
The file was modified MechJebLibTest/FunctionsTests.cs (diff)
The file was modified MechJeb2/MechJebModuleInfoItems.cs (diff)
The file was modified MechJeb2/VesselState.cs (diff)
The file was modified MechJeb2.sln.DotSettings (diff)
The file was modified MechJebLib/MechJebLib.csproj (diff)
The file was modified MechJebLib/Rootfinding/BrentRoot.cs (diff)
The file was modified .idea/.idea.MechJeb2/.idea/projectSettingsUpdater.xml (diff)
The file was addedMechJebLib/FunctionImpls/RealSuicideBurnCalc.cs
Commit 157e56700bf28bf5dabb87ab9d09c817c091a69a by lamont
Average initial and final gravity in suicide burn calc

Should still be conservative and help a little.

Also starts to thread the previous value in as the next
guess, but nothing is done with that value yet.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 157e567)
The file was modified MechJeb2/OrbitExtensions.cs (diff)
The file was modified MechJebLib/Functions/Astro.cs (diff)
The file was modified MechJebLib/FunctionImpls/RealSuicideBurnCalc.cs (diff)
The file was modified MechJeb2/VesselState.cs (diff)
Commit c46dc9d9a38dd1829f55ee4cb5877ef1655bce1c by lamont
restore pid settings to before cafcaa40c1bd3e01283d2970d70e8480267fb48e

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: c46dc9d)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
Commit 7e3c445b0a5392ada0b5ee39ce8b2b107c623645 by lamont
fix builds

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 7e3c445)
The file was modified MechJebLib/FunctionImpls/RealSuicideBurnCalc.cs (diff)
The file was modified MechJebLib/Functions/Astro.cs (diff)
Commit d93db20f4d6942944f760ee538a11b3f3b3bd12c by lamont
better gate terminal_staging

this should only be used when in an optimized stage that isn't the
upper stage of the rocket (more un-optimized, probably unguided stages
sitting on top of a smarter booster with cutout logic).

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: d93db20)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
Commit 86deab4c5a09b7aa424d19ae4451084d474ed4fd by lamont
tweak thrust-fault early termination issue

only end guidance early due to lack of thrust in the last stage

should allow staging during terminal guidance.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 86deab4)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
Commit 060ef0a5bec4df43ccd26dca26b6b38ad4663a95 by lamont
Revert "restore pid settings to before cafcaa40c1bd3e01283d2970d70e8480267fb48e"

This reverts commit c46dc9d9a38dd1829f55ee4cb5877ef1655bce1c.
(commit: 060ef0a)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
Commit 28031c3f86becbfea253d50253802566a2432ece by lamont
re-revert the pid tuning values

i think less stiff is probably the better direction

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 28031c3)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
Commit 1d5e71f7b38fc75c12b989aaee77db1140d28058 by lamont
Fix classic launch inclination

I don't know what I thought I was doing in the Launch inclination stuff,
but this mostly fixes it.  It drives the inclination error to zero as
the vgo to raise the apoapsis goes to zero via proportional steering.

There still needs to be some terminal guidance handling, right now it
gets all weird and spinny as the dv goes to zero.

Needs to have the AoA limiter turned off or the fadeout very high for
accuracy.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 1d5e71f)
The file was modified MechJebLib/FunctionImpls/RealDeltaVToChangeApoapsisPrograde.cs (diff)
The file was modified MechJebLib/Maneuvers/Simple.cs (diff)
The file was modified MechJeb2/OrbitalManeuverCalculator.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
Commit e3e631e5495f151b5fa7e1f9f19d2efe42331788 by lamont
continually reset pids on the launch pad

Kinda hacky to do this in the staging controller, but that is
where we control releasing launch clamps.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: e3e631e)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
Commit d63a6fe4b3a4e0731baf6ae98b219de97a2fb7f2 by lamont
Stock ascent cleanup and fixes

Now follows prograde to orbit (better for applying dribble thrust
to compensate for drag without changing the inclination)

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: d63a6fe)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicAutopilot.cs (diff)
Commit 6f6f0f0525ac572722190cc46502f0c7dc13e76e by lamont
prevent PID windup during PVG staging/spoolup

if we're supposed to have engines on (burning/terminal) but the
thrust is below minimum thrust, then flush the pids to prevent
integral windup.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 6f6f0f0)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
Commit 97688b2af2f6bee28e572279cb9a2f2eec3688d8 by lamont
Add a little margin to the antiwindup in the PVG controller

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 97688b2)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
Commit fbeb9ec760fb7a520a7a683ff026931733baeb3d by lamont
properly freeze ascent in stock guidance

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: fbeb9ec)
The file was modified MechJeb2/MechJebModuleAscentClassicAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
Commit 62b9399ff4cb664f34b87e87724f621e395032fe by lamont
simplify+fix classic ascent corrective steering

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 62b9399)
The file was modified MechJeb2/MechJebModuleAscentClassicAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentSettings.cs (diff)
Commit 6a0dcb085eef719e44934d4928f032db6bf67a3c by lamont
fix staging during terminal properly

this check actually fires at the start of the next stage, so
needs to be gated by current < last.

this makes me think we really need a check that we don't
stage past the last stage ever, if i didn't already add that
somewhere, mostly making this check redundant now.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 6a0dcb0)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
Commit 07f7f2cc1aa57136859a9b29f562a9bfd91f1613 by lamont
Fix PVG roll wiggles on vertical ascent

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 07f7f2c)
The file was modified MechJeb2/MechJebModuleAscentClassicAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
Commit 1b951575c91f7eef41cde01949458ab7d5fcfbb1 by lamont
Update BetterController to have a real PID for the position

This will allow adding an integral term to the pos PID, and
possibly a 2DOF PID there.

This shouldn't change much behavior, all the PID settings are
the same.

I snuck in a TorqueSmooth tunable which is a low pass filter over
the torque from VesselState which can help with wiggles from
control surfaces near the edge of the atmosphere (KSP and/or
FAR is doing something weird).

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 1b95157)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
The file was modified MechJebLib/Control/PIDLoop2.cs (diff)
Commit 827317b0d5a0c30a9180ee809fb29819b7d4c2b9 by lamont
Make some BetterController output more readable

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 827317b)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
The file was modified MechJeb2/MuUtils.cs (diff)
Commit e76b3233ba7217214e716196039de5f374a575da by lamont
Launch Ascent tweaks

- flushes the pos pid state now in better controller on reset
- flushes state if we have no axis control or actuation
- sets actuation to zero under conditions when we flush
- adds angular deviation to "Stable Guidance" message
- fixes some bugs i introduced in the roll control on ascent
- bypasses the AoA limters for the pitchover maneuver
  (allows Qα-limit of zero again)

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: e76b323)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleGuidanceController.cs (diff)
The file was modified MechJebLib/PVG/Solution.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentClassicAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
Commit f02077c9deaca6a3593a83d524909b5435d081c2 by lamont
Don't constantly reset the BetterController PID

Attitude changes are resetting the PID and dumping the integrator.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: f02077c)
The file was modified MechJeb2/MechJebModuleAttitudeController.cs (diff)
Commit cfc5e8df88491033eb2234e47ab2ad8a8197cf26 by lamont
code cleanup and a couple comments

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: cfc5e8d)
The file was modified MechJeb2.sln.DotSettings (diff)
The file was modified MechJebLib/Control/PIDLoop2.cs (diff)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
Commit 3de2f785eb270138f734992b8e87335db270a57e by lamont
Convert attitude controllers to QuaternionD

doubt it makes a difference, though, when the spacecraft attitude has
to be a Quaternion in KSP...

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 3de2f78)
The file was modified MechJeb2/AttitudeControllers/KosAttitudeController.cs (diff)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
The file was modified MechJeb2/AttitudeControllers/HybridController.cs (diff)
The file was modified MechJeb2/AttitudeControllers/MJAttitudeController.cs (diff)
The file was modified MechJeb2/MechJebModuleAttitudeController.cs (diff)
Commit ecedc86bd9403b06429409b0e2b964d9c6726e83 by lamont
implement still-missing QuaternionD functions

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: ecedc86)
The file was modified MechJeb2/AttitudeControllers/KosAttitudeController.cs (diff)
The file was modified MechJeb2/AttitudeControllers/HybridController.cs (diff)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
The file was modified MechJeb2/MathExtensions.cs (diff)
The file was modified MechJeb2/MechJebModuleAttitudeController.cs (diff)
Commit 8856a35220c8cf557fb40f07f2190559afd13e54 by lamont
Reformat and cleanup of attitude controllers

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 8856a35)
The file was modified MechJeb2/AttitudeControllers/KosPIDLoop.cs (diff)
The file was modified MechJeb2/AttitudeControllers/KosAttitudeController.cs (diff)
The file was modified MechJeb2/AttitudeControllers/MJAttitudeController.cs (diff)
The file was modified MechJeb2/MechJebModuleAttitudeController.cs (diff)
The file was modified MechJeb2/AttitudeControllers/HybridController.cs (diff)
Commit 5e920def6bdf12e4d6832948e277ee283704b969 by mrev1995
Fix saving and loading of vessel-specific settings

When loading a craft file in the Editor, there's no vessel name
available; thus, all vessel-specific settings (those with persistent
pass TYPE) get loaded at their default values. A few seconds later,
those get saved (with the ship name at the top of the screen),
overwriting any previously vessel-specific settings with their default
values.

Since there's no way to get a ship name in the OnLoad method (it gets
called before the Editor has set the name from the .craft file), the
best option is to simply not save the settings from inside the editor at
all.
(commit: 5e920de)
The file was modified MechJeb2/MechJebCore.cs (diff)
Commit dd5be240fbd3b0195083cb841b252024c4dfc512 by lamont
Add Vector3d Slerp/Lerp methods

Fixes #1970 and the errors that are in that report

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: dd5be24)
The file was modified MechJeb2/MathExtensions.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
Commit f527fad64d7825df829e6402cb9049bbcce558e1 by lamont
Add DirectionTracker and wire it up to BetterController

The DirectionTracker is my attempt to solve the problem of splitting
up desired vs current pitch/yaw/roll so that I can implement LQRs and
2DOF PID controllers.  It attempts to track small tick-to-tick
deltas and use them to accumulate a value which will not suffer from
gimbal lock issues or 2pi wraparound issues.  When the controller axis
is reset then in addition to clobbering the PID integral states, it also
zeros the DirectionTracker.  Since the error calc is still mathematically
identical at the end of the day it really shouldn't change the
BetterController much (i hope).

This also adds an LQR based controller which is just a proof of concept
that I can actually wire up an LQR controller.  It also uses the
DirectionTracker.  It does not usably fly a rocket in its current form.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: f527fad)
The file was modified MechJebLib/MechJebLib.csproj (diff)
The file was addedMechJeb2/AttitudeControllers/LQRController.cs
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
The file was addedMechJebLib/Control/LQRLoop1.cs
The file was addedMechJebLib/Control/MultiVariableGrid.cs
The file was modified MechJeb2/MechJebModuleAttitudeAdjustment.cs (diff)
The file was addedMechJeb2/AttitudeControllers/DirectionTracker.cs
The file was modified MechJeb2/MechJeb2.csproj (diff)
The file was addedMechJebLib/Control/MultiVariableInterpolator.cs
The file was modified MechJeb2.sln.DotSettings (diff)
The file was modified MechJebLib/Primitives/M3.cs (diff)
The file was modified MechJeb2/MechJebModuleAttitudeController.cs (diff)
Commit 29791bdfb8ada8cee42da88df5fd39f5021bb5df by lamont
Run Qα limiter during pitch program again

This reverts to previous behavior.

I tried fixing it so that zero Qα would work, but that would
take more detailed patch to bypass Qα during initiation, but
not pitchover, being careful that it would be smooth and not
ratchet (so it would initiate by 3 degrees or so, but
then not apply a zero Qα limit and try to go back to nearly vertical,
etc).

Didn't have an actual bug to fix that behavior, so the bugs the
fix introduced and got reported were worse.
(commit: 29791bd)
The file was modified MechJeb2/MechJebModuleAscentBaseAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleAscentPVGAutopilot.cs (diff)
Commit 9373fb9bf2d7ac6d70acdd92f9ed0adb478a08f7 by lamont
remove some logspam

debugging got committed

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 9373fb9)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
Commit ac1eac4ff4793a5a74c6f785712e33df9f0831e7 by mrev1995
Ignore un-stageable parts

Parts like aerodynamic fins and fuel tanks are never stageable, but they
still have an assigned `inverseStage`. Those parts should be ignored
when checking whether all parts in a stage have some particular
property.

Will probably fix fairings "randomly" failing to stage correctly on some
vessels.
(commit: ac1eac4)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
Commit 43f504159377358294a370f4070907e3abecfffc by noreply
Update issue templates

Github randomly broke the template. #1987
(commit: 43f5041)
The file was added.github/ISSUE_TEMPLATE/bug-report.md
The file was added.github/ISSUE_TEMPLATE/help-using-mechjeb-or-ksp.md
The file was added.github/ISSUE_TEMPLATE/new-ksp-version-support.md
The file was added.github/ISSUE_TEMPLATE/localization-issues.md
Commit 2c93915945086c2f93558a4461dac75927de2998 by noreply
Delete .github/ISSUE_TEMPLATE/BUG_REPORT.md
(commit: 2c93915)
The file was removed.github/ISSUE_TEMPLATE/BUG_REPORT.md
Commit 21c297359a3ca756dbadd53d2f2970aa695adebc by noreply
Delete .github/ISSUE_TEMPLATE/HELP_REQUEST.md
(commit: 21c2973)
The file was removed.github/ISSUE_TEMPLATE/HELP_REQUEST.md
Commit 860cef861d870778265e2c0228288e24c8a2f3cd by noreply
Delete .github/ISSUE_TEMPLATE/LOCALIZATION_SUPPORT.md
(commit: 860cef8)
The file was removed.github/ISSUE_TEMPLATE/LOCALIZATION_SUPPORT.md
Commit cf60419cb220a91610cbec4978647eda93b15aff by noreply
Delete .github/ISSUE_TEMPLATE/NEW_KSP_VERSION_SUPPORT.md
(commit: cf60419)
The file was removed.github/ISSUE_TEMPLATE/NEW_KSP_VERSION_SUPPORT.md
Commit 79fd6eab81a8e9ac7e5ee47cc7b1065ce46e51c1 by mrev1995
Some more stage numbering fixes

Similar to #1922
(commit: 79fd6ea)
The file was modified MechJeb2/MechJebModulePVGGlueBall.cs (diff)
Commit 7533747f3c482b23b24b52cb6e27502bc2c62f65 by lamont
Update bettercontroller tuning

- velocity pid now outputs angular accel instead of actuation
- removed buggy compensation for higher warp [KSPs own crazy tweaking of
  gimbal rate seems to compensate fairly well for higher warp]
- tuned bandwidth of the PIDs down significantly (4 rad/sec for inner, 1
  rad/sec for outer) with reference-tracking focus and highest phase
  margins [which produces minimal overshoot for snappy RCS, while
  keeping the PIDs from being too snappy for slow gimbals]
- design was done against a no-actuator-delay/no-gimbal system (RCS/RW),
  with the slow bandwith being the tuning for possible delay.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 7533747)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
Commit 6bfabbb19f7563c38da15ad367b827bc91d3908c by lamont
Get the gimbal rate into the vessel state

PIDs don't use it yet.

I'm very uncertain that I'm doing this correctly for the control
surface, but it works correctly for gimbals, RCS, and RW.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 6bfabbb)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
The file was modified MechJeb2/VesselState.cs (diff)
Commit badd66c31f1a7b0777049fe272a15cc42cffc619 by lamont
better controller better ui

layout the pid controller tunables in a grid to save some
vertical space.

first order reset element tunable went away, i just couldn't
quite be bothered to figure out the layout

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: badd66c)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
Commit 999de9e42063f76852e8b9650888e3f30407cf04 by lamont
Minor BetterController tweaks

- remove the deadband, i don't think it was necessary
- remove the FORE support and just go back to clegg
- enable clegg for position
- other minor menu tweaks

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 999de9e)
The file was modified MechJebLib/Control/PIDLoop2.cs (diff)
The file was modified MechJebLibTest/ControlTests/PIDLoopTests.cs (diff)
The file was modified MechJeb2/AttitudeControllers/BetterController.cs (diff)
Commit 6aef8332f614d65055bd09c2a0dd74eccf4aefbc by stijnreclame
Prevent DecelerationBurn from setting the throttle to 0 after PDI
Prevent FinalDescent from warping (this kills the craft)
(commit: 6aef833)
The file was modified MechJeb2/LandingAutopilot/DecelerationBurn.cs (diff)
The file was modified MechJeb2/LandingAutopilot/FinalDescent.cs (diff)
Commit a30d52a1785f6ddf0f36df1792a9e76504796b88 by stijnreclame
Change braking burn end altitude to 200m
Change various throttle settings to 0.01F to prevent full engine shutdown.
(commit: a30d52a)
The file was modified MechJeb2/LandingAutopilot/KillHorizontalVelocity.cs (diff)
The file was modified MechJeb2/LandingAutopilot/DecelerationBurn.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingAutopilot.cs (diff)
Commit 94dbb19c33539234845d8639ff4f5a52877097e5 by stijnreclame
Deceleration burn warp fixes
Plane change and deorbit burn throttle fixes
(commit: 94dbb19)
The file was modified MechJeb2/LandingAutopilot/DecelerationBurn.cs (diff)
The file was modified MechJeb2/LandingAutopilot/PlaneChange.cs (diff)
The file was modified MechJeb2/LandingAutopilot/FinalDescent.cs (diff)
The file was modified MechJeb2/LandingAutopilot/LowDeorbitBurn.cs (diff)
Commit 8f6728bc835b19832697ade8d3f11f50ce6aa8c8 by stijnreclame
Only warp when angular velocity is near zero
Try to prevent final descent from commanding zero throttle
Added idea about skipping deorbitburn step.
(commit: 8f6728b)
The file was modified MechJeb2/LandingAutopilot/FinalDescent.cs (diff)
The file was modified MechJeb2/LandingAutopilot/PlaneChange.cs (diff)
The file was modified MechJeb2/LandingAutopilot/LowDeorbitBurn.cs (diff)
Commit ea9a5639eabef8262ba43b4c51b458b32f3b58c2 by stijnreclame
Attempt to prevent full engine shutdown during vertical final descent.
(commit: ea9a563)
The file was modified MechJeb2/LandingAutopilot/FinalDescent.cs (diff)
Commit 8d974b484d5b13e7cdbbc79af2bf576ea44edd0f by stijnreclame
Make min throttle limiter follow global min throttle limiter
Required helper function to keep the code neater.
(commit: 8d974b4)
The file was modified MechJeb2/LandingAutopilot/FinalDescent.cs (diff)
The file was modified MechJeb2/LandingAutopilot/KillHorizontalVelocity.cs (diff)
The file was modified MechJeb2/LandingAutopilot/PlaneChange.cs (diff)
The file was modified MechJeb2/LandingAutopilot/LowDeorbitBurn.cs (diff)
The file was modified MechJeb2/LandingAutopilot/DecelerationBurn.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingAutopilot.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingGuidance.cs (diff)
Commit d23e55e46c758dbd19c5504b6e09b3dbcd9c3db1 by stijnreclame
Fix for attitude excursion in vertical descent
(commit: d23e55e)
The file was modified MechJeb2/LandingAutopilot/FinalDescent.cs (diff)
Commit 424d5ed3ae2180e1b25f4b08f4f25a055d7f1f67 by lamont
Add a fudge factor for control surface response

Still not using these factors yet.  This makes the effective
gimbalResponseSpeed of a typical flap about 16.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 424d5ed)
The file was modified MechJeb2/VesselState.cs (diff)
Commit f8b777dac084920d27da4af12dca1ac5fec40a94 by lamont
Better Test for V3 APIs

- fixes overflow bug in ClampMagnitude()
(commit: f8b777d)
The file was addedMechJebLibTest/Primitives/M3Tests.cs
The file was removedMechJebLibTest/Structs/V3Tests.cs
The file was addedMechJebLibTest/Primitives/V3Tests.cs
The file was removedMechJebLibTest/Structs/Q3Tests.cs
The file was modified MechJebLib/Primitives/V3.cs (diff)
The file was addedMechJebLibTest/Primitives/V3Tests/ConstructorAccessorTests.cs
The file was removedMechJebLibTest/Structs/M3Tests.cs
The file was addedMechJebLibTest/Primitives/Q3Tests.cs
The file was addedMechJebLibTest/Primitives/V3Tests/MagnitudeNormalizationTests.cs
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
The file was addedMechJebLibTest/Primitives/HTests.cs
The file was removedMechJebLibTest/Structs/HTests.cs
The file was addedMechJebLibTest/Primitives/V3Tests/ConstantDirectionalVectorTests.cs
Commit 439096b9288ac12c6c21c1bad85076c479fc1aa2 by lamont
Add V3 tests for the component analysis APIs

Fixes a slight ordering issue and now on a tie the lowest
index is always returned.  Shouldn't affect any existing
consumers.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 439096b)
The file was modified MechJebLib/Primitives/V3.cs (diff)
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
The file was modified MechJebLibTest/Primitives/V3Tests.cs (diff)
The file was modified MechJebLibTest/AssertionExtensions.cs (diff)
The file was addedMechJebLibTest/Primitives/V3Tests/ComponentAnalysisTests.cs
Commit d39820dfafbb9ba7110d92e24676ca741950c951 by lamont
Add RequestActiveThrottle() API to ThrustController

This is intended to be used by consumers when they want to
have a "burn" segment which can throttle down, but for RO/RF
the throttle must be kept over the minimum throttle at all
times to not waste an ignition.

The exiting min throttle setting only applies to the throttle
limiters, which limit max throttle (limiting how much the
throttle limiters can limit the throttle).  This API sets
a min limit on the requested throttle.

If the minimum throttle is set to zero, or if `allowZero` is
set to true then an explicit request of zero will cut the
throttle (e.g. for stock).  It would generally be better
to call `ThrustOff()` explicitly though rather than to use
`RequestActiveThrottle(0, allowZero: true)`.

At some point the codebase should probably have all uses
of `TargetThrottle = 0` changed to `ThrustOff()` and then
all remaining uses of `TargetThrottle = x` changed to
`RequestActiveThrottle(x, enforceMinimum: false)`.  Then the
latter could be tweaked as RO/RF bugs are found.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: d39820d)
The file was modified MechJeb2/MechJebModuleThrustController.cs (diff)
Commit e227003cd12282e5695632967522894a61c4b20b by stijnreclame
Attempt to implement new RequestActiveThrottle API.
Still had to bodge transspdact
(commit: e227003)
The file was modified MechJeb2/LandingAutopilot/FinalDescent.cs (diff)
The file was modified MechJeb2/LandingAutopilot/KillHorizontalVelocity.cs (diff)
The file was modified MechJeb2/MechJebModuleLandingAutopilot.cs (diff)
The file was modified MechJeb2/LandingAutopilot/DecelerationBurn.cs (diff)
The file was modified MechJeb2/LandingAutopilot/PlaneChange.cs (diff)
The file was modified MechJeb2/LandingAutopilot/LowDeorbitBurn.cs (diff)
The file was modified MechJeb2/LandingAutopilot/LowDeorbitBurn.cs (diff)
Commit b52c75288b7406c3650091f16c2159173d51587d by lamont
Add more V3 API tests

Also fixes some edge cases in Angle() and SignedAngle().

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: b52c752)
The file was addedMechJebLibTest/Primitives/V3Tests/ComponentOperationsTests.cs
The file was addedMechJebLibTest/Primitives/V3Tests/VectorMathOperationTests.cs
The file was modified MechJebLib/Primitives/V3.cs (diff)
The file was modified MechJebLibTest/AssertionExtensions.cs (diff)
The file was addedMechJebLibTest/Primitives/V3Tests/OperatorTests.cs
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
Commit b6e72388d6913d0cd3fdcf6ce9b7d3a48934a18e by stijnreclame
That's what I get for not even test compiling. Optional arguments don't work that way in C#
(commit: b6e7238)
The file was modified MechJeb2/LandingAutopilot/LowDeorbitBurn.cs (diff)
The file was modified MechJeb2/LandingAutopilot/LowDeorbitBurn.cs (diff)
Commit 50f9af505ab0d57fff6a98589073f4f49c7d2ec0 by lamont
Add tests for V3 sph2cart cart2sph and xzy

Fixes edge conditions in cart2sph

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 50f9af5)
The file was modified MechJebLib/Primitives/V3.cs (diff)
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
The file was addedMechJebLibTest/Primitives/V3Tests/CoordinateConversionTests.cs
Commit 891713d40d482e0c44590b92ba7d153240f2b183 by lamont
add some invalid value checking around SafeAsin/Acos and tests

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: 891713d)
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
The file was addedMechJebLibTest/Utils/StaticsTests/TrigonometryTests.cs
The file was modified MechJebLib/Utils/Statics.cs (diff)
Commit e63426be234bea2901f5f9400e400d2957b4fdf2 by lamont
Add more tests around V3 class

Should be 100% coverage now.

Also modifies the equality test to be real equality, NearlyEquals() is
the API that should be used for fuzzy testing.

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: e63426b)
The file was addedMechJebLibTest/Primitives/V3Tests/UtilityTests.cs
The file was modified MechJebLib/Primitives/V3.cs (diff)
The file was modified MechJebLibTest/AssertionExtensions.cs (diff)
The file was modified MechJebLibTest/MechJebLibTest.csproj (diff)
The file was addedMechJebLibTest/Primitives/V3Tests/EqualityHashingTests.cs
The file was addedMechJebLibTest/Primitives/V3Tests/StringRepresentationTests.cs
Commit 6a986a7fa08d723aac1abbc6677a6c030f610eb3 by stijnreclame
Changes to final descent guidance and throttle logic to fix attitude excursions.
(commit: 6a986a7)
The file was modified MechJeb2/LandingAutopilot/FinalDescent.cs (diff)
Commit f2ae9142160587ef3b09226a53f1b8ce0fe8e777 by lamont
Update alglib to 4.06

Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
(commit: f2ae914)
The file was modified alglib/solvers.cs (diff)
The file was modified alglib/alglib.csproj (diff)
The file was modified alglib/diffequations.cs (diff)
The file was modified alglib/statistics.cs (diff)
The file was modified alglib/fasttransforms.cs (diff)
The file was addedalglib/minlp.cs
The file was modified alglib/dataanalysis.cs (diff)
The file was modified alglib/integration.cs (diff)
The file was modified alglib/ap.cs (diff)
The file was modified alglib/alglibinternal.cs (diff)
The file was modified alglib/alglibmisc.cs (diff)
The file was modified alglib/optimization.cs (diff)
The file was modified alglib/specialfunctions.cs (diff)
The file was modified alglib/interpolation.cs (diff)
The file was modified alglib/linalg.cs (diff)
Commit d40ca8abc8ba97ebfd7f47d5e8f427bb3cb7779f by mrev1995
Fix hotstaging without Δv window open
(commit: d40ca8a)
The file was modified MechJeb2/MechJebModuleStagingController.cs (diff)
Commit 571fe4fa3f7d41d1c976139b980c5604ec6f072f by stijnreclame
Change the logic for speed control when in final descent below 300m with more than 5 m/s horizontal velocity.
Now actually keeps the engines on correctly instead of spamming them so hard they produce no thrust.
(commit: 571fe4f)
The file was modified MechJeb2/LandingAutopilot/FinalDescent.cs (diff)
Commit ed19fe756c326f54ea6dbeae857d13e4fb1cdeb6 by stijnreclame
Remove all throttling logic and just burn at full until the horizontal speed is sufficiently reduced.
(commit: ed19fe7)
The file was modified MechJeb2/LandingAutopilot/FinalDescent.cs (diff)
The file was modified MechJeb2/Properties/AssemblyInfo.cs (diff)