I am new to unreal engine and c++, so please forgive if this question was asked before.
Following the setup video, I can successfully control the drone under "SimGameMode" and now I want to do programmatical control. Where should I run the HelloDrone program or where should I insert that piece of code?
Easiest way to run HelloDrone is on the same machine as the unreal simulation. The SimGameMode creates the RpcServer which talks to HelloDrone over TCP sockets. Be sure to first Go to Unreal Editor, Edit/Editor Preferences, select "All Settings" and type "CPU" in the sarch box. It should find the setting titled "Use Less CPU when in Background", and you want to uncheck this checkbox, as per our FAQ.
solved. thx
Try starting unreal "play" before running hellodrone.
Most helpful comment
Easiest way to run HelloDrone is on the same machine as the unreal simulation. The SimGameMode creates the RpcServer which talks to HelloDrone over TCP sockets. Be sure to first Go to Unreal Editor, Edit/Editor Preferences, select "All Settings" and type "CPU" in the sarch box. It should find the setting titled "Use Less CPU when in Background", and you want to uncheck this checkbox, as per our FAQ.