Skip to content

Commit ad07db5

Browse files
authored
Merge branch 'main' into joss
2 parents 4a9719b + ab6a74e commit ad07db5

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

core/src/strapdown.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,20 @@ impl Debug for StrapdownState {
214214
)
215215
}
216216
}
217+
impl Default for StrapdownState {
218+
fn default() -> Self {
219+
StrapdownState {
220+
latitude: 0.0,
221+
longitude: 0.0,
222+
altitude: 0.0,
223+
velocity_north: 0.0,
224+
velocity_east: 0.0,
225+
velocity_down: 0.0,
226+
attitude: Rotation3::identity(),
227+
coordinate_convention: true, // NED by default
228+
}
229+
}
230+
}
217231
impl StrapdownState {
218232
/// Create a new StrapdownState from explicit position and velocity components, and attitude
219233
///

0 commit comments

Comments
 (0)