Jump to content

TheKraken2000

Members
  • Posts

    5
  • Joined

  • Last visited

Reputation

4 Neutral
  1. Thanks djungelorm for this great mod! I used it for learning my first programming language (Java). I created an library that could be seen as an extension to yours. Because this is the first real software I have created, it could be that it is an over engineered clusterlove, but its working, which is nice. If someone wants to try it -> here is the link to the source code and precomiled libraries and executables. It basically is an "autopilot" that can launch your vessel into an desired orbit around the planet. It also can be used as a library for other projects providing methods for getting the deltaV of any given stage, saving the current orbit of the vessel, automatic staging, formulas for calculating transfers, the mass, parts, burntime, and switching between true, mean and ecc anomaly and a lot more. For me it was just about testing what I could do, but in the end it's gotten bigger and bigger. If anybody has improvements or tips for me how I can improve my coding skills your feedback will be deeply appreciated!!!
  2. That would be a very simple test method: public void printOxidizer()throws IOException, RPCException { for(int i= vessel.getControl().getCurrentStage();i>=0;i--) { System.out.println("Stage: "+i+" Oxidizer: "+vessel.resourcesInDecoupleStage(i, false).amount("Oxidizer")); } } Using the Stock ComSat Lx Rocket I get this console log: Stage: 4 Oxidizer: 0.0 Stage: 3 Oxidizer: 0.0 Stage: 2 Oxidizer: 550.0 Stage: 1 Oxidizer: 0.0 Stage: 0 Oxidizer: 22.0 As you can see the log is telling me that stage 2 will decouple 550 Units of Oxidizer, but in reality it is stage 1 that will do it.
  3. I think I have found 2 errors in your mod with using Java. 1. The density() method needs not only a String, but also a Connection object. 2. The resourcesInDecoupleStage() Method is not returning the resources that are decoupled in the given stage, but the ones that decoupled in the stage-1
  4. It seems like the bottom half of the tutorial is broken again. At least for me. A few formulas are completly gone because the image containing them could not be found and we have this magicle variable ( Ejection Angle = 180° - ÃŽÂ) used to get the Ejection Angle. Other than that thank you for this great guide. It helped me a lot.
  5. Hi, I want to thank you for this great mod. Currently I am learning Java at school so most of the time my programming is based of trial and error. But even after a lot of testing I don't seem to get the output for the vessel speed working: no matter when I check it, it always gives "0.0" back. Here is the part of my code: public double getVerticalSpeed() throws IOException, RPCException, StreamException { this.surfaceReferenceFrame = vessel.getSurfaceReferenceFrame(); return flight.getVerticalSpeed(); } The methods getSpeed,getVerticalSpeed and getHorizontalSpeed are not working. Any clue what my failure could be? However the method getTrueAirSpeed() is working for me. Thanks in advance.
×
×
  • Create New...