add the heading to the inbound structure
This commit is contained in:
@@ -19,10 +19,20 @@ export class FlightStateDto {
|
||||
@Max(700)
|
||||
groundSpeed: number;
|
||||
|
||||
@IsNotEmpty()
|
||||
@ApiProperty({
|
||||
description: 'The reported heading',
|
||||
example: 200,
|
||||
})
|
||||
@IsInt()
|
||||
@Min(0)
|
||||
@Max(360)
|
||||
heading: number;
|
||||
|
||||
@IsNotEmpty()
|
||||
@ApiProperty({
|
||||
description: 'The reported ground track',
|
||||
example: 400,
|
||||
example: 205,
|
||||
})
|
||||
@IsInt()
|
||||
@Min(0)
|
||||
|
||||
@@ -87,6 +87,7 @@ export class InboundController {
|
||||
return {
|
||||
position: CoordinateConverter.convert(input.position),
|
||||
groundSpeed: input.groundSpeed,
|
||||
heading: input.heading,
|
||||
groundTrack: input.groundTrack,
|
||||
altitude: input.altitude,
|
||||
verticalSpeed: input.verticalSpeed,
|
||||
|
||||
@@ -21,6 +21,12 @@ export class FlightState {
|
||||
})
|
||||
groundSpeed: number;
|
||||
|
||||
@Prop({
|
||||
required: true,
|
||||
type: Number,
|
||||
})
|
||||
heading: number;
|
||||
|
||||
@Prop({
|
||||
required: true,
|
||||
type: Number,
|
||||
|
||||
Reference in New Issue
Block a user