Jump to content

Freshmeat

Members
  • Posts

    831
  • Joined

  • Last visited

Posts posted by Freshmeat

  1. Welcome around, and gratulations on the Mun orbit.

    VVI is IIRC vertical velocity.

    There is a lot of info unavailable in VesselData, including orbital parameters. But unless you are a college level physics student, you will find little use for the things omitted, if any at all. That being said, if you want to make your own autopilot, you will need it, and are probably better served with kRPC, or a combined KSPSerialIO/kRPC control panel.

  2. On 9/15/2019 at 1:48 AM, BamBam said:

    Is there a guide somewhere to how to add controls?  I am looking to add other stuff over time...  3-axis joysticks for rotation and translation, a couple of Nextion displays, etc....  I have some sample code from other peoples projects for comparisons, but i dont think i can do much copy and paste without screwing things up....

     

    baby steps / walk before you run / that sort of thing.

     

    I am using the Arduino sketch posted on /r/kerbalcontrollers by a guy who goes by wurmi00 because i want to use the nextion display setup that he did.  However, i am not getting any response from the plugin that way.

    I think i need some config help.  I may be using a mismatched version of the plugin or something.  The arduino lights blink showing that data is tx and rx.  but not all that fast,.   When i run the demo code, things work and that light blinks really rapidly.  Any input is welcome.

    First of all, welcome around controller building.

    It is a bit hard for me to understand what your problem is, but if I understand correctly, the demo code runs, but not your own code. To help, we will need to see you own code. Please, do not paste it in a post, but upload it to somewhere we can download and look. I do recall wurmis name, but not any particulars of his project. If it is old, you might have to update the VesselData and ControlPacket structs with the new entries. Also, a sketch is keyed to a specific hardware setup, so unless you have the exact equivalent setup and wiring the sketch will not do anything useful.

  3. @Tabb

    It would definitely tell what your code think the control state is. However, if you change vessels, it might be out of sync.

    In the VesselData struct, look for the UInt16 ActionGroups (VData.ActionGroups if you program looks anything like most here), it holds RCS status in second bit. However, the order of ActionGroups is not the same as MainControls, so you need to take care not using the RCS alias. I would go

    #define RCSSTATE 15

    And your check could be

    if (getMainControls(RCSSTATE) == 0) {

    With getMainControls defined as below:

    byte getMainControls(byte m) {
      return VData.ActionGroups == (1 << m);
    }
  4. @Fraktal: Have you tried making a taildragger? I am a poor plane pilot be most standards, but I find the early planes being much easier to land with two wide wheels in front and a small wheel in the rear. The other difference is that I do not use multiple science containers, while you do not get every single point of science, it is often enough to have just one.

  5. A and hardly surprising small observation: While trying to make additions to my client, I crashed it quite a lot. After a while, KSP (1.6.1) started stuttering. I installed MemGraph, and allocated a bunch of ram, only for the stutter to return after several more crashes. Turning off kRPC and turning it on again in game freed a lot of ram and stopped the stuttering, so it might be that the mod does not handle crashed connections all that well. Is there a time out on connections?

    Anyway, the workaround is really simple, so it is probably not worth investing time into. This is more of a heads up for other people having the same problem.

  6. On 4/18/2019 at 12:48 AM, Francois said:

    Here's an early design when I was thinking of sending a cad file to mill a piece of aluminium or 3d print it: https://imgur.com/a/OcbRLRd

    I picked the motors based on torque, size and rough calculation of the moment of inertia of the whole thing, which led me to those single shaft ones. Also, since there are two, it will more balanced.

    Right now, I'm trying to fit the second one with the beveled gears withing that 100mm space, it's quite challenging, especially considering that I'm new to the DIY world and that I don't have many tools.

    Checking the torque will mostly be seeing how I can play with the rate of acceleration I think. I first want to see if the whole things moves once assembled, and then at what speed.

    I had a bit difficulty understanding the image, but I think I get it now. I would probably get a 3d print first if I where you, to see if it works out before getting a milled piece, my guess is that it will be hideously expensive.

    Have you considered a 120 mm ball if space is a problem? My experience is that things always ending up taking a bit more space than you plan on a drawing.

  7. @EccentricTea Same happened to me, should have thought about that as well when I tried to help. A lot of functions only need updating every second,. I used to do it on 250ms rolling updates, spreading the computationally expensive updates even (Arduinos are not exactly found of trigonometry). BTW, do you have any pictures of your console? I am rather intrigued by now.

  8. Thanks for the warning. I do not use GEP at all, as I wanted to do a bit of exploration in the Ciro system before considering moving on, thus keeping the old Scatterer (high tides included at no extra cost). Unfortunately, it turns out it was not Kerbal Health that caused the crash. If I find a reliably way of reproducing it and/or the conflicting mod, I will make a proper bug report at appropriate places.

  9. And finally I think I figured why gpp kept crashing on me. I have tried all kinds of mods, but having 30+ it was very much trial and error and little hope for my very limited playtime, and logs gave me little to work with. Then I saw that you had added a kerbal health config, and once I removed that mod a couple of tests went fine. I guess that I should have read the fine print about per planet radiation configs.

    Anyway, thanks for updating, I hope I now finally can start playing in earnest.

  10. @c4ooo: Thanks for clarifying. I want to have an alarm going off whenever I deviate to much from prograde as my constructions are not always that aerodynamically stable.

    BTW @zitronen: Why in the range from -360 to 360 instead of -180 to 180? I can perfectly live with it, but it seems like a strange choice.

    The word normal is a funny one. In math, it is the perpendicular, but in everyday use, it is what is expected, hence my confusion.

  11. First of all, thank you for keeping the mod alive. I have spent literally hundreds of hours building control panels, and learned everything I know about electronics and microcontrollers due to this plugin, knowledge that turned out handy in my job as well.

    Second, just to be sure: When you are flying prograde, your VData.ProgradePitch will have same value as VData.Pitch, right? Then you have just solved a thorn in my code as the data I could get from kRPC was troublesome.

    Third, I am not certain what you mean by NormalHeading value. How does it differ from Heading?

    Fourth: Welcome back to the explody rockets.

  12. Chiming in on the overtime, it would be sweet if it had a spillover to Kerbal Health, taxing the overtime in HP (1/30 mins would be a real danger quickly). Actually, if you really wanted to make me happy, make it so you manage the crew rotation on active ships not in timewarp: I can choose to relieve Jeb, or make him bit the bullet and suffer through, until he can get a long R&R.

  13. On 3/22/2019 at 12:14 PM, BenjaminVonBraun said:

    Hi, I am desiging a full scale simulator for kerbal space program based on the cockpit from the MK1-2 capsule with RPM and I am wondering how I could make the LCD’s work in real life, you codes virtual buttons to operate a virtual screen, how can I code the virtual buttons to work with real world inputs and mirror the screens from the displays in the cockpit to real world screens? I can send you some sketches I drawed really quick to show you what I am trying to build. If by any chance I’ve triggered your interest, could you help me with this project?

    Kind regards from Belgium.

    There is a mod for that, or rather, a program connecting to kRPC which still is known to work with 1.6.1. Needs an external computer and Krewmember has dropped of the planet, but it could be a place to start.

  14. First of all, I am going to use this. I've just started a career, but if it blows up 5 launches lost is not a problem.

    If I may suggest a small change in layout, I would add occupation after the name instead of after "on duty". Maybe snatch the icons (with permission) from the portrait stats mod I seem to remember- wings for pilot, wrench for engineer, Erhlenmeyer flask for scientist - so we have an idea whether Aldny is qualified to take the controls when Jeb steps down. Also, you might want to be able to sort by craft instead of by off duty time, if that is not included already (not clear). Looking forward to get home tonight and try it out.

×
×
  • Create New...