@ -472,49 +472,48 @@ const luaL_Reg Location_meta[] = {
@@ -472,49 +472,48 @@ const luaL_Reg Location_meta[] = {
{ NULL , NULL }
} ;
static int GCS_send_text ( lua_State * L ) {
static int GCS_set_message_interval ( lua_State * L ) {
GCS * ud = GCS : : get_singleton ( ) ;
if ( ud = = nullptr ) {
return luaL_argerror ( L , 1 , " gcs not supported on this firmware " ) ;
}
binding_argcheck ( L , 3 ) ;
binding_argcheck ( L , 4 ) ;
const lua_Integer raw_data_2 = luaL_checkinteger ( L , 2 ) ;
luaL_argcheck ( L , ( ( raw_data_2 > = static_cast < int32_t > ( MAV_SEVERITY_EMERGENCY ) ) & & ( raw_data_2 < = static_cast < int32_t > ( MAV_SEVERITY_DEBUG ) ) ) , 2 , " argument out of range " ) ;
const MAV_SEVERITY data_2 = static_cast < MAV_SEVERITY > ( raw_data_2 ) ;
const char * data_3 = luaL_checkstring ( L , 3 ) ;
ud - > send_text (
luaL_argcheck ( L , ( ( raw_data_2 > = MAX ( 0 , 0 ) ) & & ( raw_data_2 < = MIN ( MAVLINK_COMM_NUM_BUFFERS , UINT8_MAX ) ) ) , 2 , " argument out of range " ) ;
const uint8_t data_2 = static_cast < uint8_t > ( raw_data_2 ) ;
const uint32_t raw_data_3 = * check_uint32_t ( L , 3 ) ;
luaL_argcheck ( L , ( ( raw_data_3 > = MAX ( 0U , 0U ) ) & & ( raw_data_3 < = MIN ( UINT32_MAX , UINT32_MAX ) ) ) , 3 , " argument out of range " ) ;
const uint32_t data_3 = static_cast < uint32_t > ( raw_data_3 ) ;
const lua_Integer raw_data_4 = luaL_checkinteger ( L , 4 ) ;
luaL_argcheck ( L , ( ( raw_data_4 > = MAX ( - 1 , INT32_MIN ) ) & & ( raw_data_4 < = MIN ( INT32_MAX , INT32_MAX ) ) ) , 4 , " argument out of range " ) ;
const int32_t data_4 = raw_data_4 ;
const MAV_RESULT & data = ud - > set_message_interval (
data_2 ,
" %s " ,
data_3 ) ;
data_3 ,
data_4 ) ;
return 0 ;
lua_pushinteger ( L , data ) ;
return 1 ;
}
static int GCS_set_message_interval ( lua_State * L ) {
static int GCS_send_text ( lua_State * L ) {
GCS * ud = GCS : : get_singleton ( ) ;
if ( ud = = nullptr ) {
return luaL_argerror ( L , 1 , " gcs not supported on this firmware " ) ;
}
binding_argcheck ( L , 4 ) ;
binding_argcheck ( L , 3 ) ;
const lua_Integer raw_data_2 = luaL_checkinteger ( L , 2 ) ;
luaL_argcheck ( L , ( ( raw_data_2 > = MAX ( 0 , 0 ) ) & & raw_data_2 < = MIN ( MAVLINK_COMM_NUM_BUFFERS , UINT8_MAX ) ) , 2 , " argument out of range " ) ;
const uint32_t data_2 = static_cast < uint32_t > ( raw_data_2 ) ;
const lua_Unsigned raw_data_3 = luaL_checkinteger ( L , 3 ) ;
luaL_argcheck ( L , ( raw_data_3 < = UINT32_MAX ) , 3 , " argument out of range " ) ;
const uint32_t data_3 = static_cast < uint32_t > ( raw_data_3 ) ;
const lua_Integer raw_data_4 = luaL_checkinteger ( L , 4 ) ;
luaL_argcheck ( L , ( ( raw_data_4 > = - 1 ) & & ( raw_data_4 < = INT32_MAX ) ) , 4 , " argument out of range " ) ;
const int32_t data_4 = static_cast < int32_t > ( raw_data_4 ) ;
const MAV_RESULT data = ud - > set_message_interval (
luaL_argcheck ( L , ( ( raw_data_2 > = static_cast < int32_t > ( MAV_SEVERITY_EMERGENCY ) ) & & ( raw_data_2 < = static_cast < int32_t > ( MAV_SEVERITY_DEBUG ) ) ) , 2 , " argument out of range " ) ;
const MAV_SEVERITY data_2 = static_cast < MAV_SEVERITY > ( raw_data_2 ) ;
const char * data_3 = luaL_checkstring ( L , 3 ) ;
ud - > send_text (
data_2 ,
data_3 ,
data_4 ) ;
lua_pushinteger ( L , data ) ;
" %s " ,
data_3 ) ;
return 1 ;
return 0 ;
}
static int AP_Relay_toggle ( lua_State * L ) {
@ -1544,8 +1543,8 @@ static int AP_AHRS_get_roll(lua_State *L) {
@@ -1544,8 +1543,8 @@ static int AP_AHRS_get_roll(lua_State *L) {
}
const luaL_Reg GCS_meta [ ] = {
{ " send_text " , GCS_send_text } ,
{ " set_message_interval " , GCS_set_message_interval } ,
{ " send_text " , GCS_send_text } ,
{ NULL , NULL }
} ;