Comments (13)
If you could provide some example message IDs which did not pass validation that would be helpful. Also, are you sure that you are running the latest version of this library? We did have a problem with CRC calculation up to version 1.0.3 where it has been resolved.
from mavlink.
I am/was using 1.0.3 via ivy/JCenter. Then I cloned the git repo, and it seems to be up to date. Running "git describe --tags" says it's 1.0.6. As soon as I get to the office (where the Aero is) I'll run it again and get message IDs. Is there anything else I can do/provide to help diagnose this? Many thanks.
from mavlink.
Message IDs received that had a bad CRC, over a one minute run;
COUNT ID
5845 30
2931 31
2929 26
2926 105
1763 32
588 36
587 74
587 141
586 140
586 111
584 83
553 42
388 0
297 1
294 24
294 147
293 245
117 76
69 4
63 241
62 230
62 2
49 253
29 28
21 89
17 35
15 62
11 39
9 242
9 122
8 7
8 248
8 127
7 249
7 146
6 90
6 40
6 131
5 65
5 61
5 144
5 137
5 120
5 110
4 93
4 82
4 77
4 64
4 6
4 41
4 37
4 29
4 234
4 233
4 232
4 22
4 21
4 107
3 87
3 63
3 55
3 50
3 5
3 49
3 45
3 44
3 38
3 33
3 250
3 246
3 231
3 20
3 149
3 139
3 133
3 125
3 124
3 123
3 121
3 116
3 112
3 106
3 103
3 102
2 75
2 69
2 66
2 27
2 252
2 251
2 25
2 247
2 235
2 143
2 142
2 129
2 128
2 11
2 109
2 108
1 85
1 70
1 67
1 54
1 48
1 46
1 34
1 323
1 322
1 266
1 254
1 244
1 243
1 23
1 138
1 134
1 119
1 118
1 117
1 113
1 101
1 100
from mavlink.
Could you look into the XML CRC of a couple of these messages? for example, the CRC for Attitude
(message ID 30) would be defined in @MavlinkMessageInfo
of io.dronefleet.mavlink.common.Attitude
from mavlink.
I'm sorry, can you clarify? You mean this?
/**
- The attitude in the aeronautical frame (right-handed, Z-down, X-front, Y-right).
*/
@MavlinkMessageInfo(
id = 30,
crc = 39
)
public final class Attitude {
Note, I did not generate/regenerate anything, I just cloned the repo and then copied the source into my project in Eclipse.
from mavlink.
@seanrowens yes I understand, I wanted you to look it up to see if you have the same CRCs as the repository, which you do.
If you look into c_library_v2/standard/standard.h#L27 it seems like the messages have the correct XML IDs. (for each subarray in MAVLINK_MESSAGE_CRCS
, index 0 is message ID and index 1 is the CRC).
Also, if there's any failure which causes a packet to be dropped, then this library just drops the first byte of that packet and attempts at reading a packet from the next byte. So for example if I have a buffer of 30 bytes and I've read a packet at 0 to 15 that has been dropped, what will happen is that we'll attempt to read a packet from position 1 rather than skipping to position 16. Therefore, depending on how you count lost packets, you might actually be counting lost bytes.
At the top of my head, perhaps if you could log some packets which pymavlink reads but this library does not then it will make it easy to reproduce. Anything that you can come up with that could help reproduce this will help :)
from mavlink.
Considering that pymavlink seems to accept everything and dronefleet mavlink doesn't accept anything, that shouldn't be hard. I'll be quite happy to do anything I can to help debug this, time allowing. Come to think of it, I should be able to just use netcat to open a socket to the server and redirect all bytes to a file, would that help?
from mavlink.
This is a capture of bytes off the socket using netcat.
from mavlink.
Whups, didn't mean to close the issue.
from mavlink.
I'm gonna try parsing it
from mavlink.
@seanrowens I found the problem. I'll make a fixed release in an hour or so.
from mavlink.
@seanrowens I've released 1.0.7
to Maven Central, should be available as a package within 15-20 minutes, or you can pull master.
from mavlink.
Yay! Thanks!
from mavlink.
Related Issues (20)
- No such file or directory #include "common/mavlink.h" HOT 4
- Battery voltage list causes a crash when adding it to the builder HOT 5
- newbie to Mavlink HOT 1
- unrecognized field type java.util.ArrayList HOT 1
- how to generate custom messages from xml
- How to send MAV_CMD?
- issue - MavlinkSerializationException - Message does not have a builder HOT 8
- Connect Demo for mav_server HOT 5
- Connection refused:connect HOT 1
- Unable to send Status text (Java) HOT 1
- How to send mission file or how to check vehicle status? HOT 1
- newbie question , sending values in java
- system not showing any result HOT 9
- Unable to send messages to Ardupilot SITL HOT 3
- I need to send and receive messages in java mavlink, but I can't. Can you send sample code please? HOT 1
- Implement MavCmd: MAV_CMD_DO_GIMBAL_MANAGER_CONFIGURE HOT 1
- Newb question: Parsing incoming mavlink2 messages HOT 2
- 我收到一串byte[]的消息
- Unable to get any kind of data from UDP connection. HOT 1
- MAVLink XML change to allow exponentiation operator in bitmask flag
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 mavlink.