forked from CPL/Simulator
update
This commit is contained in:
42
Common/DroneData.cs
Normal file
42
Common/DroneData.cs
Normal file
@ -0,0 +1,42 @@
|
||||
namespace DroneData
|
||||
{
|
||||
enum StructType : ulong
|
||||
{
|
||||
// Output
|
||||
DataIMU = 1, DataPos = 2,
|
||||
|
||||
// Input
|
||||
DataMotor4 = 1001, DataMotor6 = 1002
|
||||
};
|
||||
|
||||
public struct DataInfo
|
||||
{
|
||||
StructType Type;
|
||||
ulong Size;
|
||||
}
|
||||
|
||||
public struct DataXYZ { float X, Y, Z; }
|
||||
|
||||
public struct DataIMU
|
||||
{
|
||||
DataXYZ Acc, Gyr, Mag;
|
||||
}
|
||||
|
||||
public struct DataPos
|
||||
{
|
||||
DataXYZ Local; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
float LiDAR; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
}
|
||||
|
||||
public struct DataMotor4
|
||||
{
|
||||
ulong Count;
|
||||
float M1, M2, M3, M4;
|
||||
}
|
||||
|
||||
public struct DataMotor6
|
||||
{
|
||||
ulong Count;
|
||||
float M1, M2, M3, M4, M5, M6;
|
||||
}
|
||||
}
|
42
Common/DroneData.h
Normal file
42
Common/DroneData.h
Normal file
@ -0,0 +1,42 @@
|
||||
namespace DroneData
|
||||
{
|
||||
enum class StructType : unsigned long
|
||||
{
|
||||
// Output
|
||||
DataIMU = 1, DataPos = 2,
|
||||
|
||||
// Input
|
||||
DataMotor4 = 1001, DataMotor6 = 1002
|
||||
};
|
||||
|
||||
public struct DataInfo
|
||||
{
|
||||
StructType Type;
|
||||
unsigned long Size;
|
||||
};
|
||||
|
||||
public struct DataXYZ { float X, Y, Z; };
|
||||
|
||||
public struct DataIMU
|
||||
{
|
||||
DataXYZ Acc, Gyr, Mag;
|
||||
};
|
||||
|
||||
public struct DataPos
|
||||
{
|
||||
DataXYZ Local; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
float LiDAR; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
||||
};
|
||||
|
||||
public struct DataMotor4
|
||||
{
|
||||
ulong Count;
|
||||
float M1, M2, M3, M4;
|
||||
};
|
||||
|
||||
public struct DataMotor6
|
||||
{
|
||||
ulong Count;
|
||||
float M1, M2, M3, M4, M5, M6;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user