Giter Site home page Giter Site logo

nodegcs's People

Contributors

dependabot[bot] avatar kvenux avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nodegcs's Issues

Connecti via serial using Pixfalcon

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

UDP connection

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 ?

TypeError [ERR_INVALID_CALLBACK]: Callback must be a function

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:

  1. node nodegcs
  2. start
  3. arm
  4. wait for a few seconds
  5. crash

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).

want to add open parachute function

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

Add command "Go To Here"

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.