Giter Site home page Giter Site logo

Comments (6)

erendrake avatar erendrake commented on August 13, 2024

That is an interesting idea, for your PWM method do you bind an engine to an action group and turn it off and on? it wouldn't be impossible to throttle all of the engines in an action group, even with 0.22

from kos.

MaHuJa avatar MaHuJa commented on August 13, 2024

AFAICT there's no way to bind the throttling of individual engines to action groups. As such, this has as a prerequisite that we get a way to address individual parts in some fashion. There was some discussion of this in the kOS thread a long while back, but I don't remember the details.

from kos.

erendrake avatar erendrake commented on August 13, 2024

i was assuming you would be able to get the parts out of an action group and then throttle them as a group. the only reason to use action groups was to give a simple way to specify which engines you want to mess with in the in game editor.

I am pretty sure that the real way to do this is to:

  • get all of the engines,
  • determine their distance and direction and facing from the Center of mass
  • have some kind of api setup that will let you adjust engines that are part of some group (ie port, starboard, aft, amidships)

that will be a lot of code :)

from kos.

MaHuJa avatar MaHuJa commented on August 13, 2024

If the only objective is to allow auto-balancing, it would be easier to have "kerbcom avionics" add a command through the kOS api that allows enabling the combined mode. If we want to be more flexible than that, we'd have to do something else.

I now get what you meant by the action groups. It shouldn't be impossible to get the parts that are "connected" to action groups - some of the code is already available in AGM (action group manager, I think). And then doing some action (where engine throttle is one example) to those parts is then a possibility. Personally I dislike relying on AGs for too much, though.

from kos.

erendrake avatar erendrake commented on August 13, 2024

@MaHuJa The reason i wanted to make it more flexible is the philosophy of the mod was to emulate a very primitive flight computer, not just a scripting engine that handles all of the complexity for you.

However, I think that with the addition of the tech trees in KSP i wanted to go the way of MechJeb and have progressively more advanced feature unlock as you progress. This would i believe be in keeping with @Nivekk 's original design while letting us add more syntax sugar for users.

PS I agree with you on abusing action groups.

from kos.

Dunbaratu avatar Dunbaratu commented on August 13, 2024

I think it makes sense to make the computer more powerful the higher up the tech tree you go, but NOT to make the kos scripts you write simpler as the computer gets more automated for you. That makes the mistake of making the mod more hand-holdy and less expert friendly the longer you've been playing, which feels backward.

from kos.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.