Hello,
I have a Simulink model of a quadcopter which has the required infrastructure to send data to and receive from PX4 sitl. I connect the s-function block, the model compiles successfully; however, UDP communication is not established.
I changed the following line in PX4Main.c from:
_server.sin_addr.S_un.S_addr = inet_addr("192.168.46.2");
to
_server.sin_addr.S_un.S_addr = inet_addr("127.0.0.1");
I create the mex file using 'BuildPX4Interface.m'.
I am not using a Ubuntu machine to run the px4 software by the way. It simply runs as a separate window after I type 'make px4_sitl none'. The only message after I am getting 'Simulator connected on TCP port 4560.' is
ERROR [simulator] poll timeout 0, 111
Thanks in advance.
Hello,
I have a Simulink model of a quadcopter which has the required infrastructure to send data to and receive from PX4 sitl. I connect the s-function block, the model compiles successfully; however, UDP communication is not established.
I changed the following line in PX4Main.c from:
_server.sin_addr.S_un.S_addr = inet_addr("192.168.46.2");to
_server.sin_addr.S_un.S_addr = inet_addr("127.0.0.1");I create the mex file using 'BuildPX4Interface.m'.
I am not using a Ubuntu machine to run the px4 software by the way. It simply runs as a separate window after I type 'make px4_sitl none'. The only message after I am getting 'Simulator connected on TCP port 4560.' is
Thanks in advance.