diff --git a/test_suite/unit_tests/Autopilot/testPidController.cxx b/test_suite/unit_tests/Autopilot/testPidController.cxx index a3cbbb9e5..14161ef0d 100644 --- a/test_suite/unit_tests/Autopilot/testPidController.cxx +++ b/test_suite/unit_tests/Autopilot/testPidController.cxx @@ -38,18 +38,29 @@ SGPropertyNode_ptr PidControllerTests::configFromString(const std::string& s) return config; } -void PidControllerTests::test() +void PidControllerTests::test0() +{ + test(false /*startup_current*/); +} + +void PidControllerTests::test1() +{ + test(true /*startup_current*/); +} + +void PidControllerTests::test(bool startup_current) { sg_srandom(999); // Define vertical-hold pid-controller (based on Harrier-GR3). // - std::string config_text = + std::string config_text0 = R"( Vertical Speed Hold false + true /velocities/vertical-speed-fps @@ -80,6 +91,13 @@ void PidControllerTests::test() )"; + // Set the element. + std::string from = ""; + std::string config_text = config_text0; + config_text.replace(config_text.find(from), from.size(), + (startup_current) ? "true" : "false" + ); + assert(config_text != config_text0); std::cout << "config_text is:\n" << config_text << "\n"; SGPropertyNode_ptr config = configFromString(config_text); @@ -90,13 +108,14 @@ void PidControllerTests::test() ap->bind(); ap->init(); - assert(pidControllerInputs.size() == pidControllerOutputs.size()); + const std::vector& outputs = (startup_current) ? pidControllerOutputs1 : pidControllerOutputs0; + assert(pidControllerInputs.size() == outputs.size()); fgSetDouble("/controls/flight/elevator", 0); for (unsigned i=0; iupdate(0.00833333 /*dt*/); diff --git a/test_suite/unit_tests/Autopilot/testPidController.hxx b/test_suite/unit_tests/Autopilot/testPidController.hxx index f0f0e5c56..fb47f15bb 100644 --- a/test_suite/unit_tests/Autopilot/testPidController.hxx +++ b/test_suite/unit_tests/Autopilot/testPidController.hxx @@ -42,9 +42,10 @@ struct PidControllerTests : public CppUnit::TestFixture // Set up the test suite. CPPUNIT_TEST_SUITE(PidControllerTests); - CPPUNIT_TEST(test); + CPPUNIT_TEST(test0); + CPPUNIT_TEST(test1); CPPUNIT_TEST_SUITE_END(); SGPropertyNode_ptr configFromString(const std::string& s); - void test(); + void test(bool startup_zeros); }; diff --git a/test_suite/unit_tests/Autopilot/testPidControllerData.cxx b/test_suite/unit_tests/Autopilot/testPidControllerData.cxx index d9b9e38fa..595a8e239 100644 --- a/test_suite/unit_tests/Autopilot/testPidControllerData.cxx +++ b/test_suite/unit_tests/Autopilot/testPidControllerData.cxx @@ -2481,7 +2481,2488 @@ std::vector pidControllerInputs = { { 3.96242, 8.335}, }; -std::vector pidControllerOutputs = { +std::vector pidControllerOutputs1 = { + { -0.00318421}, + { -0.207863}, + { -0.0418555}, + { -0.0287449}, + { -0.0328319}, + { -0.0388736}, + { -0.0451531}, + { -0.0514856}, + { -0.0578435}, + { -0.0642317}, + { -0.0706376}, + { -0.077076}, + { -0.0835325}, + { -0.0900165}, + { -0.096526}, + { -0.103046}, + { -0.109592}, + { -0.116158}, + { -0.122738}, + { -0.129336}, + { -0.135952}, + { -0.14257}, + { -0.149198}, + { -0.155826}, + { -0.162454}, + { -0.16909}, + { -0.175721}, + { -0.182352}, + { -0.188978}, + { -0.195602}, + { -0.202224}, + { -0.208844}, + { -0.215457}, + { -0.22206}, + { -0.22865}, + { -0.235235}, + { -0.241803}, + { -0.248359}, + { -0.254897}, + { -0.261414}, + { -0.267915}, + { -0.274397}, + { -0.280852}, + { -0.287289}, + { -0.293697}, + { -0.300078}, + { -0.306429}, + { -0.312753}, + { -0.319048}, + { -0.325306}, + { -0.331535}, + { -0.337724}, + { -0.343882}, + { -0.350002}, + { -0.356076}, + { -0.362119}, + { -0.368116}, + { -0.374078}, + { -0.379991}, + { -0.385859}, + { -0.391685}, + { -0.397466}, + { -0.403199}, + { -0.408886}, + { -0.414526}, + { -0.420114}, + { -0.425653}, + { -0.431148}, + { -0.436586}, + { -0.441972}, + { -0.447311}, + { -0.452601}, + { -0.457831}, + { -0.463011}, + { -0.468145}, + { -0.473218}, + { -0.478241}, + { -0.483212}, + { -0.48813}, + { -0.492996}, + { -0.497813}, + { -0.502571}, + { -0.507283}, + { -0.511939}, + { -0.516548}, + { -0.5211}, + { -0.525599}, + { -0.53005}, + { -0.53445}, + { -0.538799}, + { -0.543102}, + { -0.547352}, + { -0.55155}, + { -0.555701}, + { -0.559804}, + { -0.563863}, + { -0.567865}, + { -0.571825}, + { -0.575739}, + { -0.579606}, + { -0.583426}, + { -0.587199}, + { -0.590935}, + { -0.594624}, + { -0.598273}, + { -0.601875}, + { -0.605443}, + { -0.608965}, + { -0.612456}, + { -0.615903}, + { -0.619316}, + { -0.622691}, + { -0.626029}, + { -0.629333}, + { -0.632608}, + { -0.635845}, + { -0.639051}, + { -0.642229}, + { -0.645378}, + { -0.64849}, + { -0.651579}, + { -0.65464}, + { -0.657673}, + { -0.660689}, + { -0.663665}, + { -0.666631}, + { -0.669566}, + { -0.67248}, + { -0.675371}, + { -0.678248}, + { -0.681097}, + { -0.683932}, + { -0.686749}, + { -0.689548}, + { -0.692327}, + { -0.695093}, + { -0.697848}, + { -0.700579}, + { -0.703307}, + { -0.706013}, + { -0.708713}, + { -0.711402}, + { -0.714074}, + { -0.716743}, + { -0.719398}, + { -0.722051}, + { -0.724688}, + { -0.727319}, + { -0.729946}, + { -0.732572}, + { -0.735183}, + { -0.737791}, + { -0.740402}, + { -0.743002}, + { -0.7456}, + { -0.74819}, + { -0.750756}, + { -0.753308}, + { -0.755841}, + { -0.758366}, + { -0.760881}, + { -0.763379}, + { -0.765868}, + { -0.76835}, + { -0.770818}, + { -0.77328}, + { -0.775732}, + { -0.778181}, + { -0.780623}, + { -0.783053}, + { -0.785484}, + { -0.787905}, + { -0.790331}, + { -0.792749}, + { -0.795169}, + { -0.797592}, + { -0.800011}, + { -0.802433}, + { -0.804851}, + { -0.807277}, + { -0.809707}, + { -0.81213}, + { -0.814566}, + { -0.817004}, + { -0.819444}, + { -0.821878}, + { -0.824319}, + { -0.826754}, + { -0.829192}, + { -0.831636}, + { -0.834083}, + { -0.836534}, + { -0.838989}, + { -0.841446}, + { -0.843907}, + { -0.846382}, + { -0.84886}, + { -0.851344}, + { -0.853839}, + { -0.856342}, + { -0.858849}, + { -0.861367}, + { -0.863899}, + { -0.866431}, + { -0.868974}, + { -0.871526}, + { -0.874092}, + { -0.876658}, + { -0.879241}, + { -0.88183}, + { -0.884432}, + { -0.887041}, + { -0.889657}, + { -0.892283}, + { -0.894922}, + { -0.897563}, + { -0.900214}, + { -0.902879}, + { -0.905551}, + { -0.908226}, + { -0.910917}, + { -0.913615}, + { -0.916317}, + { -0.919029}, + { -0.921751}, + { -0.924476}, + { -0.927207}, + { -0.929955}, + { -0.932699}, + { -0.935457}, + { -0.938219}, + { -0.940982}, + { -0.943759}, + { -0.946535}, + { -0.94932}, + { -0.952106}, + { -0.954901}, + { -0.957698}, + { -0.960498}, + { -0.963303}, + { -0.966111}, + { -0.968918}, + { -0.971732}, + { -0.974555}, + { -0.977374}, + { -0.9802}, + { -0.983025}, + { -0.985856}, + { -0.988687}, + { -0.991518}, + { -0.994346}, + { -0.997178}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -1}, + { -0.999992}, + { -0.999978}, + { -0.999958}, + { -0.999937}, + { -0.999907}, + { -0.999877}, + { -0.999837}, + { -0.999792}, + { -0.99974}, + { -0.999682}, + { -0.999623}, + { -0.999555}, + { -0.999481}, + { -0.999407}, + { -0.999323}, + { -0.999239}, + { -0.999146}, + { -0.999046}, + { -0.99894}, + { -0.998829}, + { -0.998716}, + { -0.998594}, + { -0.998472}, + { -0.99834}, + { -0.998203}, + { -0.998059}, + { -0.997914}, + { -0.997761}, + { -0.997601}, + { -0.997435}, + { -0.997263}, + { -0.997084}, + { -0.996905}, + { -0.996717}, + { -0.996522}, + { -0.996327}, + { -0.996117}, + { -0.995909}, + { -0.995693}, + { -0.995475}, + { -0.995238}, + { -0.99501}, + { -0.994766}, + { -0.994518}, + { -0.994269}, + { -0.994011}, + { -0.993747}, + { -0.993476}, + { -0.993205}, + { -0.992925}, + { -0.992633}, + { -0.992342}, + { -0.992043}, + { -0.991743}, + { -0.991429}, + { -0.991116}, + { -0.9908}, + { -0.990469}, + { -0.99014}, + { -0.989802}, + { -0.989463}, + { -0.989115}, + { -0.98876}, + { -0.988405}, + { -0.988035}, + { -0.987672}, + { -0.987298}, + { -0.986917}, + { -0.986535}, + { -0.986144}, + { -0.985752}, + { -0.985356}, + { -0.984946}, + { -0.984543}, + { -0.984123}, + { -0.983709}, + { -0.983284}, + { -0.982858}, + { -0.982428}, + { -0.981994}, + { -0.981552}, + { -0.981113}, + { -0.980657}, + { -0.980208}, + { -0.979748}, + { -0.979286}, + { -0.978825}, + { -0.978353}, + { -0.977885}, + { -0.977406}, + { -0.97693}, + { -0.976448}, + { -0.975962}, + { -0.975467}, + { -0.974976}, + { -0.974484}, + { -0.97398}, + { -0.97348}, + { -0.972974}, + { -0.972463}, + { -0.971955}, + { -0.971445}, + { -0.970928}, + { -0.970408}, + { -0.969884}, + { -0.969361}, + { -0.968837}, + { -0.968306}, + { -0.967772}, + { -0.967244}, + { -0.966707}, + { -0.966166}, + { -0.965632}, + { -0.965089}, + { -0.964547}, + { -0.963999}, + { -0.963452}, + { -0.962903}, + { -0.962349}, + { -0.961801}, + { -0.961244}, + { -0.960688}, + { -0.960131}, + { -0.959573}, + { -0.959013}, + { -0.958452}, + { -0.957885}, + { -0.957319}, + { -0.956758}, + { -0.956187}, + { -0.955617}, + { -0.955047}, + { -0.954475}, + { -0.953902}, + { -0.953328}, + { -0.952757}, + { -0.952173}, + { -0.951597}, + { -0.951018}, + { -0.950438}, + { -0.949857}, + { -0.949274}, + { -0.948696}, + { -0.948108}, + { -0.947522}, + { -0.94694}, + { -0.946349}, + { -0.945759}, + { -0.945168}, + { -0.944576}, + { -0.943988}, + { -0.943392}, + { -0.942796}, + { -0.942205}, + { -0.941605}, + { -0.941011}, + { -0.940414}, + { -0.93981}, + { -0.939213}, + { -0.938607}, + { -0.938008}, + { -0.9374}, + { -0.936799}, + { -0.936189}, + { -0.935585}, + { -0.934978}, + { -0.934364}, + { -0.933757}, + { -0.933142}, + { -0.932528}, + { -0.931913}, + { -0.931302}, + { -0.930682}, + { -0.930064}, + { -0.929444}, + { -0.928824}, + { -0.928203}, + { -0.927585}, + { -0.92696}, + { -0.92633}, + { -0.925707}, + { -0.92508}, + { -0.924448}, + { -0.923821}, + { -0.923187}, + { -0.922559}, + { -0.921922}, + { -0.921292}, + { -0.920654}, + { -0.920022}, + { -0.919381}, + { -0.918737}, + { -0.9181}, + { -0.917459}, + { -0.916817}, + { -0.916174}, + { -0.91553}, + { -0.91488}, + { -0.914237}, + { -0.913591}, + { -0.912938}, + { -0.912287}, + { -0.911635}, + { -0.910982}, + { -0.910328}, + { -0.909673}, + { -0.909018}, + { -0.908361}, + { -0.907703}, + { -0.907045}, + { -0.906386}, + { -0.905725}, + { -0.905064}, + { -0.904397}, + { -0.903737}, + { -0.903073}, + { -0.902403}, + { -0.90174}, + { -0.901074}, + { -0.900407}, + { -0.899739}, + { -0.899075}, + { -0.898403}, + { -0.897732}, + { -0.89706}, + { -0.896393}, + { -0.895717}, + { -0.895048}, + { -0.894376}, + { -0.893703}, + { -0.893034}, + { -0.892357}, + { -0.891686}, + { -0.891012}, + { -0.890338}, + { -0.889662}, + { -0.888986}, + { -0.888314}, + { -0.887639}, + { -0.886968}, + { -0.886294}, + { -0.885619}, + { -0.884943}, + { -0.884266}, + { -0.883594}, + { -0.882919}, + { -0.882248}, + { -0.881573}, + { -0.880898}, + { -0.880227}, + { -0.879553}, + { -0.878884}, + { -0.878211}, + { -0.877542}, + { -0.876865}, + { -0.876195}, + { -0.875527}, + { -0.874856}, + { -0.874184}, + { -0.873516}, + { -0.872851}, + { -0.872182}, + { -0.871512}, + { -0.870847}, + { -0.870184}, + { -0.869518}, + { -0.86885}, + { -0.868188}, + { -0.867522}, + { -0.866861}, + { -0.866202}, + { -0.865539}, + { -0.864881}, + { -0.86422}, + { -0.863563}, + { -0.862909}, + { -0.862246}, + { -0.861595}, + { -0.860934}, + { -0.860285}, + { -0.85963}, + { -0.85898}, + { -0.858326}, + { -0.857677}, + { -0.857031}, + { -0.856381}, + { -0.85573}, + { -0.855085}, + { -0.854441}, + { -0.853794}, + { -0.853147}, + { -0.852509}, + { -0.851867}, + { -0.851223}, + { -0.850584}, + { -0.849947}, + { -0.849307}, + { -0.848672}, + { -0.848034}, + { -0.847395}, + { -0.846761}, + { -0.84613}, + { -0.845495}, + { -0.844865}, + { -0.844238}, + { -0.843602}, + { -0.842978}, + { -0.842349}, + { -0.84172}, + { -0.841095}, + { -0.840468}, + { -0.839845}, + { -0.839219}, + { -0.838598}, + { -0.83798}, + { -0.837359}, + { -0.836737}, + { -0.836119}, + { -0.835505}, + { -0.834882}, + { -0.834266}, + { -0.833653}, + { -0.833037}, + { -0.832426}, + { -0.831812}, + { -0.831198}, + { -0.830589}, + { -0.829982}, + { -0.829372}, + { -0.828767}, + { -0.828159}, + { -0.827551}, + { -0.826948}, + { -0.826342}, + { -0.825741}, + { -0.825138}, + { -0.824539}, + { -0.823938}, + { -0.823336}, + { -0.822739}, + { -0.822145}, + { -0.821542}, + { -0.820953}, + { -0.820353}, + { -0.81976}, + { -0.81917}, + { -0.818573}, + { -0.817987}, + { -0.817392}, + { -0.816804}, + { -0.816218}, + { -0.81563}, + { -0.815042}, + { -0.814459}, + { -0.813873}, + { -0.813292}, + { -0.812708}, + { -0.812125}, + { -0.811546}, + { -0.810965}, + { -0.810389}, + { -0.80981}, + { -0.809232}, + { -0.808658}, + { -0.808087}, + { -0.807508}, + { -0.806937}, + { -0.806369}, + { -0.805798}, + { -0.805226}, + { -0.80466}, + { -0.804092}, + { -0.803528}, + { -0.802962}, + { -0.802402}, + { -0.801838}, + { -0.801275}, + { -0.800717}, + { -0.800156}, + { -0.799601}, + { -0.799043}, + { -0.79849}, + { -0.797935}, + { -0.79738}, + { -0.79683}, + { -0.796278}, + { -0.79573}, + { -0.795181}, + { -0.794636}, + { -0.79409}, + { -0.793543}, + { -0.793001}, + { -0.792463}, + { -0.791917}, + { -0.791383}, + { -0.79084}, + { -0.790309}, + { -0.789769}, + { -0.789236}, + { -0.788706}, + { -0.788174}, + { -0.787647}, + { -0.787118}, + { -0.786588}, + { -0.786064}, + { -0.785538}, + { -0.785018}, + { -0.7845}, + { -0.783979}, + { -0.783459}, + { -0.782944}, + { -0.782427}, + { -0.781916}, + { -0.781402}, + { -0.780888}, + { -0.780379}, + { -0.779874}, + { -0.779367}, + { -0.778864}, + { -0.77836}, + { -0.777855}, + { -0.777356}, + { -0.77686}, + { -0.776357}, + { -0.775867}, + { -0.775367}, + { -0.77488}, + { -0.774383}, + { -0.773894}, + { -0.773408}, + { -0.77292}, + { -0.772432}, + { -0.77195}, + { -0.771466}, + { -0.770988}, + { -0.770508}, + { -0.77003}, + { -0.769553}, + { -0.769077}, + { -0.768604}, + { -0.768132}, + { -0.767662}, + { -0.767193}, + { -0.766725}, + { -0.766259}, + { -0.765795}, + { -0.765332}, + { -0.76487}, + { -0.76441}, + { -0.763952}, + { -0.763495}, + { -0.763039}, + { -0.762585}, + { -0.762133}, + { -0.761682}, + { -0.761233}, + { -0.760783}, + { -0.760337}, + { -0.759893}, + { -0.759451}, + { -0.759008}, + { -0.758569}, + { -0.75813}, + { -0.757693}, + { -0.757257}, + { -0.756822}, + { -0.756389}, + { -0.755957}, + { -0.755528}, + { -0.755101}, + { -0.754672}, + { -0.754247}, + { -0.753823}, + { -0.7534}, + { -0.752979}, + { -0.752559}, + { -0.752139}, + { -0.751722}, + { -0.751306}, + { -0.750892}, + { -0.750479}, + { -0.750067}, + { -0.749657}, + { -0.749248}, + { -0.748841}, + { -0.748434}, + { -0.748029}, + { -0.747625}, + { -0.747223}, + { -0.746823}, + { -0.746423}, + { -0.746025}, + { -0.745628}, + { -0.745233}, + { -0.744838}, + { -0.744445}, + { -0.744053}, + { -0.743663}, + { -0.743274}, + { -0.742886}, + { -0.742501}, + { -0.742115}, + { -0.741732}, + { -0.741349}, + { -0.740968}, + { -0.740588}, + { -0.740209}, + { -0.739832}, + { -0.739456}, + { -0.739082}, + { -0.738707}, + { -0.738336}, + { -0.737965}, + { -0.737595}, + { -0.737226}, + { -0.736859}, + { -0.736493}, + { -0.736128}, + { -0.735765}, + { -0.735402}, + { -0.735042}, + { -0.734683}, + { -0.734325}, + { -0.733968}, + { -0.733613}, + { -0.733259}, + { -0.732905}, + { -0.732554}, + { -0.732204}, + { -0.731855}, + { -0.731507}, + { -0.731161}, + { -0.730816}, + { -0.730472}, + { -0.73013}, + { -0.729789}, + { -0.72945}, + { -0.729111}, + { -0.728775}, + { -0.728439}, + { -0.728104}, + { -0.727772}, + { -0.72744}, + { -0.727111}, + { -0.726782}, + { -0.726455}, + { -0.726129}, + { -0.725804}, + { -0.725481}, + { -0.725158}, + { -0.724839}, + { -0.724519}, + { -0.724201}, + { -0.723885}, + { -0.72357}, + { -0.723256}, + { -0.722943}, + { -0.722632}, + { -0.722322}, + { -0.722014}, + { -0.721706}, + { -0.721401}, + { -0.721096}, + { -0.720793}, + { -0.720492}, + { -0.720192}, + { -0.719893}, + { -0.719595}, + { -0.719299}, + { -0.719004}, + { -0.718711}, + { -0.718418}, + { -0.718127}, + { -0.717838}, + { -0.71755}, + { -0.717264}, + { -0.716978}, + { -0.716694}, + { -0.716411}, + { -0.716129}, + { -0.715849}, + { -0.71557}, + { -0.715292}, + { -0.715017}, + { -0.714741}, + { -0.714468}, + { -0.714196}, + { -0.713925}, + { -0.713656}, + { -0.713388}, + { -0.71312}, + { -0.712855}, + { -0.71259}, + { -0.712327}, + { -0.712065}, + { -0.711805}, + { -0.711546}, + { -0.711287}, + { -0.71103}, + { -0.710774}, + { -0.71052}, + { -0.710266}, + { -0.710014}, + { -0.709763}, + { -0.709513}, + { -0.709266}, + { -0.709019}, + { -0.708773}, + { -0.708528}, + { -0.708284}, + { -0.708042}, + { -0.707802}, + { -0.707561}, + { -0.707322}, + { -0.707085}, + { -0.706849}, + { -0.706613}, + { -0.706379}, + { -0.706147}, + { -0.705915}, + { -0.705685}, + { -0.705456}, + { -0.705227}, + { -0.705}, + { -0.704774}, + { -0.704549}, + { -0.704326}, + { -0.704103}, + { -0.703882}, + { -0.703662}, + { -0.703442}, + { -0.703224}, + { -0.703008}, + { -0.702792}, + { -0.702577}, + { -0.702364}, + { -0.702151}, + { -0.701939}, + { -0.701729}, + { -0.70152}, + { -0.701311}, + { -0.701103}, + { -0.700898}, + { -0.700692}, + { -0.700488}, + { -0.700285}, + { -0.700083}, + { -0.699882}, + { -0.699682}, + { -0.699483}, + { -0.699285}, + { -0.699089}, + { -0.698893}, + { -0.698699}, + { -0.698504}, + { -0.698313}, + { -0.698121}, + { -0.69793}, + { -0.69774}, + { -0.697553}, + { -0.697365}, + { -0.697179}, + { -0.696994}, + { -0.69681}, + { -0.696627}, + { -0.696445}, + { -0.696264}, + { -0.696084}, + { -0.695904}, + { -0.695727}, + { -0.69555}, + { -0.695374}, + { -0.695199}, + { -0.695026}, + { -0.694853}, + { -0.694681}, + { -0.69451}, + { -0.694341}, + { -0.694172}, + { -0.694005}, + { -0.693839}, + { -0.693673}, + { -0.693509}, + { -0.693345}, + { -0.693182}, + { -0.69302}, + { -0.69286}, + { -0.692701}, + { -0.692542}, + { -0.692384}, + { -0.692228}, + { -0.692073}, + { -0.691919}, + { -0.691765}, + { -0.691613}, + { -0.691462}, + { -0.691312}, + { -0.691163}, + { -0.691014}, + { -0.690867}, + { -0.690721}, + { -0.690576}, + { -0.690432}, + { -0.690289}, + { -0.690147}, + { -0.690006}, + { -0.689866}, + { -0.689727}, + { -0.689589}, + { -0.689452}, + { -0.689316}, + { -0.689181}, + { -0.689048}, + { -0.688915}, + { -0.688782}, + { -0.68865}, + { -0.688519}, + { -0.68839}, + { -0.688261}, + { -0.688134}, + { -0.688007}, + { -0.687881}, + { -0.687757}, + { -0.687633}, + { -0.68751}, + { -0.687386}, + { -0.687265}, + { -0.687144}, + { -0.687025}, + { -0.686906}, + { -0.686788}, + { -0.686672}, + { -0.686556}, + { -0.686441}, + { -0.686328}, + { -0.686214}, + { -0.686101}, + { -0.68599}, + { -0.68588}, + { -0.68577}, + { -0.685662}, + { -0.685555}, + { -0.685448}, + { -0.685343}, + { -0.685238}, + { -0.685134}, + { -0.68503}, + { -0.684928}, + { -0.684827}, + { -0.684727}, + { -0.684627}, + { -0.684529}, + { -0.684432}, + { -0.684336}, + { -0.684241}, + { -0.684146}, + { -0.684051}, + { -0.683958}, + { -0.683866}, + { -0.683774}, + { -0.683684}, + { -0.683595}, + { -0.683506}, + { -0.683419}, + { -0.683332}, + { -0.683247}, + { -0.683162}, + { -0.683077}, + { -0.682993}, + { -0.68291}, + { -0.682828}, + { -0.682747}, + { -0.682667}, + { -0.682588}, + { -0.68251}, + { -0.682432}, + { -0.682356}, + { -0.68228}, + { -0.682205}, + { -0.682131}, + { -0.682057}, + { -0.681985}, + { -0.681913}, + { -0.681842}, + { -0.681772}, + { -0.681703}, + { -0.681635}, + { -0.681568}, + { -0.6815}, + { -0.681434}, + { -0.681369}, + { -0.681304}, + { -0.681241}, + { -0.681178}, + { -0.681117}, + { -0.681055}, + { -0.680995}, + { -0.680936}, + { -0.680877}, + { -0.680819}, + { -0.680761}, + { -0.680704}, + { -0.680649}, + { -0.680593}, + { -0.68054}, + { -0.680486}, + { -0.680434}, + { -0.680382}, + { -0.680331}, + { -0.680281}, + { -0.680232}, + { -0.680182}, + { -0.680134}, + { -0.680086}, + { -0.680039}, + { -0.679993}, + { -0.679947}, + { -0.679903}, + { -0.679859}, + { -0.679816}, + { -0.679774}, + { -0.679731}, + { -0.67969}, + { -0.679649}, + { -0.67961}, + { -0.679571}, + { -0.679534}, + { -0.679496}, + { -0.679459}, + { -0.679423}, + { -0.679388}, + { -0.679354}, + { -0.679319}, + { -0.679285}, + { -0.679253}, + { -0.679222}, + { -0.67919}, + { -0.679159}, + { -0.67913}, + { -0.679101}, + { -0.679073}, + { -0.679045}, + { -0.679019}, + { -0.67899}, + { -0.678963}, + { -0.678937}, + { -0.678912}, + { -0.678887}, + { -0.678864}, + { -0.67884}, + { -0.678818}, + { -0.678797}, + { -0.678776}, + { -0.678756}, + { -0.678734}, + { -0.678713}, + { -0.678694}, + { -0.678675}, + { -0.678658}, + { -0.67864}, + { -0.678624}, + { -0.678608}, + { -0.678594}, + { -0.67858}, + { -0.678566}, + { -0.678551}, + { -0.678537}, + { -0.678526}, + { -0.678514}, + { -0.678504}, + { -0.678494}, + { -0.678484}, + { -0.678476}, + { -0.678468}, + { -0.678461}, + { -0.678455}, + { -0.678447}, + { -0.678441}, + { -0.678436}, + { -0.678432}, + { -0.678428}, + { -0.678426}, + { -0.678424}, + { -0.678423}, + { -0.678423}, + { -0.678422}, + { -0.678424}, + { -0.678423}, + { -0.678425}, + { -0.678428}, + { -0.67843}, + { -0.678435}, + { -0.678439}, + { -0.678445}, + { -0.678451}, + { -0.678458}, + { -0.678466}, + { -0.678474}, + { -0.678482}, + { -0.67849}, + { -0.6785}, + { -0.67851}, + { -0.678521}, + { -0.678532}, + { -0.678545}, + { -0.678558}, + { -0.678572}, + { -0.678588}, + { -0.678602}, + { -0.678619}, + { -0.678634}, + { -0.67865}, + { -0.678668}, + { -0.678686}, + { -0.678706}, + { -0.678725}, + { -0.678745}, + { -0.678766}, + { -0.678788}, + { -0.678811}, + { -0.678832}, + { -0.678855}, + { -0.678879}, + { -0.678903}, + { -0.678928}, + { -0.678954}, + { -0.67898}, + { -0.679007}, + { -0.679035}, + { -0.679063}, + { -0.679092}, + { -0.679121}, + { -0.679149}, + { -0.67918}, + { -0.67921}, + { -0.679242}, + { -0.679274}, + { -0.679305}, + { -0.67934}, + { -0.679373}, + { -0.679407}, + { -0.679442}, + { -0.679476}, + { -0.679511}, + { -0.679546}, + { -0.679583}, + { -0.67962}, + { -0.679656}, + { -0.679695}, + { -0.679733}, + { -0.679772}, + { -0.679812}, + { -0.679852}, + { -0.679892}, + { -0.679932}, + { -0.679973}, + { -0.680015}, + { -0.680057}, + { -0.6801}, + { -0.680144}, + { -0.680187}, + { -0.680232}, + { -0.680276}, + { -0.680322}, + { -0.680369}, + { -0.680416}, + { -0.680463}, + { -0.680512}, + { -0.68056}, + { -0.680609}, + { -0.680658}, + { -0.680709}, + { -0.680759}, + { -0.680811}, + { -0.680861}, + { -0.680914}, + { -0.680962}, + { -0.681013}, + { -0.681064}, + { -0.681116}, + { -0.681168}, + { -0.681222}, + { -0.681275}, + { -0.681329}, + { -0.681383}, + { -0.681439}, + { -0.681494}, + { -0.681548}, + { -0.681603}, + { -0.681659}, + { -0.681715}, + { -0.681772}, + { -0.68183}, + { -0.681888}, + { -0.681946}, + { -0.682005}, + { -0.682063}, + { -0.682123}, + { -0.682182}, + { -0.682243}, + { -0.682303}, + { -0.682364}, + { -0.682426}, + { -0.682487}, + { -0.682551}, + { -0.682613}, + { -0.682678}, + { -0.682741}, + { -0.682806}, + { -0.682869}, + { -0.682934}, + { -0.683}, + { -0.683066}, + { -0.683132}, + { -0.683199}, + { -0.683267}, + { -0.683335}, + { -0.683403}, + { -0.683473}, + { -0.683542}, + { -0.683611}, + { -0.68368}, + { -0.683751}, + { -0.683822}, + { -0.683894}, + { -0.683966}, + { -0.684038}, + { -0.684111}, + { -0.684184}, + { -0.684259}, + { -0.684333}, + { -0.684407}, + { -0.684481}, + { -0.684556}, + { -0.684632}, + { -0.684708}, + { -0.684785}, + { -0.684862}, + { -0.684939}, + { -0.685017}, + { -0.685095}, + { -0.685174}, + { -0.685253}, + { -0.685333}, + { -0.685412}, + { -0.685493}, + { -0.685573}, + { -0.685655}, + { -0.685736}, + { -0.685818}, + { -0.6859}, + { -0.685984}, + { -0.686067}, + { -0.68615}, + { -0.686234}, + { -0.686318}, + { -0.686403}, + { -0.686488}, + { -0.686574}, + { -0.68666}, + { -0.686747}, + { -0.686833}, + { -0.686921}, + { -0.687009}, + { -0.687096}, + { -0.687184}, + { -0.687273}, + { -0.687361}, + { -0.687451}, + { -0.687541}, + { -0.687632}, + { -0.687722}, + { -0.687813}, + { -0.687905}, + { -0.687997}, + { -0.688089}, + { -0.68818}, + { -0.688273}, + { -0.688365}, + { -0.68846}, + { -0.688553}, + { -0.688647}, + { -0.688741}, + { -0.688836}, + { -0.688932}, + { -0.689028}, + { -0.689124}, + { -0.68922}, + { -0.689317}, + { -0.689415}, + { -0.689513}, + { -0.689611}, + { -0.689709}, + { -0.689808}, + { -0.689907}, + { -0.690006}, + { -0.690107}, + { -0.690207}, + { -0.690308}, + { -0.690409}, + { -0.69051}, + { -0.690613}, + { -0.690714}, + { -0.690818}, + { -0.69092}, + { -0.691023}, + { -0.691127}, + { -0.691231}, + { -0.691336}, + { -0.69144}, + { -0.691545}, + { -0.691651}, + { -0.691757}, + { -0.691862}, + { -0.691969}, + { -0.692074}, + { -0.692182}, + { -0.69229}, + { -0.692396}, + { -0.692505}, + { -0.692612}, + { -0.692721}, + { -0.69283}, + { -0.692938}, + { -0.693047}, + { -0.693157}, + { -0.693267}, + { -0.693376}, + { -0.693486}, + { -0.693597}, + { -0.693708}, + { -0.693819}, + { -0.693931}, + { -0.694042}, + { -0.694155}, + { -0.694266}, + { -0.694379}, + { -0.694492}, + { -0.694605}, + { -0.694718}, + { -0.694831}, + { -0.694946}, + { -0.69506}, + { -0.695174}, + { -0.695289}, + { -0.695404}, + { -0.695519}, + { -0.695634}, + { -0.69575}, + { -0.695866}, + { -0.695982}, + { -0.696098}, + { -0.696215}, + { -0.696332}, + { -0.69645}, + { -0.696567}, + { -0.696685}, + { -0.696803}, + { -0.696921}, + { -0.69704}, + { -0.697158}, + { -0.697278}, + { -0.697397}, + { -0.697517}, + { -0.697636}, + { -0.697756}, + { -0.697876}, + { -0.697996}, + { -0.698117}, + { -0.698238}, + { -0.698359}, + { -0.69848}, + { -0.698602}, + { -0.698724}, + { -0.698846}, + { -0.698968}, + { -0.699091}, + { -0.699214}, + { -0.699338}, + { -0.699461}, + { -0.699585}, + { -0.699709}, + { -0.699833}, + { -0.699958}, + { -0.700083}, + { -0.700207}, + { -0.700334}, + { -0.700459}, + { -0.700585}, + { -0.700712}, + { -0.700838}, + { -0.700965}, + { -0.701092}, + { -0.701219}, + { -0.701347}, + { -0.701475}, + { -0.701603}, + { -0.701732}, + { -0.70186}, + { -0.701989}, + { -0.702119}, + { -0.702248}, + { -0.702377}, + { -0.702508}, + { -0.702639}, + { -0.702769}, + { -0.7029}, + { -0.703031}, + { -0.703163}, + { -0.703294}, + { -0.703426}, + { -0.703559}, + { -0.703691}, + { -0.703823}, + { -0.703956}, + { -0.704089}, + { -0.704223}, + { -0.704357}, + { -0.704491}, + { -0.704625}, + { -0.70476}, + { -0.704895}, + { -0.70503}, + { -0.705166}, + { -0.705301}, + { -0.705437}, + { -0.705573}, + { -0.70571}, + { -0.705847}, + { -0.705984}, + { -0.706121}, + { -0.706258}, + { -0.706396}, + { -0.706534}, + { -0.706672}, + { -0.706811}, + { -0.70695}, + { -0.707089}, + { -0.707228}, + { -0.707367}, + { -0.707507}, + { -0.707647}, + { -0.707787}, + { -0.707928}, + { -0.708069}, + { -0.70821}, + { -0.70835}, + { -0.708493}, + { -0.708634}, + { -0.708776}, + { -0.708918}, + { -0.70906}, + { -0.709202}, + { -0.709345}, + { -0.709487}, + { -0.70963}, + { -0.709774}, + { -0.709917}, + { -0.710061}, + { -0.710205}, + { -0.710349}, + { -0.710494}, + { -0.710638}, + { -0.710782}, + { -0.710928}, + { -0.711073}, + { -0.711218}, + { -0.711364}, + { -0.71151}, + { -0.711656}, + { -0.711802}, + { -0.711948}, + { -0.712095}, + { -0.712242}, + { -0.71239}, + { -0.712536}, + { -0.712684}, + { -0.712831}, + { -0.712979}, + { -0.713127}, + { -0.713275}, + { -0.713424}, + { -0.713571}, + { -0.713721}, + { -0.713869}, + { -0.714019}, + { -0.714168}, + { -0.714317}, + { -0.714467}, + { -0.714616}, + { -0.714766}, + { -0.714916}, + { -0.715067}, + { -0.715217}, + { -0.715368}, + { -0.715519}, + { -0.715669}, + { -0.71582}, + { -0.715971}, + { -0.716122}, + { -0.716274}, + { -0.716426}, + { -0.716577}, + { -0.71673}, + { -0.716881}, + { -0.717034}, + { -0.717187}, + { -0.717339}, + { -0.717492}, + { -0.717645}, + { -0.717798}, + { -0.717951}, + { -0.718105}, + { -0.718258}, + { -0.718413}, + { -0.718566}, + { -0.71872}, + { -0.718875}, + { -0.71903}, + { -0.719184}, + { -0.719338}, + { -0.719494}, + { -0.719649}, + { -0.719805}, + { -0.71996}, + { -0.720116}, + { -0.720272}, + { -0.720427}, + { -0.720584}, + { -0.72074}, + { -0.720896}, + { -0.721053}, + { -0.72121}, + { -0.721367}, + { -0.721524}, + { -0.721681}, + { -0.721839}, + { -0.721997}, + { -0.722155}, + { -0.722312}, + { -0.72247}, + { -0.722628}, + { -0.722786}, + { -0.722945}, + { -0.723103}, + { -0.723262}, + { -0.723421}, + { -0.72358}, + { -0.72374}, + { -0.723899}, + { -0.724058}, + { -0.724219}, + { -0.724378}, + { -0.724538}, + { -0.724699}, + { -0.724859}, + { -0.72502}, + { -0.725181}, + { -0.725342}, + { -0.725503}, + { -0.725665}, + { -0.725826}, + { -0.725988}, + { -0.72615}, + { -0.726312}, + { -0.726474}, + { -0.726637}, + { -0.7268}, + { -0.726963}, + { -0.727125}, + { -0.727289}, + { -0.727452}, + { -0.727616}, + { -0.727779}, + { -0.727943}, + { -0.728107}, + { -0.728271}, + { -0.728436}, + { -0.728601}, + { -0.728765}, + { -0.72893}, + { -0.729095}, + { -0.72926}, + { -0.729425}, + { -0.72959}, + { -0.729755}, + { -0.729921}, + { -0.730087}, + { -0.730252}, + { -0.730419}, + { -0.730585}, + { -0.730752}, + { -0.730918}, + { -0.731085}, + { -0.731251}, + { -0.731419}, + { -0.731586}, + { -0.731753}, + { -0.73192}, + { -0.732088}, + { -0.732256}, + { -0.732424}, + { -0.732592}, + { -0.73276}, + { -0.732929}, + { -0.733097}, + { -0.733266}, + { -0.733435}, + { -0.733604}, + { -0.733773}, + { -0.733942}, + { -0.734112}, + { -0.734281}, + { -0.734451}, + { -0.734621}, + { -0.734791}, + { -0.73496}, + { -0.735131}, + { -0.735301}, + { -0.735472}, + { -0.735642}, + { -0.735814}, + { -0.735984}, + { -0.736156}, + { -0.736327}, + { -0.736499}, + { -0.73667}, + { -0.736841}, + { -0.737012}, + { -0.737184}, + { -0.737355}, + { -0.737528}, + { -0.737699}, + { -0.737871}, + { -0.738044}, + { -0.738216}, + { -0.738388}, + { -0.738561}, + { -0.738733}, + { -0.738906}, + { -0.739079}, + { -0.739252}, + { -0.739425}, + { -0.739598}, + { -0.739771}, + { -0.739945}, + { -0.740118}, + { -0.740291}, + { -0.740465}, + { -0.740639}, + { -0.740813}, + { -0.740987}, + { -0.741161}, + { -0.741335}, + { -0.74151}, + { -0.741685}, + { -0.741859}, + { -0.742033}, + { -0.742208}, + { -0.742383}, + { -0.742558}, + { -0.742733}, + { -0.742908}, + { -0.743083}, + { -0.743259}, + { -0.743435}, + { -0.74361}, + { -0.743786}, + { -0.743962}, + { -0.744137}, + { -0.744313}, + { -0.744488}, + { -0.744664}, + { -0.74484}, + { -0.745017}, + { -0.745192}, + { -0.745369}, + { -0.745545}, + { -0.745722}, + { -0.745899}, + { -0.746075}, + { -0.746252}, + { -0.746429}, + { -0.746606}, + { -0.746783}, + { -0.74696}, + { -0.747138}, + { -0.747315}, + { -0.747493}, + { -0.747671}, + { -0.747848}, + { -0.748026}, + { -0.748203}, + { -0.748382}, + { -0.74856}, + { -0.748739}, + { -0.748917}, + { -0.749096}, + { -0.749274}, + { -0.749453}, + { -0.749632}, + { -0.749811}, + { -0.74999}, + { -0.75017}, + { -0.750348}, + { -0.750528}, + { -0.750708}, + { -0.750888}, + { -0.751067}, + { -0.751247}, + { -0.751428}, + { -0.751608}, + { -0.751788}, + { -0.751969}, + { -0.752148}, + { -0.752329}, + { -0.752509}, + { -0.75269}, + { -0.75287}, + { -0.753051}, + { -0.753233}, + { -0.753413}, + { -0.753595}, + { -0.753776}, + { -0.753957}, + { -0.754139}, + { -0.75432}, + { -0.754502}, + { -0.754684}, + { -0.754866}, + { -0.755048}, + { -0.75523}, + { -0.755413}, + { -0.755595}, + { -0.755777}, + { -0.75596}, + { -0.756143}, + { -0.756326}, + { -0.756508}, + { -0.756692}, + { -0.756876}, + { -0.757059}, + { -0.757242}, + { -0.757425}, + { -0.757609}, + { -0.757793}, + { -0.757977}, + { -0.758161}, + { -0.758345}, + { -0.75853}, + { -0.758713}, + { -0.758898}, + { -0.759083}, + { -0.759268}, + { -0.759452}, + { -0.759637}, + { -0.759822}, + { -0.760007}, + { -0.760191}, + { -0.760376}, + { -0.760562}, + { -0.760747}, + { -0.760932}, + { -0.761118}, + { -0.761303}, + { -0.761489}, + { -0.761675}, + { -0.76186}, + { -0.762047}, + { -0.762232}, + { -0.762419}, + { -0.762605}, + { -0.762792}, + { -0.762978}, + { -0.763164}, + { -0.763352}, + { -0.763538}, + { -0.763724}, + { -0.763912}, + { -0.764098}, + { -0.764286}, + { -0.764472}, + { -0.76466}, + { -0.764847}, + { -0.765035}, + { -0.765222}, + { -0.76541}, + { -0.765597}, + { -0.765785}, + { -0.765973}, + { -0.766161}, + { -0.766349}, + { -0.766537}, + { -0.766725}, + { -0.766914}, + { -0.767102}, + { -0.76729}, + { -0.767479}, + { -0.767668}, + { -0.767856}, + { -0.768045}, + { -0.768233}, + { -0.768422}, + { -0.76861}, + { -0.7688}, + { -0.768988}, + { -0.769177}, + { -0.769366}, + { -0.769555}, + { -0.769744}, + { -0.769934}, + { -0.770123}, + { -0.770313}, + { -0.770502}, + { -0.770692}, + { -0.770881}, + { -0.771071}, + { -0.771261}, + { -0.77145}, + { -0.77164}, + { -0.77183}, + { -0.77202}, + { -0.772211}, + { -0.772401}, + { -0.772591}, + { -0.772782}, + { -0.772971}, + { -0.773163}, + { -0.773353}, + { -0.773544}, + { -0.773735}, + { -0.773926}, + { -0.774116}, + { -0.774307}, + { -0.774499}, + { -0.77469}, + { -0.774881}, + { -0.775072}, + { -0.775264}, + { -0.775455}, + { -0.775646}, + { -0.775838}, + { -0.77603}, + { -0.776221}, + { -0.776412}, + { -0.776604}, + { -0.776795}, + { -0.776987}, + { -0.777179}, + { -0.777371}, + { -0.777563}, + { -0.777755}, + { -0.777947}, + { -0.778139}, + { -0.778331}, + { -0.778523}, + { -0.778715}, + { -0.778908}, + { -0.7791}, + { -0.779293}, + { -0.779485}, + { -0.779678}, + { -0.77987}, + { -0.780063}, + { -0.780256}, + { -0.780449}, + { -0.780642}, + { -0.780836}, + { -0.781028}, + { -0.781222}, + { -0.781415}, + { -0.781609}, + { -0.781802}, + { -0.781996}, + { -0.782189}, + { -0.782383}, + { -0.782577}, + { -0.782771}, + { -0.782965}, + { -0.783159}, + { -0.783353}, + { -0.783547}, + { -0.783741}, + { -0.783935}, + { -0.78413}, + { -0.784324}, + { -0.784519}, + { -0.784714}, + { -0.784908}, + { -0.785102}, + { -0.785296}, + { -0.785491}, + { -0.785686}, + { -0.785881}, + { -0.786075}, + { -0.78627}, + { -0.786466}, + { -0.786661}, + { -0.786855}, + { -0.78705}, + { -0.787245}, + { -0.78744}, + { -0.787636}, + { -0.787831}, + { -0.788027}, + { -0.788222}, + { -0.788418}, + { -0.788613}, + { -0.788809}, + { -0.789005}, + { -0.7892}, + { -0.789396}, + { -0.789591}, + { -0.789788}, + { -0.789983}, + { -0.790179}, + { -0.790375}, + { -0.790572}, + { -0.790768}, + { -0.790964}, + { -0.79116}, + { -0.791357}, + { -0.791553}, + { -0.791749}, + { -0.791945}, + { -0.792143}, + { -0.792339}, + { -0.792535}, + { -0.792732}, + { -0.79293}, + { -0.793126}, + { -0.793322}, + { -0.793518}, + { -0.793715}, + { -0.793912}, + { -0.794109}, + { -0.794306}, + { -0.794502}, + { -0.7947}, + { -0.794896}, + { -0.795094}, + { -0.795291}, + { -0.795488}, + { -0.795685}, +}; + +std::vector pidControllerOutputs0 = { { -1}, { 0.619054}, { 0.785061}, diff --git a/test_suite/unit_tests/Autopilot/testPidControllerData.hxx b/test_suite/unit_tests/Autopilot/testPidControllerData.hxx index 4b8ca2ef9..dd52fb06d 100644 --- a/test_suite/unit_tests/Autopilot/testPidControllerData.hxx +++ b/test_suite/unit_tests/Autopilot/testPidControllerData.hxx @@ -14,11 +14,17 @@ struct PidControllerOutput }; // Define sequence of input values. These are the values actually used with -// Harrier-GR3 when startup_zeros=false, but we use the same inputs for -// startup_zeros=true also. +// Harrier-GR3 when startup_current=true, but we use the same inputs for +// startup_current=false also. // extern std::vector pidControllerInputs; -// Expected output. +// Expected output when startup_current is false (the default old behaviour). // -extern std::vector pidControllerOutputs; +// Note the large transient at the start which messes up the initial behaviour. +// +extern std::vector pidControllerOutputs0; + +// Expected output when startup_current is true (the new improved behaviour). +// +extern std::vector pidControllerOutputs1;