Jump to content

[1.0.4] (2015-07-04) Telemachus – Telemetry and Flight Control in the Web Browser


Rich

Recommended Posts

Hey, I'm trying to integrate data from this plugin into a C++ project. I'm a little confused on the API though. Is there a way to make a sort of "one-shot" request for an individual value like, say, Pitch?

Link to comment
Share on other sites

Since you are using C++, I would advise libcURL for accessing the Telemachus API. I have provided an example API call below for reading the current vessels pitch.

http://127.0.01:8055/telemachus/datalink?a=n.pitch

Link to comment
Share on other sites

All this is possible, but I lack time to expose all this juicy information right now ;.;. That and I am not really happy with the way the API works.

How bad :( Hopefully you're making progress in implementing a better API.

Fabian

Link to comment
Share on other sites

Hi, I created a ModuleManger file to support RemoteTechs antennae:

// RemoteTech Compability File
@PART[RemoteDeployAntenna]
{
MODULE
{
name = TelemachusDataLink
}

MODULE
{
name = TelemachusPowerDrain
powerConsumptionBase = 0.01
powerConsumptionIncrease = 0.02
}
}

@PART[RemoteDipoleAntenna]
{
MODULE
{
name = TelemachusDataLink
}

MODULE
{
name = TelemachusPowerDrain
powerConsumptionBase = 0.01
powerConsumptionIncrease = 0.02
}
}

@PART[RTmegaStrut]
{
MODULE
{
name = TelemachusDataLink
}

MODULE
{
name = TelemachusPowerDrain
powerConsumptionBase = 0.01
powerConsumptionIncrease = 0.02
}
}

@PART[RemoteDish]
{
MODULE
{
name = TelemachusDataLink
}

MODULE
{
name = TelemachusPowerDrain
powerConsumptionBase = 0.01
powerConsumptionIncrease = 0.02
}
}

@PART[RemoteLongRangeDish]
{
MODULE
{
name = TelemachusDataLink
}

MODULE
{
name = TelemachusPowerDrain
powerConsumptionBase = 0.01
powerConsumptionIncrease = 0.02
}
}

@PART[RemoteTrackDish]
{
MODULE
{
name = TelemachusDataLink
}

MODULE
{
name = TelemachusPowerDrain
powerConsumptionBase = 0.01
powerConsumptionIncrease = 0.02
}
}

@PART[RemoteMiniDishJr]
{
MODULE
{
name = TelemachusDataLink
}

MODULE
{
name = TelemachusPowerDrain
powerConsumptionBase = 0.01
powerConsumptionIncrease = 0.02
}
}

@PART[SatDish9000]
{
MODULE
{
name = TelemachusDataLink
}

MODULE
{
name = TelemachusPowerDrain
powerConsumptionBase = 0.01
powerConsumptionIncrease = 0.02
}
}

@PART[RemoteTechMicroSat]
{
MODULE
{
name = TelemachusDataLink
}

MODULE
{
name = TelemachusPowerDrain
powerConsumptionBase = 0.01
powerConsumptionIncrease = 0.02
}
}

@PART[RemoteTech RC antenna]
{
MODULE
{
name = TelemachusDataLink
}

MODULE
{
name = TelemachusPowerDrain
powerConsumptionBase = 0.01
powerConsumptionIncrease = 0.02
}
}

@PART[RTintelliStrut]
{
MODULE
{
name = TelemachusDataLink
}

MODULE
{
name = TelemachusPowerDrain
powerConsumptionBase = 0.01
powerConsumptionIncrease = 0.02
}
}

@PART[RemoteTechAeroProbe]
{
MODULE
{
name = TelemachusDataLink
}

MODULE
{
name = TelemachusPowerDrain
powerConsumptionBase = 0.01
powerConsumptionIncrease = 0.02
}
}

Simply create with the extension cfg and place it in a directory like <game>/GameData/Telemachus/. You also need to add ModuleManager.

Fabian

Link to comment
Share on other sites

I have already conducted a short mission with the link running from the UK to the USA, so it certainly works using an external IP.

I am actually starting up Mine and Syvos's "10 parts to orbit challenge". Each craft is only 10 parts, but each version carries one more kerbal, 1@1 2@2 3@3.... etc.

hopefully restarting that on saturday about 10pm GMT

www.twitch.tv/mechrior

Link to comment
Share on other sites

That's no fun. :(

antennas.jpg

lojack1.jpg

Now probes like Voyager 1 also have only one antenna for commands and science data. Okay they have afaik three different types, but they all do the same and only differ in the efficiency.

Fabian

Link to comment
Share on other sites

I have a suggestion:

IF you made the Kerbal Maps for the plugin, can you display your orbit like they do at NASA?

I would enjoy this as for it may help with the map view if you are a orbiter

The map itself is able to draw lines, but the API doesn't provide some crucial data (at least longitude of ascending node is required, I guess). And I have no idea how to calculate that path. But would be an awesome addition.

Fabian

Link to comment
Share on other sites

No it adds the Telemachus functionality of your two antennae to all RemoteTech antennae. so you don't need two antennae (one for each plugin).

Fabian

Gotcha :D

I have a suggestion:

IF you made the Kerbal Maps for the plugin, can you display your orbit like they do at NASA?

I would enjoy this as for it may help with the map view if you are a orbiter

It is possible to draw ground track lines, and I definitely want to add them :D

Link to comment
Share on other sites

I have no idea if it is possible but i would love to use a utility like this to display in real time all kind of craft data on a second screen (on digital or analog gauges).

Perhaps an idea for extending Telemachus?

Link to comment
Share on other sites

I have no idea if it is possible but i would love to use a utility like this to display in real time all kind of craft data on a second screen (on digital or analog gauges).

Perhaps an idea for extending Telemachus?

Open the browser on a second screen, and have windows/tabs open for different things? There used to be at least some addons for Firefox that created a 'tiled' screen showing more than one tab at the same time.

Link to comment
Share on other sites

Not yet, as I am still mainly working on stability (as this concerns me greatly).

I did watch some of your stream so I am hoping to push out a quick release later today adding a readout for the throttle level, and resource information for the current stage.

Link to comment
Share on other sites

I did watch some of your stream so I am hoping to push out a quick release later today adding a readout for the throttle level, and resource information for the current stage.

o.O should have spoken up buddy! would have pulled you into the chat! :P

Link to comment
Share on other sites

I was keeping quiet while collecting information on bugs and easy features which might help out any subsequent streams, and as it happens I saw a few issues which I need to investigate.

I'll drop by if you do another stream in the future.

Link to comment
Share on other sites

I was keeping quiet while collecting information on bugs and easy features which might help out any subsequent streams, and as it happens I saw a few issues which I need to investigate.

Any info on the issues you saw?

I'll drop by if you do another stream in the future.

More than welcome, we are running part 2 on Wednesday 31st July at 10pm GMT. Let me know if you want to hop in skype, would love to have you there, also Syvos may have a working version of the multiman mission if I can get the separate web interfaces ready by then.

Link to comment
Share on other sites

Issues:

1) The "Body not implemented" popup should not be showing where it did.

2) I saw a Google graphs error (the small red dialog).

3) The constant (and annoying) disconnecting of the antenna which was clearing the Fuel and Oxidiser graph.

Link to comment
Share on other sites

Issues:

1) The "Body not implemented" popup should not be showing where it did.

This was mostly happening when i was loading a craft from the VAB or SPH and there was no active antenna in game.

2) I saw a Google graphs error (the small red dialog).

Didnt notice this one myself too much

3) The constant (and annoying) disconnecting of the antenna which was clearing the Fuel and Oxidiser graph.

this was also happening with batt and rcs as well.

need any help testing fixes or extras just give me a shout!

Link to comment
Share on other sites

Issues:

1) The "Body not implemented" popup should not be showing where it did.[…]

Yeah for all orbiters around Jool and Kerbol this is happening, because there don't exist Kerbal maps for those two (if you haven't figured it out already).

Fabian

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...