test_lambertPlanner

test_lambertPlanner.test_lambertPlanner(show_plots, p1_revs, p2_tm, p3_tf, p4_eccs, accuracy)[source]

Validation Test Description

This test checks if the Lambert planner module works correctly for different number of revolutions, maneuver times, final times, and orbit eccentricities.

Test Parameters

Parameters:
  • show_plots – flag if plots should be shown

  • p1_revs – number of revolutions to be completed

  • p2_tm – maneuver time

  • p3_tf – final time

  • p4_eccs – eccentricity of orbit

Description of Variables Being Tested

The content of the LambertProblemMsg output message is compared with the true values. Most of the message content corresponds to the module input variables. The position vector r1_N of the message is obtained by integrating two body point mass equations of motion inside the module from the current time to the maneuver time maneuverTime. The true value for r1_N is obtained by solving Kepler’s equation using from current time to maneuver time and the given orbit elements.