Got plotting working
This commit is contained in:
@@ -14,19 +14,19 @@
|
||||
@test laguerre_conway(start, μs["Earth"], stepsize) ≈ propped[1]
|
||||
|
||||
# Test that Laguerre-Conway is the default propagator for spacecrafts
|
||||
craft = sc("no_thrust")
|
||||
craft = Sc("no_thrust")
|
||||
state, craft = prop_one([0., 0., 0.], start, craft, μs["Earth"], stepsize)
|
||||
@test laguerre_conway(start, μs["Earth"], stepsize) ≈ state
|
||||
@test craft.mass == 1000.
|
||||
|
||||
# Test that mass is reduced properly
|
||||
craft = sc("test")
|
||||
craft = Sc("test")
|
||||
start_mass = craft.mass
|
||||
state, craft = prop_one([1., 1., 1.]/√(3), start, craft, μs["Earth"], stepsize)
|
||||
@test craft.mass == start_mass - craft.mass_flow_rate*stepsize
|
||||
|
||||
# Test that a bad ΔV throws an error
|
||||
craft = sc("test")
|
||||
craft = Sc("test")
|
||||
start_mass = craft.mass
|
||||
@test_throws ErrorException prop_one([1., 1., -1.], start, craft, μs["Earth"], stepsize)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user