DroneCommand Code Structure
Hello, could anyone explain that, how the "Control Command" are sent to the PX4, since the sensordata are sent through the "sendHILSensor " based on MAVLinkmessage, so how the "Control Command" works, is it a MAVLinkmessage too? Thank you very much!
Can you elaborate what you mean by Control Command? All communication with PX4 are through MavLink messages.
@sytelus I mean the DroneShell Command, how are the Command sent to the PX4, because I want to make Networkfaultinjection between AirSim and PX4. Thank you very much for your attention!
DroneShell talks to AirSim via RPC. The RPC call on AirSim side is handled by DroneControllerBase which in case of PX4 will translate the RPC command to MavLink command.
@sytelus thank you very much for your help! so would you please explain how are the RPC commands translated to the Mavlink commands. Thank you very much for your attention!
A picture helps:

@lovettchris Thank you very much for your help, that's will be very helpful!