-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected NULs in flightpath filename #47
Comments
I even tried 'fixing' 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 1bb86af 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. |
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. 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
?The text was updated successfully, but these errors were encountered: