Browse Source

SITL : correct comment spelling

apm_2208
Ruffalo-sunghwan 3 years ago committed by Randy Mackay
parent
commit
dc07747199
  1. 2
      libraries/SITL/SIM_JSON.cpp
  2. 2
      libraries/SITL/SIM_JSON_Master.cpp
  3. 2
      libraries/SITL/SIM_JSON_Master.h
  4. 2
      libraries/SITL/examples/JSON/MATLAB/tcp_udp_ip_2.0.6/pnet.c

2
libraries/SITL/SIM_JSON.cpp

@ -255,7 +255,7 @@ void JSON::recv_fdm(const struct sitl_input &input) @@ -255,7 +255,7 @@ void JSON::recv_fdm(const struct sitl_input &input)
const uint32_t received_bitmask = parse_sensors((const char *)(p1+1));
if (received_bitmask == 0) {
// did not receve one of the mandatory fields
// did not receive one of the mandatory fields
printf("Did not contain all mandatory fields\n");
return;
}

2
libraries/SITL/SIM_JSON_Master.cpp

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Send and receve JSON backend data to alow a second AP instance to ride along
Send and receive JSON backend data to alow a second AP instance to ride along
*/
#include "SIM_JSON_Master.h"

2
libraries/SITL/SIM_JSON_Master.h

@ -13,7 +13,7 @@ @@ -13,7 +13,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
Send and receve JSON backend data to alow a second AP instance to ride along
Send and receive JSON backend data to alow a second AP instance to ride along
*/
#pragma once

2
libraries/SITL/examples/JSON/MATLAB/tcp_udp_ip_2.0.6/pnet.c

@ -725,7 +725,7 @@ void my_mexReturnArrayFromBuff(const int argno,io_buff *buff,const int line) @@ -725,7 +725,7 @@ void my_mexReturnArrayFromBuff(const int argno,io_buff *buff,const int line)
break;
if(n==maxelements) // If no new-line found inside limit...
deleteelements=returnelements=maxelements; // ...return first part of splited line.
else if(n==returnelements) // If new-line not recived inside limit...
else if(n==returnelements) // If new-line not received inside limit...
deleteelements=returnelements=0; // ...return empty string, and delete nothing.
else if(n>0 && buff->ptr[n-1]=='\r') // If(*3) new-line, return line of char but not nl chars.
deleteelements=2+(returnelements=n-1);

Loading…
Cancel
Save