zitron-git / kspserialio Goto Github PK
View Code? Open in Web Editor NEWKerbal Space Program Serial Port IO plugin
Kerbal Space Program Serial Port IO plugin
I believe you can now use System.IO.Ports to use the SerialPort, instead of using an external library.
More info: http://msdn.microsoft.com/en-us/library/system.io.ports.serialport%28vs.90%29.aspx
CurrentStage and TotalStage are always calculated to be 0 and 1 respectively, no matter what vessel is loaded.
yikes the issue ran away before I finished typing...
Various of the VesselData members store values represented in seconds. Unfortunately they use various data formats:
While it's not a big deal it makes writing a function that converts seconds to a readable time format (array-of-char) a bit more cumbersome. Maybe you could change that in a future version.
Hi,
This plugin looks amazing! Can you break out the Serial code into a interface so I can attempt rigging a *nix compatible serial controller?
/K
The VesselData.MNDeltaV member displays the total amount of deltaV required for a maneuver node.
Is this on purpose? I believe remaining deltaV for a maneuver node will be much more useful.
In relation to that, there doesn't seem to be a member "MNDuration" or something like that which contains the seconds required to execute a maneuver node. Is something like that planned?
Whenever using the Time Warp feature to speed up the time in KSP, the plugin would also speed up the serial refresh rate (i.e on 2x time warp the plugin would send the data twice as fast).
It might have something to do with by using Unity's Time.time (which is scalable by Time.timeScale) instead of i.e Time.realtimeSinceStartup.
if ((Time.time - lastUpdate) > refreshrate && KSPSerialPort.Port.IsOpen)
{
lastUpdate = Time.time;
ControlPacket.mode doesn't seem to work.
Looking through code, I cant find a reference where it is used.
If I clic on the RCS ingame button, it turns on of course, but then I can no longer use the arduino button to turn it on/off. And if I clic on it again, it turns off, and then I can use the arduino button again to control it.
Made a short video to show you what it does : https://www.youtube.com/watch?v=K3OvMLiDWco
I think this comes from the following lines (starting at 1081) :
if (KSPSerialPort.VControls.RCS != KSPSerialPort.VControlsOld.RCS) { ActiveVessel.ActionGroups.SetGroup(KSPActionGroup.RCS, KSPSerialPort.VControls.RCS); KSPSerialPort.VControlsOld.RCS = KSPSerialPort.VControls.RCS; //ScreenMessages.PostScreenMessage("RCS: " + KSPSerialPort.VControls.RCS.ToString(), 10f, KSPIOScreenStyle); }
It is not clear to me how to install this mod and there doesn't seem to be any documentation
Not an issue, but I just found this thread:
http://forum.kerbalspaceprogram.com/threads/107815-Arduino-Direct-Serial-communications-working!-MAC-*NIX-and-possibly-WIN
Might be worth testing and starting a collaboration with.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.