Browse Source

Improving client

master
Georgios Gerontakis 5 years ago
parent
commit
257452788d
  1. BIN
      tracking and telemetry/Client/.vs/Client/v16/.suo
  2. BIN
      tracking and telemetry/Client/.vs/Client/v16/Server/sqlite3/storage.ide
  3. 15
      tracking and telemetry/Client/Client.cs
  4. BIN
      tracking and telemetry/Client/bin/Debug/Client.exe
  5. BIN
      tracking and telemetry/Client/bin/Debug/Client.pdb
  6. BIN
      tracking and telemetry/Client/obj/Debug/Client.csproj.GenerateResource.cache
  7. BIN
      tracking and telemetry/Client/obj/Debug/Client.csprojAssemblyReference.cache
  8. BIN
      tracking and telemetry/Client/obj/Debug/Client.exe
  9. BIN
      tracking and telemetry/Client/obj/Debug/Client.pdb

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

Binary file not shown.

15
tracking and telemetry/Client/Client.cs

@ -64,6 +64,19 @@ 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)
{
@ -131,7 +144,7 @@ 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: " + "" +
"\n Autopilot: " + FriutTypeDescription((MAVLink.MAV_AUTOPILOT)heartbeat.autopilot) +
"\n Base mode: " + heartbeat.base_mode +
"\n Custom mode: " + heartbeat.custom_mode +
"\n Mavlink Version: " + heartbeat.mavlink_version +

BIN
tracking and telemetry/Client/bin/Debug/Client.exe

Binary file not shown.

BIN
tracking and telemetry/Client/bin/Debug/Client.pdb

Binary file not shown.

BIN
tracking and telemetry/Client/obj/Debug/Client.csproj.GenerateResource.cache

Binary file not shown.

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

Binary file not shown.

BIN
tracking and telemetry/Client/obj/Debug/Client.exe

Binary file not shown.

BIN
tracking and telemetry/Client/obj/Debug/Client.pdb

Binary file not shown.
Loading…
Cancel
Save