prepare the inbound to calculate the different parameters
Cette révision appartient à :
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur