Skip to content

Commit

Permalink
REV: revert airbrakes commits
Browse files Browse the repository at this point in the history
  • Loading branch information
MateusStano committed Oct 6, 2023
1 parent 9bd78df commit 75698c8
Show file tree
Hide file tree
Showing 12 changed files with 2 additions and 433 deletions.
1 change: 0 additions & 1 deletion rocketpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
TankGeometry,
UllageBasedTank,
)
from .control import Controller
from .rocket import (
AeroSurface,
Components,
Expand Down
1 change: 0 additions & 1 deletion rocketpy/control/__init__.py

This file was deleted.

86 changes: 0 additions & 86 deletions rocketpy/control/controller.py

This file was deleted.

1 change: 0 additions & 1 deletion rocketpy/plots/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
_NoseConePlots,
_TailPlots,
_TrapezoidalFinsPlots,
_AirbrakesPlots,
)
from .compare import Compare, CompareFlights
from .environment_analysis_plots import _EnvironmentAnalysisPlots
Expand Down
25 changes: 0 additions & 25 deletions rocketpy/plots/aero_surface_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,28 +448,3 @@ def __init__(self, tail):
def draw(self):
# This will de done in the future
return None


class _AirbrakesPlots(_AeroSurfacePlots):
"""Class that contains all tail plots."""

def __init__(self, tail):
"""Initialize the class
Parameters
----------
tail : rocketpy.AeroSurface.Tail
Tail object to be plotted
Returns
-------
None
"""
super().__init__(tail)
return None

def cd_s_curve(self):
return self.cd_s_curve.plot(0, 1)

def draw(self):
raise NotImplementedError
1 change: 0 additions & 1 deletion rocketpy/prints/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
_RailButtonsPrints,
_TailPrints,
_TrapezoidalFinsPrints,
_AirbrakesPrints,
)
from .compare_prints import _ComparePrints
from .environment_analysis_prints import _EnvironmentAnalysisPrints
Expand Down
38 changes: 0 additions & 38 deletions rocketpy/prints/aero_surface_prints.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,41 +291,3 @@ def geometry(self):
f"Angular position of the buttons: {self.aero_surface.angular_position:.3f} deg\n"
)
return None


class _AirbrakesPrints(_AeroSurfacePrints):
"""Class that contains all tail prints."""

def __init__(self, Airbrakes):
"""Initialize the class
Parameters
----------
Airbrakes : rocketpy.AeroSurface.Airbrakes
Air break object to be printed.
Returns
-------
None
"""
super().__init__(Airbrakes)
return None

def geometry(self):
"""Prints the geometric information of the air break.
Returns
-------
None
"""
print(f"Geometric information of the Air Break:")
print(f"----------------------------------")
print(
f"Current deployed level: {self.aero_surface.deployed_level:.2f} = {100*self.aero_surface.deployed_level:.0f} %"
)
print(
f"Current Cd_S: {self.aero_surface.cd_s_curve(self.aero_surface.deployed_level)} m²"
)
print(f"Maximum Cd_S: {self.aero_surface.cd_s.max:.3f} m²")
print(f"Minimum Cd_S: {self.aero_surface.cd_s.min:.3f} m²")
return None
70 changes: 0 additions & 70 deletions rocketpy/prints/control_prints.py

This file was deleted.

1 change: 0 additions & 1 deletion rocketpy/rocket/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
RailButtons,
Tail,
TrapezoidalFins,
Airbrakes,
)
from .components import Components
from .parachute import Parachute
Expand Down
Loading

0 comments on commit 75698c8

Please sign in to comment.