-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[nasa/nos3#462] arducam checkout #488
Conversation
… to gitignore (if ammended to use internal file mode for Arducam device. further changes may be needed)
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #488 +/- ##
=====================================
Coverage 0.00% 0.00%
=====================================
Files 1 1
Lines 2 2
=====================================
Misses 2 2 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Picture loaded successfully
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything appears to work as intended.
Doesn't work if you are not using the default path on Desktop in NOS3. Need to update came_device.c:504 and other hard paths to use local pathing. |
Will do when I get to a computer @jlucas9. How would this best be done? The original was just trying to generate a file, but didn't seem to be anywhere I could find until I did an absolute path. |
I think we may be able to just get away with opening a file in the local folder it's running and telling the user to navigate to it. |
Finished updating the Arducam checkout to allow it to take pictures, as that logic was previously incomplete. For this, I modified the device and some config code slightly to make the output location consistent with our current VM and to allow the generation of an actual picture to be toggled on by default in the checkout and off by default (current state in dev) for when cFS is running. Then I replicated the logic from parts of the child task in the partially complete logic for taking pictures in checkout, to allow the reading of the data.
Steps:
Enable Arducam in the NOS3 minimal config, switch to using the minimal config in the top level no3 mission config, and uncomment the Arducam part of checkout.sh in scripts.
make clean
make debug
cd components/arducam/fsw/standalone/build
(
mkdir build
in the standalone directory if needed, thencd build
)make clean
(if build directory already exists)cmake .. -DTGTNAME=cpu1
make
exit
make clean
make
make checkout
Run the commands and check the picture generated (should be called pic.jpg) and verify it is a picture of someone holding the STF-1 Patch when the picture read is complete. Can also delete the picture file and run with FSW to prove that the picture is not being generated when running FSW due to the new switch in platform_cfg for generating the picture.
The following submodule PRs must be merged and updated first:
nasa-itc/arducam#8
Closes #462