Skip to content
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

PROTOTYPE_FSW doesn't do pointing for my spacecraft #138

Open
khavernathy opened this issue Aug 13, 2024 · 1 comment
Open

PROTOTYPE_FSW doesn't do pointing for my spacecraft #138

khavernathy opened this issue Aug 13, 2024 · 1 comment

Comments

@khavernathy
Copy link

khavernathy commented Aug 13, 2024

I have a simulation with Inp_Cmd.txt:

0.0 Point SC[0].B[0] Primary Vector [0.0 0.0 0.0] at EARTH

I get these warnings at every time step:

Warning: Primary Vector not defined for SC[0]
Warning: Secondary Vector not defined for SC[0]

The flight software seems unable to point the spacecraft. It just tumbles in the visualization. How do I define the Primary and Secondary vectors for my spacecraft? I could hardcode it in ThreeAxisAttitudeCommand() or PrototypeFSW() but seems like there might be input options for this...

I noticed that the N and R vectors are culprits, but digging through the code, I don't see any documentation that describes what they are.

            if (MAGV(PV->N) == 0.0 || MAGV(PV->R) == 0.0)
               printf("Warning: Primary Vector not defined for SC[%ld]\n",S->ID);
            if (MAGV(SV->N) == 0.0 || MAGV(SV->R) == 0.0)
               printf("Warning: Secondary Vector not defined for SC[%ld]\n",S->ID);
@ericstoneking
Copy link
Owner

You need both a Primary and Secondary vector to define your commanded attitude. Look in Demo/Inp_Cmd.txt for examples. Also look in Inp_Cmd.txt after the "EOF" tag for templates.

Also, your Primary Vector has zero length. You'll have better luck using a vector that has a defined direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants