Browse Source

Adding heartbeat message info reader for test

master
Georgios Gerontakis 5 years ago
parent
commit
4135eb589e
  1. BIN
      tracking and telemetry/Client/.vs/Client/v16/.suo
  2. BIN
      tracking and telemetry/Client/.vs/Client/v16/Server/sqlite3/storage.ide-shm
  3. BIN
      tracking and telemetry/Client/.vs/Client/v16/Server/sqlite3/storage.ide-wal
  4. 23
      tracking and telemetry/Client/Client.cs
  5. BIN
      tracking and telemetry/Client/obj/Debug/Client.csprojAssemblyReference.cache
  6. BIN
      tracking and telemetry/Client/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll
  7. BIN
      tracking and telemetry/Mavlink/obj/Debug/net35/MAVLink.assets.cache
  8. BIN
      tracking and telemetry/Mavlink/obj/Debug/net35/MAVLink.csprojAssemblyReference.cache
  9. BIN
      tracking and telemetry/Mavlink/obj/Debug/net461/MAVLink.assets.cache
  10. BIN
      tracking and telemetry/Mavlink/obj/Debug/net461/MAVLink.csprojAssemblyReference.cache
  11. BIN
      tracking and telemetry/Mavlink/obj/Debug/netstandard2.0/MAVLink.assets.cache
  12. 2
      tracking and telemetry/Mavlink/obj/MAVLink.csproj.nuget.cache
  13. 17
      tracking and telemetry/Mavlink/obj/MAVLink.csproj.nuget.dgspec.json
  14. 2
      tracking and telemetry/Mavlink/obj/MAVLink.csproj.nuget.g.props
  15. 2
      tracking and telemetry/Mavlink/obj/MAVLink.csproj.nuget.g.targets
  16. 16
      tracking and telemetry/Mavlink/obj/project.assets.json

BIN
tracking and telemetry/Client/.vs/Client/v16/.suo

Binary file not shown.

BIN
tracking and telemetry/Client/.vs/Client/v16/Server/sqlite3/storage.ide-shm

Binary file not shown.

BIN
tracking and telemetry/Client/.vs/Client/v16/Server/sqlite3/storage.ide-wal

Binary file not shown.

23
tracking and telemetry/Client/Client.cs

@ -64,20 +64,6 @@ namespace Client
.GetCustomAttribute<DisplayAttribute>();
}
public string FriutTypeDescription(Enum FruitType)
{
FieldInfo fi = FruitType.GetType().GetField(FruitType.ToString());
DescriptionAttribute[] attributes = (DescriptionAttribute[])fi.GetCustomAttributes(typeof(DescriptionAttribute), false);
if (attributes.Length > 0)
{
return attributes[0].Description;
}
else
{
return FruitType.ToString();
}
}
void bgw_DoWork(object sender, DoWorkEventArgs e)
{
while (serialPort1.IsOpen)
@ -143,12 +129,11 @@ namespace Client
if (packet.msgid == (byte)MAVLink.MAVLINK_MSG_ID.HEARTBEAT){
var heartbeat = (MAVLink.mavlink_heartbeat_t)packet.data;
var heartbeat_string = "Vehicle type: " + "" +
"\n Autopilot: " + FriutTypeDescription((MAVLink.MAV_AUTOPILOT)heartbeat.autopilot) +
"\n Base mode: " + heartbeat.base_mode +
"\n Custom mode: " + heartbeat.custom_mode +
var heartbeat_string = "Vehicle type: " + (MAVLink.MAV_TYPE)heartbeat.autopilot +
"\n Autopilot: " + (MAVLink.MAV_AUTOPILOT)heartbeat.autopilot +
"\n Base mode: " + (MAVLink.MAV_MODE_FLAG)heartbeat.base_mode +
"\n Mavlink Version: " + heartbeat.mavlink_version +
"\n System status: " + heartbeat.system_status;
"\n System status: " + (MAVLink.MAV_SYS_STATUS_SENSOR)heartbeat.system_status;
richTextBox1.Invoke(new Action(() =>
{
richTextBox1.Text = heartbeat_string;

BIN
tracking and telemetry/Client/obj/Debug/Client.csprojAssemblyReference.cache

Binary file not shown.

BIN
tracking and telemetry/Client/obj/Debug/TempPE/Properties.Resources.Designer.cs.dll

Binary file not shown.

BIN
tracking and telemetry/Mavlink/obj/Debug/net35/MAVLink.assets.cache

Binary file not shown.

BIN
tracking and telemetry/Mavlink/obj/Debug/net35/MAVLink.csprojAssemblyReference.cache

Binary file not shown.

BIN
tracking and telemetry/Mavlink/obj/Debug/net461/MAVLink.assets.cache

Binary file not shown.

BIN
tracking and telemetry/Mavlink/obj/Debug/net461/MAVLink.csprojAssemblyReference.cache

Binary file not shown.

BIN
tracking and telemetry/Mavlink/obj/Debug/netstandard2.0/MAVLink.assets.cache

Binary file not shown.

2
tracking and telemetry/Mavlink/obj/MAVLink.csproj.nuget.cache

@ -1,5 +1,5 @@
{
"version": 1,
"dgSpecHash": "BMGtCCk4FceRPZQ8UoY4BK0IG5v3lF+DQNRO7D8QeSza51b62rEvJioVn3CMuEhqg306+1i2Bgfp7PzRxm1UJg==",
"dgSpecHash": "/1AerUNn95KVWx/sgb/Vdff+93ngStdRcPbkPEeF37jHks+abLCiOaLcm44+CqJC2nYFWYLoTdsOeQ45Zcpq1A==",
"success": true
}

17
tracking and telemetry/Mavlink/obj/MAVLink.csproj.nuget.dgspec.json

@ -1,21 +1,24 @@
{
"format": 1,
"restore": {
"C:\\Users\\GeorgiosGerontakis\\Desktop\\Talos_Drones_Tracking_and_Telemetry\\tracking and telemetry\\Mavlink\\MAVLink.csproj": {}
"C:\\Users\\Giorgos Ger\\Desktop\\Talos_Drones_Tracking_and_Telemetry\\tracking and telemetry\\Mavlink\\MAVLink.csproj": {}
},
"projects": {
"C:\\Users\\GeorgiosGerontakis\\Desktop\\Talos_Drones_Tracking_and_Telemetry\\tracking and telemetry\\Mavlink\\MAVLink.csproj": {
"C:\\Users\\Giorgos Ger\\Desktop\\Talos_Drones_Tracking_and_Telemetry\\tracking and telemetry\\Mavlink\\MAVLink.csproj": {
"version": "1.0.5",
"restore": {
"projectUniqueName": "C:\\Users\\GeorgiosGerontakis\\Desktop\\Talos_Drones_Tracking_and_Telemetry\\tracking and telemetry\\Mavlink\\MAVLink.csproj",
"projectUniqueName": "C:\\Users\\Giorgos Ger\\Desktop\\Talos_Drones_Tracking_and_Telemetry\\tracking and telemetry\\Mavlink\\MAVLink.csproj",
"projectName": "MAVLink",
"projectPath": "C:\\Users\\GeorgiosGerontakis\\Desktop\\Talos_Drones_Tracking_and_Telemetry\\tracking and telemetry\\Mavlink\\MAVLink.csproj",
"packagesPath": "C:\\Users\\GeorgiosGerontakis\\.nuget\\packages\\",
"outputPath": "C:\\Users\\GeorgiosGerontakis\\Desktop\\Talos_Drones_Tracking_and_Telemetry\\tracking and telemetry\\Mavlink\\obj\\",
"projectPath": "C:\\Users\\Giorgos Ger\\Desktop\\Talos_Drones_Tracking_and_Telemetry\\tracking and telemetry\\Mavlink\\MAVLink.csproj",
"packagesPath": "C:\\Users\\Giorgos Ger\\.nuget\\packages\\",
"outputPath": "C:\\Users\\Giorgos Ger\\Desktop\\Talos_Drones_Tracking_and_Telemetry\\tracking and telemetry\\Mavlink\\obj\\",
"projectStyle": "PackageReference",
"crossTargeting": true,
"fallbackFolders": [
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
],
"configFilePaths": [
"C:\\Users\\GeorgiosGerontakis\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Users\\Giorgos Ger\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [

2
tracking and telemetry/Mavlink/obj/MAVLink.csproj.nuget.g.props

@ -5,7 +5,7 @@
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\GeorgiosGerontakis\.nuget\packages\</NuGetPackageFolders>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Giorgos Ger\.nuget\packages\;C:\Program Files\dotnet\sdk\NuGetFallbackFolder</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.4.0</NuGetToolVersion>
</PropertyGroup>

2
tracking and telemetry/Mavlink/obj/MAVLink.csproj.nuget.g.targets

@ -4,6 +4,6 @@
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<ImportGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' AND '$(ExcludeRestorePackageImports)' != 'true' ">
<Import Project="$(NuGetPackageRoot)netstandard.library\2.0.3\build\netstandard2.0\NETStandard.Library.targets" Condition="Exists('$(NuGetPackageRoot)netstandard.library\2.0.3\build\netstandard2.0\NETStandard.Library.targets')" />
<Import Project="C:\Program Files\dotnet\sdk\NuGetFallbackFolder\netstandard.library\2.0.3\build\netstandard2.0\NETStandard.Library.targets" Condition="Exists('C:\Program Files\dotnet\sdk\NuGetFallbackFolder\netstandard.library\2.0.3\build\netstandard2.0\NETStandard.Library.targets')" />
</ImportGroup>
</Project>

16
tracking and telemetry/Mavlink/obj/project.assets.json

@ -183,20 +183,24 @@
]
},
"packageFolders": {
"C:\\Users\\GeorgiosGerontakis\\.nuget\\packages\\": {}
"C:\\Users\\Giorgos Ger\\.nuget\\packages\\": {},
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder": {}
},
"project": {
"version": "1.0.5",
"restore": {
"projectUniqueName": "C:\\Users\\GeorgiosGerontakis\\Desktop\\Talos_Drones_Tracking_and_Telemetry\\tracking and telemetry\\Mavlink\\MAVLink.csproj",
"projectUniqueName": "C:\\Users\\Giorgos Ger\\Desktop\\Talos_Drones_Tracking_and_Telemetry\\tracking and telemetry\\Mavlink\\MAVLink.csproj",
"projectName": "MAVLink",
"projectPath": "C:\\Users\\GeorgiosGerontakis\\Desktop\\Talos_Drones_Tracking_and_Telemetry\\tracking and telemetry\\Mavlink\\MAVLink.csproj",
"packagesPath": "C:\\Users\\GeorgiosGerontakis\\.nuget\\packages\\",
"outputPath": "C:\\Users\\GeorgiosGerontakis\\Desktop\\Talos_Drones_Tracking_and_Telemetry\\tracking and telemetry\\Mavlink\\obj\\",
"projectPath": "C:\\Users\\Giorgos Ger\\Desktop\\Talos_Drones_Tracking_and_Telemetry\\tracking and telemetry\\Mavlink\\MAVLink.csproj",
"packagesPath": "C:\\Users\\Giorgos Ger\\.nuget\\packages\\",
"outputPath": "C:\\Users\\Giorgos Ger\\Desktop\\Talos_Drones_Tracking_and_Telemetry\\tracking and telemetry\\Mavlink\\obj\\",
"projectStyle": "PackageReference",
"crossTargeting": true,
"fallbackFolders": [
"C:\\Program Files\\dotnet\\sdk\\NuGetFallbackFolder"
],
"configFilePaths": [
"C:\\Users\\GeorgiosGerontakis\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Users\\Giorgos Ger\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [

Loading…
Cancel
Save