prepare the inbound to calculate the different parameters

Cette révision appartient à :
Sven Czarnian
2022-10-23 23:10:33 +02:00
Parent 4158e391a5
révision 4b21859242
3 fichiers modifiés avec 41 ajouts et 14 suppressions

Voir le fichier

@@ -1,6 +1,9 @@
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { Document } from 'mongoose';
import { Waypoint, WaypointSchema } from 'src/generic/models/waypoint.model';
import {
PredictedWaypoint,
PredictedWaypointSchema,
} from './predictedwaypoint.model';
export type ControllerInputDocument = ControllerInput & Document;
@@ -13,9 +16,9 @@ export class ControllerInput {
@Prop({
required: true,
type: [WaypointSchema],
type: [PredictedWaypointSchema],
})
remainingRoute: Waypoint[];
remainingRoute: PredictedWaypoint[];
@Prop({
type: String,

Voir le fichier

@@ -13,25 +13,21 @@ export class PredictedWaypoint {
waypoint: Waypoint;
@Prop({
required: true,
type: Number,
})
altitude: number;
@Prop({
required: true,
type: Number,
})
indicatedAirspeed: number;
@Prop({
required: true,
type: Number,
})
groundspeed: number;
@Prop({
required: true,
type: String,
})
plannedOverheadTime: string;