mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-23 00:58:37 -04:00
a077e4a3ed
Allows a script to simulate a device attached via any serial protocol. The script can read and write data and have it handled according to the protocol as if exchanged over a serial port. The script can then do protocol translation, data filtering and validation, hardware-in-the-loop simulation, experimentation, etc., especially in combination with the scripting protocol which lets the script itself handle an attached device and so interpose any communication.
33 lines
1.1 KiB
C
33 lines
1.1 KiB
C
#pragma once
|
|
|
|
#include "lua/src/lua.hpp"
|
|
|
|
int lua_millis(lua_State *L);
|
|
int lua_micros(lua_State *L);
|
|
int lua_mission_receive(lua_State *L);
|
|
int AP_Logger_Write(lua_State *L);
|
|
int lua_get_i2c_device(lua_State *L);
|
|
int AP_HAL__I2CDevice_read_registers(lua_State *L);
|
|
int lua_get_CAN_device(lua_State *L);
|
|
int lua_get_CAN_device2(lua_State *L);
|
|
int lua_serial_find_serial(lua_State *L);
|
|
int lua_serial_find_simulated_device(lua_State *L);
|
|
int lua_serial_writestring(lua_State *L);
|
|
int lua_serial_readstring(lua_State *L);
|
|
int lua_dirlist(lua_State *L);
|
|
int lua_removefile(lua_State *L);
|
|
int SRV_Channels_get_safety_state(lua_State *L);
|
|
int lua_get_PWMSource(lua_State *L);
|
|
int lua_get_SocketAPM(lua_State *L);
|
|
int SocketAPM_recv(lua_State *L);
|
|
int SocketAPM_accept(lua_State *L);
|
|
int SocketAPM_close(lua_State *L);
|
|
int SocketAPM_sendfile(lua_State *L);
|
|
int lua_mavlink_init(lua_State *L);
|
|
int lua_mavlink_receive_chan(lua_State *L);
|
|
int lua_mavlink_register_rx_msgid(lua_State *L);
|
|
int lua_mavlink_send_chan(lua_State *L);
|
|
int lua_mavlink_block_command(lua_State *L);
|
|
int lua_print(lua_State *L);
|
|
int lua_range_finder_handle_script_msg(lua_State *L);
|