introduce the database and controller connections for all inbounds

This commit is contained in:
Sven Czarnian
2022-10-23 16:58:00 +02:00
parent 7a41dd0fb2
commit f69e365623
19 changed files with 849 additions and 4 deletions

View File

@@ -0,0 +1,49 @@
import { IsNotEmpty, IsInt, Min, Max } from 'class-validator';
import { ApiProperty } from '@nestjs/swagger';
import { CoordinateDto } from '../../generic/dto/coordinate.dto';
export class FlightStateDto {
@IsNotEmpty()
@ApiProperty({
description: 'The current position',
})
position: CoordinateDto;
@IsNotEmpty()
@ApiProperty({
description: 'The reported ground speed',
example: 400,
})
@IsInt()
@Min(0)
@Max(700)
groundSpeed: number;
@IsNotEmpty()
@ApiProperty({
description: 'The reported ground track',
example: 400,
})
@IsInt()
@Min(0)
@Max(360)
groundTrack: number;
@IsNotEmpty()
@ApiProperty({
description: 'The reported altitude',
example: 30000,
})
@IsInt()
@Min(0)
@Max(60000)
altitude: number;
@IsNotEmpty()
@ApiProperty({
description: 'The reported vertical speed',
example: 400,
})
@IsInt()
verticalSpeed: number;
}