flightdata 0.2.4__tar.gz → 0.2.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {flightdata-0.2.4 → flightdata-0.2.5}/PKG-INFO +1 -1
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata/base/table.py +2 -2
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata/state.py +4 -4
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata.egg-info/PKG-INFO +1 -1
- {flightdata-0.2.4 → flightdata-0.2.5}/setup.cfg +1 -1
- {flightdata-0.2.4 → flightdata-0.2.5}/LICENSE +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/README.md +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata/__init__.py +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata/base/__init__.py +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata/base/collection.py +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata/base/constructs.py +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata/base/numpy_encoder.py +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata/coefficients.py +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata/environment/__init__.py +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata/environment/environment.py +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata/environment/wind.py +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata/flight/__init__.py +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata/flight/ardupilot.py +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata/flight/fields.py +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata/flight/flight.py +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata/flow.py +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata/model/__init__.py +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata/model/aerodynamic.py +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata/model/thrust.py +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata/origin.py +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata.egg-info/SOURCES.txt +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata.egg-info/dependency_links.txt +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata.egg-info/requires.txt +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/flightdata.egg-info/top_level.txt +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/setup.py +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/test/test_fields.py +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/test/test_flight.py +0 -0
- {flightdata-0.2.4 → flightdata-0.2.5}/test/test_origin.py +0 -0
|
@@ -119,7 +119,7 @@ class Table:
|
|
|
119
119
|
yield self[ind]
|
|
120
120
|
|
|
121
121
|
@classmethod
|
|
122
|
-
def from_constructs(cls, *args,**kwargs):
|
|
122
|
+
def from_constructs(cls, *args,**kwargs) -> Self:
|
|
123
123
|
kwargs = dict(
|
|
124
124
|
**{list(cls.constructs.data.keys())[i]: arg for i, arg in enumerate(args)},
|
|
125
125
|
**kwargs
|
|
@@ -130,7 +130,7 @@ class Table:
|
|
|
130
130
|
x.to_pandas(
|
|
131
131
|
columns=cls.constructs[key].keys,
|
|
132
132
|
index=kwargs["time"].t
|
|
133
|
-
) for key, x in kwargs.items() if
|
|
133
|
+
) for key, x in kwargs.items() if x is not None
|
|
134
134
|
],
|
|
135
135
|
axis=1
|
|
136
136
|
)
|
|
@@ -28,10 +28,10 @@ class State(Table):
|
|
|
28
28
|
return g.Transformation(-self.pos, self.att.inverse())
|
|
29
29
|
|
|
30
30
|
@staticmethod
|
|
31
|
-
def from_transform(transform: g.Transformation=None, **kwargs):
|
|
31
|
+
def from_transform(transform: g.Transformation=None, **kwargs) -> State:
|
|
32
32
|
if transform is None:
|
|
33
33
|
transform = g.Transformation()
|
|
34
|
-
if
|
|
34
|
+
if "time" not in kwargs:
|
|
35
35
|
kwargs["time"] = g.Time.from_t(np.linspace(0, State._construct_freq*len(transform), len(transform)))
|
|
36
36
|
return State.from_constructs(pos=transform.p, att=transform.q, **kwargs)
|
|
37
37
|
|
|
@@ -63,8 +63,8 @@ class State(Table):
|
|
|
63
63
|
att = st.att.body_rotate(rvel * time.t)
|
|
64
64
|
pos = g.Point.concatenate([
|
|
65
65
|
g.P0(),
|
|
66
|
-
(att.transform_point(vel)).cumsum()[:-1]
|
|
67
|
-
])
|
|
66
|
+
(att.transform_point(vel) * time.dt).cumsum()[:-1]
|
|
67
|
+
]) + st.pos
|
|
68
68
|
return State.from_constructs(time,pos, att, vel, rvel)
|
|
69
69
|
|
|
70
70
|
|
|
@@ -5,7 +5,7 @@ author_email = thomasdavid0@gmail.com
|
|
|
5
5
|
description = Module for handling UAV flight log data
|
|
6
6
|
long_description = file: README.md
|
|
7
7
|
long_description_content_type = text/markdown
|
|
8
|
-
version = 0.2.
|
|
8
|
+
version = 0.2.5
|
|
9
9
|
url = https://github.com/PyFlightCoach/FlightData
|
|
10
10
|
|
|
11
11
|
[options]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|