Jump to content

ESP8266 controller


nathangray

Recommended Posts

Doing it in an esp8266 looks like a really novel approach, great work! :) I'm looking forward to seeing how your project progresses.

As far as the lag goes, do you know if that's mostly because of the esp8266's wifi performance, network in general, telemachus, or something else?

Link to comment
Share on other sites

I'm not sure about the source of the lag, so I'm open to ideas on how to narrow it down.  A comparison with the web interfaces shows about the same delay between operating a control and the on-screen response, so I'm leaning toward Telemachus or KSP itself.

Here's a snippet of the debug while quickly changing the throttle from max to off:

{"t.universalTime":17020.1764956399,"f.throttle":1}
Sending data: {"run":["f.setThrottle[1.000]"]}
{"t.universalTime":17020.29649564,"f.throttle":1}
Sending data: {"run":["f.setThrottle[0.367]"]}
{"t.universalTime":17020.29649564,"f.throttle":1}
Sending data: {"run":["f.setThrottle[0.015]"]}
{"f.setThrottle[1.000]":0,"f.setThrottle[0.367]":0,"t.universalTime":17020.41649564,"f.throttle":1}
Sending data: {"run":["f.setThrottle[0.000]"]}
{"f.setThrottle[0.015]":0,"t.universalTime":17020.53649564,"f.throttle":0.367}
Sending data: {"run":["f.setThrottle[0.000]"]}
{"f.setThrottle[0.015]":0,"t.universalTime":17020.53649564,"f.throttle":0.367}
Sending data: {"run":["f.setThrottle[0.000]"]}
{"f.setThrottle[0.000]":0,"t.universalTime":17020.65649564,"f.throttle":0.01499999}
{"f.setThrottle[0.000]":0,"t.universalTime":17020.65649564,"f.throttle":0.01499999}
{"f.setThrottle[0.000]":0,"t.universalTime":17020.65649564,"f.throttle":0.01499999}
{"f.setThrottle[0.000]":0,"t.universalTime":17020.65649564,"f.throttle":0.01499999}
{"f.setThrottle[0.000]":0,"t.universalTime":17020.65649564,"f.throttle":0.01499999}
Sending data: {"run":["f.setThrottle[0.000]"]}
{"f.setThrottle[0.000]":0,"t.universalTime":17020.77649564,"f.throttle":0}

Messages to Telemachus start with "Sending data:".  You can see that Telemachus does not immediately respond with the correct value, but that it takes a bit, even though it acknowledges the change in its response.

On the other hand, the flag waving at the launch pad is not exactly smooth right now, so system load might be an issue...

 

To be honest, I did it just to see if I could.  There are two other things I'd like to try now.  I have one of those emergency stop buttons, and I think I can get a fully self-contained abort button.  I'd also like to see a remote docking control.

Link to comment
Share on other sites

  • 2 weeks later...
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...