Comments (3)
Thank-you for the report @coderextreme
For p = sqrt(x**2 + y**2)
to be 0, the x and y values must be 0 which sounds to me like bad data in the ESPDU packet. x and y should not be 0. I don't think the issue is with RangeCoordinates.py.
Can you check that x,y,z is being set to valid values in your ESPDU in open-dis-javascript? And if it is, then check that the data being received by open-dis-python matches.
from open-dis-python.
One shouldn't crash if a client sends bad data. Isn't it obvious that x and y are both 0?
from open-dis-python.
I expect there are many many ways to crash the code with bad data. The more interesting question is why are x and y zero. Were they just not set in the ESPDU. Or is there a bug in the JavaScript marshalling and/or Python unmarshalling code when valid xy values are sent?
from open-dis-python.
Related Issues (20)
- DataPdu Not finished - needs example HOT 1
- VariableDatum object cannot hold negative signed integers HOT 1
- null() Function Call? HOT 21
- EntityMarking only serializes 11 of 12 required bytes HOT 2
- Redundant fields cause serialization/parsing errors HOT 5
- Example does not function as it intended HOT 3
- Issue with dis_recieve.py createPdu() HOT 4
- Apply feedback to examples from Stackoverflow question
- VariableDatum object does not serialize padding HOT 3
- Allow for multiple receivers on same UDP address/port HOT 3
- ElectronicEmmisionsPdu does not handle beams correctly HOT 1
- Example sender isn't looping as suggested in README HOT 3
- SignalPdu Not Packing Data Correctly HOT 4
- Feature request: Local to Euler angles conversion HOT 2
- EmissionSystemBeamRecord.serialize incorrectly contains outputStream read calls instead of write
- Typographical Error in ReceiverPdu HOT 2
- Will this become a Pip package? HOT 11
- not an issue but a question surrounding performance HOT 1
- signed bytes in signal pdu HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from open-dis-python.