We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e70e666 commit 77cccdeCopy full SHA for 77cccde
lib/services/rocket.py
@@ -45,6 +45,10 @@ def from_rocket_model(cls, rocket: RocketView) -> Self:
45
center_of_mass_without_motor=rocket.center_of_mass_without_motor,
46
coordinate_system_orientation=rocket.coordinate_system_orientation.value.lower(),
47
)
48
+ rocketpy_rocket.add_motor(
49
+ MotorService.from_motor_model(rocket.motor).motor,
50
+ rocket.motor_position,
51
+ )
52
53
# RailButtons
54
if rocket.rail_buttons:
@@ -53,10 +57,6 @@ def from_rocket_model(cls, rocket: RocketView) -> Self:
57
lower_button_position=rocket.rail_buttons.lower_button_position,
58
angular_position=rocket.rail_buttons.angular_position,
55
59
56
- rocketpy_rocket.add_motor(
- MotorService.from_motor_model(rocket.motor).motor,
- rocket.motor_position,
- )
60
61
# NoseCone
62
if rocket.nose:
0 commit comments