Jump to content

Kerbal Pogo-Stick


Recommended Posts




Kerbal pogo-stick. kOS is programmed to jump automatically as soon as the craft is close enough to the ground. The force of the jump is varied using the throttle. Self balancing via mechjeb's smart A.S.S utility. Not really all that impressive on its own, but this technique will lead to some interesting future craft...
Link to comment
Share on other sites

Craft file, download this and drop it into your SPH folder:

https://www.dropbox.com/s/kwic92ted1sjicc/POGO-1.craft?dl=0

Here is the script I'm running:

SET TURN TO SHIP:PARTSTAGGED("TURN")[0].
SET JUMP TO SHIP:PARTSTAGGED("JUMP")[0].

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

PARAMETER SPEED1.
PARAMETER ACCELERATION.
PARAMETER TURNRATE.

/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

UNTIL SHIP:ALTITUDE > 20000

{

IF GEAR = 1
UNTIL GEAR = 0

{

IF + ALT:RADAR < 3.9

{
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

SET SPEED1 TO 250 + 2500*SHIP:CONTROL:PILOTMAINTHROTTLE.

SET ACCELERATION1 TO 1500 + 150*SHIP:CONTROL:PILOTMAINTHROTTLE.

SET TURNRATE TO 6 - 1.5*SHIP:CONTROL:PILOTMAINTHROTTLE.


/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

TURN:GETMODULE("MUMECHTOGGLE"):SETFIELD("SPEED", TURNRATE).

JUMP:GETMODULE("MUMECHTOGGLE"):SETFIELD("ACCELERATION", SPEED1).



/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


JUMP:GETMODULE("MUMECHTOGGLE"):DOACTION("MOVE +", 1).

WAIT 0.125.
JUMP:GETMODULE("MUMECHTOGGLE"):DOACTION("MOVE +", 0).

JUMP:GETMODULE("MUMECHTOGGLE"):DOACTION("MOVE -", 1).

WAIT 0.25.
JUMP:GETMODULE("MUMECHTOGGLE"):DOACTION("MOVE -", 0).


/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

}.
}.
}.

Start-up procedure:

1) Extract your pogo-pilot from the capsule and sit him down in the command seat.

2) Detach capsule.

3) Right-click on the probe core and select "control from here"

4) Use mechjeb's smart ASS function to lock heading to the UP direction

5) Open the kOS control panel and run the script i posted above.

6) Detach the launch clamps.

7) Steer with "j" and "l" (you may want to remap your kerbal's space suit light to another button, like "u")

8) Lean forward and back with "i" and "k"

9) Action group "0" toggles ladder up and down

10) Action group "g" toggles jumping routine

11) Throttle controls the force of the jump, keep it low to avoid damage.

Mods:

- mechjeb

- kOS

- Infernal Robotics + reworked IR models

- tweakscale

If you download this, please post here and let me know if it works or not.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...