You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

193 lines
4.2 KiB
TypeScript

import { IDroneDetailValueInfo, IDroneInfo, IDroneLocationInfo, IDroneWeatherValueInfo } from "./define/Interface";
export const FakeDroneListInfo: Array<IDroneInfo> = [
{
droneName: '無人機A',
sort: 0,
id: 'Fly-A'
},
{
droneName: '無人機F',
sort: 5,
id: 'Fly-F'
},
{
droneName: '無人機E',
sort: 4,
id: 'Fly-E'
},
{
droneName: '無人機D',
sort: 3,
id: 'Fly-D'
},
{
droneName: '無人機H',
sort: 7,
id: 'Fly-H'
},
{
droneName: '無人機G',
sort: 6,
id: 'Fly-G'
},
{
droneName: '無人機B',
sort: 1,
id: 'Fly-B'
},
{
droneName: '無人機C',
sort: 2,
id: 'Fly-C'
},
]
export const FakeDroneDetail: Array<IDroneLocationInfo> = [
{
id: 'Fly-A',
bettery: 10,
locationN: `12'34'56.7""`,
locationE: `98'76'54.0123""`
},
{
id: 'Fly-B',
bettery: 87,
locationN: `64'31'3.14""`,
locationE: `55'66'11""`
},
{
id: 'Fly-C',
bettery: 49,
locationN: `72'38'18.2""`,
locationE: `47'10'2.01""`
},
{
id: 'Fly-D',
bettery: 51,
locationN: `25'68'54.1""`,
locationE: `12'14'74""`
},
{
id: 'Fly-E',
bettery: 50,
locationN: `19'85'12.14""`,
locationE: `7'4'12.14""`
},
{
id: 'Fly-F',
bettery: 100,
locationN: `91'20'3.1""`,
locationE: `700'600'5.2""`
},
{
id: 'Fly-G',
bettery: 0,
locationN: `10'20'3.0""`,
locationE: `4'5'9.99""`
},
{
id: 'Fly-H',
bettery: 1,
locationN: `8'7'8.7""`,
locationE: `3'3'1.2""`
},
]
export const FakeDroneDetailValue: Array<IDroneDetailValueInfo> = [
{
id: 'Fly-A',
high: '60公分',
speed: '20m/s',
acceleration: '1m/s',
direction: '東南',
pitch: 'J三小窩不知道peko',
yaw: 'J三小窩不知道peko',
roll: '45 degree',
mode: 'auto'
},
{
id: 'Fly-B',
high: '6公尺',
speed: '80m/s',
acceleration: '2m/s',
direction: '西北',
pitch: 'J三小窩不知道peko',
yaw: 'J三小窩不知道peko',
roll: '90 degree',
mode: 'manual'
},
{
id: 'Fly-C',
high: '30公分',
speed: '7m/s',
acceleration: '0.52m/s',
direction: '南',
pitch: 'J三小窩不知道peko',
yaw: 'J三小窩不知道peko',
roll: '33.33 degree',
mode: 'loiter'
},
{
id: 'Fly-D',
high: '73公分',
speed: '13m/s',
acceleration: '0.8m/s',
direction: '北北東',
pitch: 'J三小窩不知道peko',
yaw: 'J三小窩不知道peko',
roll: '20 degree',
mode: 'attitude'
},
{
id: 'Fly-E',
high: '30公尺',
speed: '40m/s',
acceleration: '8m/s',
direction: '西',
pitch: 'J三小窩不知道peko',
yaw: 'J三小窩不知道peko',
roll: '60 degree',
mode: 'manual'
},
{
id: 'Fly-F',
high: '100公分',
speed: '6.6m/s',
acceleration: '3m/s',
direction: '南',
pitch: 'J三小窩不知道peko',
yaw: 'J三小窩不知道peko',
roll: '22.5 degree',
mode: 'auto'
},
{
id: 'Fly-G',
high: '300公尺',
speed: '200m/s',
acceleration: '10m/s',
direction: '北',
pitch: 'J三小窩不知道peko',
yaw: 'J三小窩不知道peko',
roll: '0 degree',
mode: 'auto'
},
{
id: 'Fly-H',
high: '45公分',
speed: '0.8m/s',
acceleration: '0.02m/s',
direction: '南南西',
pitch: 'J三小窩不知道peko',
yaw: 'J三小窩不知道peko',
roll: '10 degree',
mode: 'attitude'
}
]
export const FakeWeatherValue: IDroneWeatherValueInfo = {
atmosphericPressure: '1.2',
windDirection: '西北',
windSpeed: '20km/s'
}