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

TSD model control via composition of Q2D value functions #50

Merged
merged 24 commits into from
May 28, 2019
Merged

Conversation

avikde
Copy link
Owner

@avikde avikde commented May 12, 2019

Related to #44

Plan:
image

Todo:

  • get some information about the sim when using the current B--get more info from solve_ivp?

@avikde avikde changed the title indentation fix; add initial version of TSD model TSD model control via composition of Q2D value functions May 12, 2019
@avikde
Copy link
Owner Author

avikde commented May 13, 2019

Equations of motion

Doc - May 13 2019 - 12-06 PM - p1

  • before picking a rotation representation, use scipy to test qdot = omega for rotvec by comparing to a rot matrix

@avikde
Copy link
Owner Author

avikde commented May 13, 2019

Did that but not conclusive. For now, can store as rotvec, but in the dynamics function, convert to dcm

# test rotvec stuff
rrot1 = np.array([1, 2, 0.1])
r1 = Rotation.from_rotvec(rrot1)
omegab = np.array([0.3,-1,4.9])
R1 = r1.as_dcm()
dt = 0.001
dR = kinematics.skew(omegab * dt)
R2 = R1 @ scipy.linalg.expm(dR)
rrot2 = rrot1 + omegab * dt
print(Rotation.from_dcm(R2).as_rotvec(), rrot2)
sys.exit(0)

@avikde
Copy link
Owner Author

avikde commented May 14, 2019

Need to fix avikde/controlutils#10 first

@avikde
Copy link
Owner Author

avikde commented May 14, 2019

Till that fix, I implemented the linearization in Mathematica

image

@avikde avikde mentioned this pull request May 16, 2019
7 tasks
@avikde avikde merged commit 9459df1 into master May 28, 2019
@avikde avikde deleted the vfcomp branch June 3, 2019 20:27
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

Successfully merging this pull request may close these issues.

None yet

1 participant