Giter Club home page Giter Club logo

open-dis-csharp's People

Contributors

cdettmering-unity avatar fixedpin avatar herwich012 avatar las-nsc avatar leif81 avatar mcgredonps avatar rodneyp290 avatar sab193 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

open-dis-csharp's Issues

Wireshark reports Entity State PDUs as malformed

I am creating Entity State PDUs using in the following manner:

{code}
// Serialize PDU to a big-endian stream
DataOutputStream dataOutputStream = new DataOutputStream(Endian.Big);
Pdu.MarshalAutoLengthSet(dataOutputStream);
// Send bytes
broadcastClient.Send(dataOutputStream.ConvertToBytes())
{code}

Wireshark is reporting that the packets are malformed. I have attached Wireshark packet capture screen shot images. I did notice the Capabilities parameters do not appear in the screenshots. It appears that the MarshalAutoLengthSet is not computing the length properly (143 bytes vs 144 bytes).

Thank you.

SA08Malformed1
SA08Malformed2
SA08Malformed3

Won't compile without error .NET8 - This call is ambiguous...

After cloning repo, upgrading to .NET8 release, and building the following error occurs in:

\open-dis-csharp\CsharpDis6\OpenDis\Enumerations\Entity.Information.Minefield\PaintScheme.cs
line 275 public byte[] ToByteArray() => BitConverter.GetBytes(ToByte());

CS0121 The call is ambiguous between the following methods or properties: 'BitConverter.GetBytes(Half)' and 'BitConverter.GetBytes(short)'

This may have been introduced in .NET 7 per the post below:
dotnet/runtime#79034

Recommend changing line to the following to support .NET 8 and past versions
public byte[] ToByteArray() => BitConverter.GetBytes((short)ToByte());

Regarding how OpenDIS7 under CSharp is supposed to handle DirectedEnergyPrecisionAimpoint.cs...

Hello,

Reading through the DIS7 standard, I found that DE Records under the DE Fire PDU are supposed to handle Directed Energy Precision Aimpoint records and Directed Energy Area Aimpoint records. I think I understand why the StandardVariableSelection was chosen, but I'm unsure as to why it can't implement the previously described records into there and why it's so different from something like VariableParameter.

Further, what was the reason for why PduHeaders were chosen? I'm assuming so that way additional PDUs would be sent out and received, but I'm not entirely sure. Say I wanted to include a new parameter within my DE Fire PDU without breaking the standard. How would I go about doing that?

Any help would be greatly appreciated.

Add build pipeline

This project could use a build pipeline to ensure proposed changes don't break the build.

For future work we should integrate a unit tests into the build pipeline.

DIS PDU receive human readable

C#: After doing the tutorials for EspduSender / EspduReceiver, I'm wondering what the next step to process the received PDU xml data to human readable form. Do I need to cross reference it with a database? Any suggestions highly appreciated.

Multiple implementations

From what I can tell there are multiple implementations of open dis C# in this repository. My head is spinning trying to figure out which one should be used.

e.g.

This is confusing as a maintainer and I'm guessing end users. Ideally we have at most two like the other language repositories; a dis6 and dis7 implementation.

Merge DIS7 (CSharpDis7) in the same assembly

In order to be able to manage multiple versions of DIS in a 3rd party application, the source "CSharpDis7" must be merged with the common library OpenDIS.

In order to achieve that, the CSharpDis7 must be changed/rewritten to conform with the common methods used in OpenDis.

Incomplete implementation of DIS 7

The there are file(s) in the DIS 7 implementation that appear to be missing. For example; the files in the DISnet.DataStreamUtilities namespace which don't appear to exist. Can one use the similar files in the OpenDis.Core name space or is the functionality implemented that is be implemented in the DISnet.DataStreamUtilities namespace need to be created?

Deadreckoning

My team and I are working to try and create our own deadrecking formulas from java to c# since we haven't been able to find the applicable classes here. We are running into some issues since there doesn't seem to be an apache like library that would make the converstion much easier.

So my question here is does anyone know of such a library or is there any updates that are coming that will have these formulas set up? Thank you in advance.

If there are no plans for it at the moment, if we can figure out the proper conversion from java we may be able to contribute what we have. At the moment we are only using formula 4 though

Orientation Conversion From NED to ECEF

The library does not include a way to convert orientation from NED (North East Down) to ECEF (Earth Centered, Earth Fixed). Would this be a welcome feature?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.