nasa / nos3

NASA Operational Simulator for Small Satellites
Other
374 stars 84 forks source link

Errors during ARDUCAM picture aquisition process and no change in TLM #413

Open BaptisteRC opened 3 days ago

BaptisteRC commented 3 days ago

I try to use the ARDUCAM subsystem to simulate taking a picture. In the absence of user manual, I only guess the proper process. I have noted a few issues detailed below.

  1. Picture errors on first CMD When triggering the command CAM_EXP3 for the first time, I get the below error messages in the NOS3 debug terminal: image I understand those are potentially related to the bus and the FSS / MAG subsystems, however it might have an impact on my CAM telemetry.. Q: is that expected / of nature of cause an issue later on e.g. receiving CAM telemetry?

  2. Picture telemetry: I dont see the command counter increases (/ARDUCAM/ARDUCAM_HK_TLM_T/COMMANDCOUNT), and the other telemetry points (like CAM_DATA) are not refreshed either. Q: is that expected? (do we need to code that part ourselves?) Q: If not expected, how do we downlink the image data/file, if it exists? what would be the default onboard filename/filepath to retrive it from the FS? Ultimately I'd be fine with just a dummy file on the file system I can then download... image

  3. Picture acquisition time & size It takes about 6 minutes until the CAM EXP3 is "complete" as per NOS3 debug window. Q: Is that timeline expected? From the code, it seems there are 3 commands for 3 size of picture CAM_EXP1, CAM_EXP2, CAM_EXP3. However in COSMOS gsw only CAM_EXP3 is available (which is the "large" picture command). Q: is that expected? is there a way to take smaller pictures?

Thanks much for your help.

Isgaroth-the-Green commented 1 day ago

As far as I know, the first thing you mention is expected behavior - at any rate, I get the same responses.

For the second question, I am not sure I understand what you are saying. When do you not see the command counters increase? I see them increase on my version; the COMMANDCOUNT only increments when a command is sent, but it does precisely that for me (if I send two commands, the command count is 2). Similarly with CAM_DATA; that only updates when experiment data (rather than housekeeping data) is coming through, and it does so for me. Do you never see increasing values of those variables? Or do you not see, for example, an increasing command counter when you send a no-op command?

Six minutes sounds about right for the timeline. I do not think there is a way to 'take' smaller pictures at present, but I do not know that for sure; I will investigate and get back to you.

BaptisteRC commented 1 day ago

Thank you again! RE Q2, the commandcounter issue might be specific to my setup.

In your setup, do you receive multiple CAM_DATA packets and do you use those to extract a picture? or it is random dummy data?

Is my understanding correct that the CAM_EXP3 command doesnt trigger picture file creation, only cam_data telemetry packets to be broadcasted immediately?

Thanks much!