| | |
| | | package com.flightfeather.uav |
| | | |
| | | import com.flightfeather.uav.common.utils.DateUtil |
| | | import com.flightfeather.uav.common.utils.FileExchange |
| | | import com.flightfeather.uav.common.utils.FileUtil |
| | | import com.flightfeather.uav.domain.entity.Company |
| | | import com.flightfeather.uav.lightshare.eunm.SatelliteDataType |
| | | import com.flightfeather.uav.socket.bean.DataUnit |
| | | import com.flightfeather.uav.socket.decoder.AirDataDecoder |
| | | import com.flightfeather.uav.socket.eunm.AirCommandUnit |
| | | import com.google.gson.Gson |
| | | import org.jetbrains.kotlin.konan.util.visibleName |
| | | import org.junit.Test |
| | | import java.io.File |
| | | import java.io.FileOutputStream |
| | |
| | | |
| | | @Test |
| | | fun foo16() { |
| | | val list = listOf(1, 2, 3, 4, 5, 6) |
| | | val iterator = list.iterator().also { it.next() } |
| | | iterator.forEach { |
| | | println(it) |
| | | } |
| | | val d = "2023-06-13 00:01:50.0\t".trim().split(".")[0] |
| | | val t = DateUtil.instance.StringToDate(d, DateUtil.DateStyle.YYYY_MM_DD_HH_MM_SS) |
| | | println(d) |
| | | println(t) |
| | | } |
| | | |
| | | @Test |
| | | fun foo17() { |
| | | println(SatelliteDataType.Original.name) |
| | | println(SatelliteDataType.Original.value) |
| | | println(SatelliteDataType.Original.ordinal) |
| | | println(SatelliteDataType.Original.toString()) |
| | | println(SatelliteDataType.Original.visibleName) |
| | | println(SatelliteDataType.Original) |
| | | } |
| | | } |