1
0
mirror of https://gitlab.com/lander-team/lander-cpp.git synced 2025-07-23 14:41:25 +00:00

Now printing entire sim to simOut.csv on SD card

This commit is contained in:
bpmcgeeney
2021-11-04 21:24:55 -07:00
parent c06693e6aa
commit a305b9599e
4 changed files with 119 additions and 36 deletions

View File

@@ -117,6 +117,10 @@ void write2CSV(outVector &stateVector, Vehicle &State) {
}
void printSimResults(Vehicle &State) {
State.yaw = State.yaw * 180 / M_PI;
State.pitch = State.pitch * 180 / M_PI;
State.roll = State.roll * 180 / M_PI;
double landing_angle =
pow(State.yaw * State.yaw + State.pitch * State.pitch, .5);