I'm trying to transmit from Matlab to Simulink a matrix waypoints ( 3x2 double ) over wifi and then start the mobile rover in AEK.
I used to start the code deployed on arduino mkr1000 an enabled subsystem and start fine, but don't follow the waypoints spin around on itself.
From matllab i send a simple test code over wifi sending a vector 1x6 to simulink and I noticed using a serial transmit like feedback that work fine so i don't understand what's wrong.
Not using wifi but embedding the matrix waypoints in simulink the rover work fine
Here test code:
Waypoints=[10 10; 30 40; 10 60];
t = tcpip('192.168.1.10',25000);
t.ByteOrder = 'littleEndian';
% Sending vector of Waypoints
t1 = tcpip('192.168.1.10',25001);
t1.ByteOrder = 'littleEndian';
% Sending Flag for subsystem starting
setFlag = 1;
resetFlag = 0;
Here the Simullink code deployed on the rover
Thank you for any advice