Jupiter Moons

Contributions to this software library are always welcome. Please ensure that you post program listings rather than .raw files. They give a reasonable idea of what your program does without having to load them into a DM42 and you can also include comments in your code. Check out the following link for a decoder/encoder: https://technical.swissmicros.com/decoders/dm42/

You can then copy/paste the listing and post it in "code" tags.
User avatar
Calambres
Posts: 48
Joined: Wed Dec 16, 2020 6:49 pm
Location: Madrid, Spain
Contact:

Re: Jupiter Moons

Post by Calambres »

Sorry but I get the very same results:

D/M/Y: Invalid Data
M/D/Y: OK
No date input (X=0 & Y=0): Invalid Data :cry:
User avatar
Calambres
Posts: 48
Joined: Wed Dec 16, 2020 6:49 pm
Location: Madrid, Spain
Contact:

Re: Jupiter Moons

Post by Calambres »

Another clue:

I loaded a "Clean State" so no other programs can interfere with this in any manner. Same results.
Josef
Posts: 24
Joined: Sun Sep 08, 2019 12:25 pm

Re: Jupiter Moons

Post by Josef »

I am sorry now I can see, I enclose old version, new version is here:
Attachments
Jupiter.raw
(944 Bytes) Downloaded 113 times
User avatar
Calambres
Posts: 48
Joined: Wed Dec 16, 2020 6:49 pm
Location: Madrid, Spain
Contact:

Re: Jupiter Moons

Post by Calambres »

Well, it seems to act a bit differently but still crashes. I'll try to give some clues:

Firrst test with no date input:
- CLST
- XEQ Jupiter
- I see a graphic display of jupiter in the form of CGEI J
- One second later I get:

"Invalid Data"
----------------------------------------
T: -11.467026712
Z: 0
Y: 0
X: 1.012

Everytime I do the previous steps I get exactly the same results.

Next test with D/M/Y format:
- CLST
- 22.022021 ENTER
- 19.47 XEQ Jupiter
- I see a graphic display of jupiter in the form of CGEI J
- One second later I get:

"Invalid Data"
----------------------------------------
T: -11.467026712
Z: 8.24305555556E-1
Y: 22.022021
X: 1.012

Next test with M/D/Y format:
- CLST
- 02.222021 ENTER
- 19.50 XEQ Jupiter
- Everything works like a a charm!

I swear I've got the D/M/Y date format in my DM42 :)

Hope this helps. If you need some other testing, just ask!
Thanks for your support!
Thomas Okken
Posts: 1100
Joined: Tue May 02, 2017 5:48 pm
Location: Netherlands
Contact:

Re: Jupiter Moons

Post by Thomas Okken »

Have you tried setting the date format using the DMY function? I don't remember the details but there was a bug that was discussed here recently, where the date functions could end up acting weird if you used the setup menu to set the date mode.
Josef
Posts: 24
Joined: Sun Sep 08, 2019 12:25 pm

Re: Jupiter Moons

Post by Josef »

I found a bug in my code, now it's okay, I think. You do not need to change the date format, the program changes it automatically.There is small change, you have to use CLST on the beginning. You can put in arbitrary date and time or program will automatically have been set to the current date and time values.
Attachments
Jupiter.raw
(966 Bytes) Downloaded 122 times
User avatar
Calambres
Posts: 48
Joined: Wed Dec 16, 2020 6:49 pm
Location: Madrid, Spain
Contact:

Re: Jupiter Moons

Post by Calambres »

Now it works like a charm! 8-)

Thanks a lot!
Josef
Posts: 24
Joined: Sun Sep 08, 2019 12:25 pm

Re: Jupiter Moons

Post by Josef »

you're welcome 8-)
Josef
Posts: 24
Joined: Sun Sep 08, 2019 12:25 pm

Re: Jupiter Moons

Post by Josef »

I created the final version and fixed the wrong time on the display. The older version shows a negative date or greater than 24 hours. The new version shows date and time correctly.
Attachments
Jupiter.raw
(1.01 KiB) Downloaded 114 times
Right.bmp
Right.bmp (12.31 KiB) Viewed 2242 times
Bad.bmp
Bad.bmp (12.31 KiB) Viewed 2242 times
User avatar
Calambres
Posts: 48
Joined: Wed Dec 16, 2020 6:49 pm
Location: Madrid, Spain
Contact:

Re: Jupiter Moons

Post by Calambres »

Cool! 8-)
Post Reply