Skip to content
Snippets Groups Projects
Commit f4f7f6d2 authored by James Goppert's avatar James Goppert
Browse files

Fixed merge.

parent 4ee9e740
No related branches found
No related tags found
No related merge requests found
......@@ -103,14 +103,10 @@ std::ostream &operator<<( std::ostream &out, const FGStateSpace::ComponentVector
}
std::ostream &operator<<( std::ostream &out, const FGStateSpace &ss )
{
<<<<<<< HEAD:src/FGStateSpace.cpp
out << "\nX:\n" << ss.x
<< "\nU:\n" << ss.u
<< "\nY:\n" << ss.y
<< std::ends;
=======
out << "\nX:\n" << ss.x << "U:\n" << ss.u;
>>>>>>> 10165810b45d2bee2ba62469f052564b67ff88ef:src/FGStateSpace.cpp
}
std::ostream &operator<<( std::ostream &out, const std::vector< std::vector<double> > &vec2d )
{
......
......@@ -820,7 +820,6 @@ int main (int argc, char const* argv[])
std::vector< std::vector<double> > A,B,C,D;
std::vector<double> x0 = ss.x.get(), u0 = ss.u.get();
<<<<<<< HEAD:src/Trim.cpp
std::vector<double> y0 = x0; // state feedback
std::cout << ss << std::endl;
......@@ -832,31 +831,6 @@ int main (int argc, char const* argv[])
std::cout << "\nC\n" << C << std::endl;
std::cout << "\nD\n" << D << std::endl;
std::cout << std::fixed;
=======
std::cout << ss;
ss.linearize(x0,u0,A,B);
std::cout << "A\n";
for (int i=0;i<A.size();i++)
{
for (int j=0;j<A[0].size();j++)
{
std::cout << "\t" << std::setw(10) << A[i][j];
}
std::cout << std::endl;
}
std::cout << "\nB\n";
for (int i=0;i<B.size();i++)
{
for (int j=0;j<B[0].size();j++)
{
std::cout << "\t" << std::setw(10) << B[i][j];
}
std::cout << std::endl;
}
>>>>>>> 10165810b45d2bee2ba62469f052564b67ff88ef:src/Trim.cpp
}
// vim:ts=4:sw=4
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment