kvenux / nodegcs Goto Github PK
View Code? Open in Web Editor NEWMAVLink ground control station on node
License: GNU General Public License v3.0
MAVLink ground control station on node
License: GNU General Public License v3.0
hello, i was trying testing your project using pixfalcon, as you said before if i want to connect via serial using this : start /dev/cu.usbserial-A503UTCT 115200
but when i try to use COM as serialport, there's an error like this :
mav_port = new SerialPort(connection_path, {
^
TypeError: SerialPort is not a constructor
at Timeout.connect_serial [as _onTimeout] (D:\Materi Lab\nodegcs-master\mavlink_connection.js:538:16)
at ontimeout (timers.js:475:11)
at tryOnTimeout (timers.js:310:5)
at Timer.listOnTimeout (timers.js:270:5)
how do i fix this on your code, thank you
Hi, I'm trying to rewrite your project using dgram library instead of "net" to control a px4 drone using udp connection.
I'm able to read but there is a problem sending commands.
This is the error I've got.
"WARN [mavlink] ignoring CMD with same SYS/COMP (1/1)"
Basically this is a takeoff.
` mav_parser.createMessage("COMMAND_LONG", {
"param1": param1,
"param2": param2,
"param3": param3,
"param4": param4,
"param5": param5,
"param6": param6,
"param7": param7,
"command": command,
"target_system":1,
"target_component": 1,
"confirmation": confirmation
},
function (message) {
LOG("------------------------------------------------")
LOG(message.toString());
mav_port_receive.send(message.buffer, 0, message.buffer.length, PORT, HOST, function(err, bytes) {
if (err) {
LOG(err)
}
LOG("--CALL BACK PARTITA-")
LOG("-e > " +err)
// mav_port_send.close();
});
return;
});
}`
LOG is a logger.
mav_port_receive is the same of your map_port.
mav_port_receive = dgram.createSocket("udp4") LOG("LISTENER PORT : " + connection_port +", ADDRESS : " +connection_path) mav_port_receive.bind( connection_port,connection_path);
and it works pretty well as a listerner
`mav_port_receive.on("message", (msg, rinfo) => {
if(msg[0]!= 0 && msg[1]!= 7){
var radio_status = {
rssi: parseInt(msg[2]),
};
}
mav_parser.parse(msg);
});
`
Have you any solution or suggestion ?
Hi,
Awesome project! Just ran into a little snag and hoped you could shed some light on this.
I'm faced with this error:
Connectedted STABILIZE DISARM SatNum: 0 HDOP: 0 VDOP: 0 Battery: 12.587V
Pitch: 0 Roll: 0 Yaw: 0 Lat: 0 Lng: 0
X-Speed: 0m/s Y-Speed: 0m/s Z-Speed: 0m/s Height: 0m
>> connection regained
>> ARMING MOTORS
>> Initialising APM...
>> command success
>> DISARMING MOTORS
โ nodegcs v1.0
timers.js:425
throw new errors.TypeError('ERR_INVALID_CALLBACK');
^
TypeError [ERR_INVALID_CALLBACK]: Callback must be a function
at setTimeout (timers.js:425:11)
at Timeout.send_default_datastream [as _onTimeout] ([...]\mavlink_connection.js:720:9)
at ontimeout (timers.js:466:11)
at tryOnTimeout (timers.js:304:5)
at Timer.listOnTimeout (timers.js:267:5)
Steps to reproduce:
The only thing I changed was upgrade to v6 of the serialport dependency as v5 didn't work for my node version.
If it helps, I am using sitl as the simulator, as you suggested (though I installed with pip install dronekit-sitl -UI
as per instructions on their website).
hey i wanna ask, if i want to add open parachute command, how do i create a new function to it, and what's the meaning from module.export in mavlink_connection.js
thank you
Hi,
First of all, great repo.
Second, I would like to add "Go To Here(Guided Mode)"(this is how it appears in APM Planner 2. Not sure what is the message and how can I add it..
I was trying something like
send_command_long(0, 3, 3, 0.2, lat, lng, 10, mavheader.MAV_CMD_OVERRIDE_GOTO, 1);
Any advice?
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.