Jump to content

KingLuxor

Members
  • Posts

    10
  • Joined

  • Last visited

Posts posted by KingLuxor

  1. I'm still in the process of building my controller. Reloading KSP multiple times to check/verify changes to the Arduino code was a bit tiresome.

    I've hacked zitronen's code up a bit to the point that I have a "debugging" tool, which is almost fully functional.

    It allows you to see/verify the incoming data from the Arduino, as well as send control values to the Arduino. Realizing that most people have customized this is some way, the project is open source.

    I don't want to hijack this thread or flood it with input/comments, you can find my post about it here: 

     

  2. I've developed a simple tool for testing/debugging custom display/controllers which use the KSPSerialIO mod by @zitronen

    This allows you to monitor controls from the Arduino, as well as send control values to the Arduino. Reloading KSP multiple times, and the lack of real time onscreen data make this tool a bit more efficient in finding what isn't working.

    It also allows you to test/play with your display or controller without loading KSP.

    The project is open source and can be found on my github at https://github.com/bolwire/KSPSerialIODebugTool

    Thoughts ? Ideas ? Found a bug ? Please reply to this thread. Once things smooth out I will add a link in the application to the Report Issue feature on github, as well as this thread.

    Currently this only runs on windows, and you must build it from the source.

    WrAUegs.png

    n4TgzT5.jpg

  3. 2 hours ago, zitronen said:

    Wait do you mean you have written a KSP-> UDP plugin and an external program to do UDP -> serial? I think I should try to get some of these WCH340 things.

    @zitronen

    Yes, that's exactly what I did. Very crude and to the point just to see if it would work.

    The UNO with the WCH340 > http://www.amazon.com/HiLetgo-Board-ATmega328P-CH340-Arduino/dp/B01AR7YJ3O?ie=UTF8&psc=1&redirect=true&ref_=oh_aui_detailpage_o05_s02

    The Mega with the WCH340 > http://www.amazon.com/OSOYOO-ATmega2560-16AU-CH340G-Arduino-Learner/dp/B00SFICZUM?ie=UTF8&psc=1&redirect=true&ref_=oh_aui_detailpage_o04_s02

  4.  

    On 4/22/2016 at 5:34 PM, zitronen said:

    Update 0.18.2:

    Changes:

    • Fixed stage action
    • Fixed stage number and total stages values

    Download link:

    https://sites.google.com/site/zitronfiles/KSPSerialIO_018_2.zip

     

    Don't know unless someone can test it on win10. Probably still won't work. Although somehow @KingLuxor was able to get his knock off arduino mega working on win 10.

    @zitronen

    Did some testing on windows 10 because I was bored.

    I purchased two Unos that use the WCH340 chip, they both work perfectly. Reading over the entire thread I saw a mention of using a proxy app to receive UDP from KSP and relay that out the serial port using System.IO.Ports. I gave that a shot, but again it fails with the Uno using the Atmel 8u2, but works great with the WCH340 chips.

    The WCH340 chips keep on working as long as I keep the UDP listening, but the ATmel chip always hangs up on the serial port methods before reaching an AP of 500m, so it doesn't fail right away, but I can't make it work.

  5. 12 hours ago, zitronen said:

    What? I don't even...

    Maybe it's something to do with the usb-serial driver? I can't test anything because I don't have windows 10, so annoying.

    EDIT: Yes, throttle does work!

    I believe it is the windows usb-serial driver. I built a small winforms app that uses System.IO.Ports, it simply sends the handshake packet, the Mega responds, the Uno doesn't; so it has the exact behavior as the.wrapper you are using. I've verified that my Uno does work on Win7, so that really points towards the windows driver as well; however it seems really odd that the Arduino IDE is able to work with the Uno on Win 10 if it is the driver tho.

    I know you've put alot of time and effort into this project already, I'm not asking you to dive back in and attempt to fix this; just passing along what I thought might be useful.

    Thank you for sharing your work.

×
×
  • Create New...