Well done!
Cockpits, HUDs and other displays
Moderators: winston, another_commander
- Cholmondely
- Archivist
- Posts: 5364
- Joined: Tue Jul 07, 2020 11:00 am
- Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
- Contact:
Re: Cockpits, HUDs and other displays
Comments wanted:
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: Cockpits, HUDs and other displays
OoliteStarter v0.1.32-gelsemium.2 will now detect whether the debug oxp is available. This is a prerequisite for MQTT data export.
Who is interested in testing once I have more functionality?
Who is interested in testing once I have more functionality?
Sunshine - Moonlight - Good Times - Oolite
- Cholmondely
- Archivist
- Posts: 5364
- Joined: Tue Jul 07, 2020 11:00 am
- Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
- Contact:
Re: Cockpits, HUDs and other displays
Alas, failed to open v.0.1.30 - getting the message that it would not function on my Mac...
Comments wanted:
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: Cockpits, HUDs and other displays
Thank you for trying. What I find difficult is that we face so many problems just to have a look.
Do we have any alternatives? Remember how we experimented with Nexus?
Sunshine - Moonlight - Good Times - Oolite
- Cholmondely
- Archivist
- Posts: 5364
- Joined: Tue Jul 07, 2020 11:00 am
- Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
- Contact:
Re: Cockpits, HUDs and other displays
Next week should be doable. I've just downloaded your latest (gelsenium) as linked just above, and again, "oolite starter can't be installed on your computer". But 0.1.29 flavescent.7 opens just fine. So between flavescent 7 and 0.1.30 something changed. And if you have automated the packaging process, then I would guess that something might have been changed for you there.hiran wrote: ↑Tue Jun 11, 2024 4:42 amThank you for trying. What I find difficult is that we face so many problems just to have a look.
Do we have any alternatives? Remember how we experimented with Nexus?
Comments wanted:
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
•Missing OXPs? What do you think is missing?
•Lore: The economics of ship building How many built for Aronar?
•Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
Re: Cockpits, HUDs and other displays
Happy to help if I can. I now have instances of Windows and MacOS which are at least good enough to check 'does it load?', and 'will they talk?', as well as my usual heaps of Linux. MQTT on standby.hiran wrote: ↑Mon Jun 10, 2024 9:48 pmOoliteStarter v0.1.32-gelsemium.2 will now detect whether the debug oxp is available. This is a prerequisite for MQTT data export.
Who is interested in testing once I have more functionality?
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: Cockpits, HUDs and other displays
You've got MacOS for testing? That's great!MrFlibble wrote: ↑Tue Jun 11, 2024 8:25 amHappy to help if I can. I now have instances of Windows and MacOS which are at least good enough to check 'does it load?', and 'will they talk?', as well as my usual heaps of Linux. MQTT on standby.hiran wrote: ↑Mon Jun 10, 2024 9:48 pmOoliteStarter v0.1.32-gelsemium.2 will now detect whether the debug oxp is available. This is a prerequisite for MQTT data export.
Who is interested in testing once I have more functionality?
Maybe you could already have a look whether OoliteStarter is usable on a Mac - just as Cholmondely pointed out. Enabling him for testing would be huge value already - not to talk about the other gimmicks that are to come.
Sunshine - Moonlight - Good Times - Oolite
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: Cockpits, HUDs and other displays
Fire it up, this next build is for you!
I made the MQTT connection data configurable so now you should be able to make use of it. However it is a manual step not included in the GUI.
(am boldly assuming if you can configure MQTT and respective clients, you will be able to fiddle an XML configuration). Here you can see what needs to be done:
https://github.com/OoliteProject/Oolite ... figuration
And here's the new version: OoliteStarter v0.1.32-gelsemium.6
Oh, and I would not mind if someone knew how to make powershell add the processor architecture to a filename.
Sunshine - Moonlight - Good Times - Oolite
Re: Cockpits, HUDs and other displays
On it. I have a heap of ESP8266's and suchlike, OLED displays etc. and micropython everywhere. This is going to be FUN!!!hiran wrote: ↑Fri Jun 14, 2024 10:18 pmFire it up, this next build is for you!
I made the MQTT connection data configurable so now you should be able to make use of it. However it is a manual step not included in the GUI.
(am boldly assuming if you can configure MQTT and respective clients, you will be able to fiddle an XML configuration). Here you can see what needs to be done:
https://github.com/OoliteProject/Oolite ... figuration
And here's the new version: OoliteStarter v0.1.32-gelsemium.6
Oh, and I would not mind if someone knew how to make powershell add the processor architecture to a filename.
Now all I have to do is remember where it all is, and find it all at the same time.
Re: Cockpits, HUDs and other displays
This is my attempt on my LinuxMint laptop. I don't often use starter (limited RAM), so I found a few quirks.
I had to apt remove the previous version of oolitestarter first, as apt was convinced that this was an older version.
Starter tells me there's a new update for Oolite. I close starter, upgrade Oolite to 1.91.0.7616-240527-f882b71-linux-dev-x86_64. Reload starter.
Starter shows that I have 1.90.0.7282-200829-0b1ff49 and it's not debug capable. Ah wait! I know what's happening... it just didn't verify the version which had been upgraded in-place several times. So I ran the scan, (hint.. don't have deep trees mounted!). Now it shows the new version AND the old one, both at the same location. A scary 'delete and confirm' later, and it all looks good.
My 2p-worth: Perhaps that 'delete' should be called 'remove' and/or placed next to 'add', with some clarification that it won't actually delete the installation. Could there be an option to re-check the existing installation version, or just do that at startup as a matter of course?
MQTT up and running. Ignoring protest about missing Spara.SothisTC. Onward.
Nice!
Pity it won't run alongside debug console, one blocks the other.
I'll check the other platforms later if nobody else chips in with results by the time I'm next idle. If you need it done fast, yell.
I had to apt remove the previous version of oolitestarter first, as apt was convinced that this was an older version.
Starter tells me there's a new update for Oolite. I close starter, upgrade Oolite to 1.91.0.7616-240527-f882b71-linux-dev-x86_64. Reload starter.
Starter shows that I have 1.90.0.7282-200829-0b1ff49 and it's not debug capable. Ah wait! I know what's happening... it just didn't verify the version which had been upgraded in-place several times. So I ran the scan, (hint.. don't have deep trees mounted!). Now it shows the new version AND the old one, both at the same location. A scary 'delete and confirm' later, and it all looks good.
My 2p-worth: Perhaps that 'delete' should be called 'remove' and/or placed next to 'add', with some clarification that it won't actually delete the installation. Could there be an option to re-check the existing installation version, or just do that at startup as a matter of course?
MQTT up and running. Ignoring protest about missing Spara.SothisTC. Onward.
Code: Select all
# mosquitto_sub -u Username -P "Password" -t 'oolite/#' -h 127.0.0.1 -p 1883 -v
oolite/configuration <?xml version="1.0" encoding="UTF-8"?>
#Boring plist data hidden.
oolite/alert {"msgType":"alert","alertCondition":2}
oolite/controls {"msgType":"controls","speed":157.5,"maxSpeed":315}
oolite/comms {"msgType":"comms","message":"Rabiarce Traffic Control: Bon voyage Commander Flibble. Please clear the approach lane as soon as possible.","sender":null}
oolite/comms {"msgType":"comms","message":"Rock Hermit beacon detected","sender":null}
oolite/alert {"msgType":"alert","alertCondition":1}
oolite/alert {"msgType":"alert","alertCondition":0}
oolite/controls {"msgType":"controls","speed":0,"maxSpeed":315}
Pity it won't run alongside debug console, one blocks the other.
I'll check the other platforms later if nobody else chips in with results by the time I'm next idle. If you need it done fast, yell.
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: Cockpits, HUDs and other displays
Good point. I'll think about it.MrFlibble wrote: ↑Sat Jun 15, 2024 6:05 pmStarter shows that I have 1.90.0.7282-200829-0b1ff49 and it's not debug capable. Ah wait! I know what's happening... it just didn't verify the version which had been upgraded in-place several times. So I ran the scan, (hint.. don't have deep trees mounted!). Now it shows the new version AND the old one, both at the same location. A scary 'delete and confirm' later, and it all looks good.
My 2p-worth: Perhaps that 'delete' should be called 'remove' and/or placed next to 'add', with some clarification that it won't actually delete the installation. Could there be an option to re-check the existing installation version, or just do that at startup as a matter of course?
Congratulations! Seems the way I documented really works....
For Oolite Starter AND the debug console: Well only one application can listen on one ip/port. And Oolite connects to that application - but only once. So that architecture is craving for impact.
In case you want to debug you can still use OoliteStarter. Just start the debug console prior to running Oolite. OoliteStarter will only try to block the debug tcp port when launching Oolite and does not complain if it is taken already.
If that's not good enough let's discuss alternatives.
Sunshine - Moonlight - Good Times - Oolite
Re: Cockpits, HUDs and other displays
I'd discovered that, realised it was mutually exclusive, and that you were probably using the TCP connection.
I know the connection with debug console is via TCP, effectively console is server, Oolite is client. I expect there was a good reason it got implemented that way round. I didn't know whether some other handle (unix socket or similar) existed to talk with Oolite's debug.
What if starter were able to subscribe to a topic, and send anything published there back to Oolite, with filtered responses published. That would allow a kludgy debug console, and also facilitate instruments sending commands to oolite (pause on red alert if bridge empty).
It's only a pity that both can't work at once. Not the end of the world.
I think this is an excellent idea, and look forward to seeing what people do with it.
MQTT Dashboard on Android, although closed source, might be fun to use with this!
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: Cockpits, HUDs and other displays
Spot on. I will add some information to the readme - not everybody might guess right just like that.MrFlibble wrote: ↑Sat Jun 15, 2024 8:18 pmI'd discovered that, realised it was mutually exclusive, and that you were probably using the TCP connection.
I know the connection with debug console is via TCP, effectively console is server, Oolite is client. I expect there was a good reason it got implemented that way round. I didn't know whether some other handle (unix socket or similar) existed to talk with Oolite's debug.
An excellent idea to reuse the existing tech stack. So the Oolite Debug Console could preserve it's use to alternatively show/produce MQTT messages while at the same time more and more instruments could be developed and attached. Which would again encourage others to take that route.MrFlibble wrote: ↑Sat Jun 15, 2024 8:18 pmWhat if starter were able to subscribe to a topic, and send anything published there back to Oolite, with filtered responses published. That would allow a kludgy debug console, and also facilitate instruments sending commands to oolite (pause on red alert if bridge empty).
That's a win-win situation.
Something like this is what I had in mind when writing viewtopic.php?p=296692#p296692MrFlibble wrote: ↑Sat Jun 15, 2024 8:18 pmI think this is an excellent idea, and look forward to seeing what people do with it.
MQTT Dashboard on Android, although closed source, might be fun to use with this!
It's good to see we are getting closer.
Sunshine - Moonlight - Good Times - Oolite
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: Cockpits, HUDs and other displays
Thinking about this:hiran wrote: ↑Sat Jun 15, 2024 9:16 pmAn excellent idea to reuse the existing tech stack. So the Oolite Debug Console could preserve it's use to alternatively show/produce MQTT messages while at the same time more and more instruments could be developed and attached. Which would again encourage others to take that route.MrFlibble wrote: ↑Sat Jun 15, 2024 8:18 pmWhat if starter were able to subscribe to a topic, and send anything published there back to Oolite, with filtered responses published. That would allow a kludgy debug console, and also facilitate instruments sending commands to oolite (pause on red alert if bridge empty).
That's a win-win situation.
OoliteStarter should then forward all messages from Oolite. If it is not meant for a special topic (e.g.
oolite/comms
) it should go to a default topic like oolite/debugConsole
. This way an MQTT oriented debug console could still decide which messages to react on.At the same time I will introduce a topic like
oolite/input
. Messages here will be forwarded to Oolite on the debug console interface - which means they need to contain some JavaScript command. And again this would allow Oolite to react.I was experimenting in that respect and created this code:
https://github.com/OoliteProject/Oolite ... r.java#L78
But that one is too ship speed oriented. We will need something more generic.
Sunshine - Moonlight - Good Times - Oolite
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: Cockpits, HUDs and other displays
This is an effect on experimental versions. Same happens on Windows.
Seems like operating systems want to look at three digits in version numbers only. But I want to keep the semver style which has four of them.
Sunshine - Moonlight - Good Times - Oolite