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.
2 parents 4a9719b + ab6a74e commit ad07db5Copy full SHA for ad07db5
1 file changed
core/src/strapdown.rs
@@ -214,6 +214,20 @@ impl Debug for StrapdownState {
214
)
215
}
216
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
+}
231
impl StrapdownState {
232
/// Create a new StrapdownState from explicit position and velocity components, and attitude
233
///
0 commit comments