Jump to content

commissar_squid

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by commissar_squid

  1. Thank you for the help and for the great plugin! I will hack around and see if I can figure it out. One more suggestion I might make, if its doable, would be to be able to address SAS mode (prograde, target, node, etc). I am planning to put a 10-position rotary switch on my panel to select those, and at the moment the only way I can think to do it is to use Diazo's ModActions to assign SAS mode to custom action groups, copy the custom groups to each ship, and trigger the groups via toggleCAG. It works, but it's a bit of a hassle. Also, enjoy your vacation.
  2. Thanks for the quick feedback! Unfortunately, I am seeing the same lack of function as before. I did add a Serial.begin(9600) above the code above at the beginning of the setup section - no dice (whether it's included or not). Arduino's using the default configuration (8N1) and so is the in-game plugin, which is assigned to the COM port used to program the arduino, so I'm pretty sure the setup is correct. Just from putting random LED-on messages into the code, it looks like it's still hanging at the krpc_open command - and it has the same effect whether the above code is in setup() or in loop(). Also various serial speeds from 9600 all the way to 115200 were tried. It also definitely looks like the plugin is pointed at the right port, because I can't re-upload to the Arduino as long as the server's started in the in-game plugin. Is there anywhere I can be looking for logged connection refusals or the like?
  3. I am in the process of trying to move my custom controller from KSP Serial I/O to kRPC. I suspect it's because I'm literally the worst programmer, but I have been banging my head around getting an Arduino running kRPC C-nano to successfully connect to the KSP plugin via serial connection and cannot for the life of me figure it out. I am using the example code from the Github repository, just with the modification to replace main() with loop() or setup() as appropriate. No error messages, but the program is clearly hanging at the krpc_open command. I know the hardware is solid because it kicks right on if I upload my previous (non-kRPC) sketch. I am sure I am missing something very simple. Any guidance, or anyone with a working Arduino serial sketch willing to share?
  4. Two questions: one, have you given any thought to including data on commlink status to KSC? I would love to be able to add red/yellow/green LEDs to a probe control panel. Second, I cannot find any information on the message format for main vessel throttle control beyond I don't see any information on an appropriate structure for sending throttle commands. throttleMessage does not appear to be a thing. I have done my best to crawl the source and find something, but no dice. Any guidance?
×
×
  • Create New...