Skip to content

void Tello::init() #4

@TobiasFrahm

Description

@TobiasFrahm

Hello, am I right, that the drone is always initialised? Even if the response.compare("ok") is not true?
Is this intended?

void Tello::init()
{
	udpclient = new WiFiUDP();
	//This initializes udp and transfer buffer
	udpclient->begin(COMMAND_PORT);
	isInitialised = true;
	string response = sendCommand("command");
	//if response is other than "ok" then we consider as error 
	if(response.compare("ok"))
	{
		isInitialised = true;
	}
}

Greetings
Tobi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions