Open phrohdoh opened 7 years ago
I even tried 'fixing' Mavlink.js
with no change.
Mavlink.prototype.start = function(filepath, type) {
var filename = filepath;
if (!filename.endsWith("\u0000"))
filename += "\u0000";
console.log("!! new filename !!: " + filename);
var buffer = commandToBuffer(0, "Mavlink", "Start", filename, type);
this.self._writePacket(this.self._networkFrameGenerator(buffer));
return this.self;
};
I am completely unable to continue work with this broken. š¢
Hi @Phrohdoh sorry about delayed response.
Not sure about your exact problem, but the Parrot API returns some extra null characters, but this was not impacting my use of autopilot. As of this commit https://github.com/hybridgroup/node-bebop/commit/1bb86af1f4b53e0eeb44ed46abe653fc979dff71 my flightplan was able to run, once my Bebop obtained a GPS signal.
I would suggest you look very closely at your mavlink flight plan file. I created mine using the Parrot Flightplan software, and moved it around using FTP. Also note that the path in question is a path on the drone itself, not on your local machine.
Hope that helps!
Oops, did not mean to close.
@Phrohdoh this is the long saga of how we got mavlink working originally: https://github.com/hybridgroup/node-bebop/issues/25
Thank you! I was hoping to not have to purchase Parrot's software (F/OSS preference) but will do so if necessary.
I won't have any time to work on this project today but should hopefully sometime this week. I'll bug you again if something goes strange or I'll close this if I am able to resolve my issue.
Thanks again! :-)
Following https://github.com/hybridgroup/node-bebop/blob/88512f1bfa0e8321c269961442a373fa4c9e1df5/examples/flightplan.js I am running into some issues.
I have tried both filepaths with the same results:
I don't know why there are NULs in my filepath (this is probably resulting in my
invalid enum
type):Could I get some help regarding exactly which filepath I should give it and where there are null bytes being appended to the paths?
This is the mavlink for reference:
Would the line-endings being
\r\n
be an issue? Do they need to be\r
, or\n
?