KILand.cpp
Go to the documentation of this file.
00001 
00021 #include "KILand.h"
00022 #include "../DroneController.h"
00023 #include "../ControlNode.h"
00024 
00025 
00026 KILand::KILand(void)
00027 {
00028         fresh = true;
00029         command = "land";
00030 }
00031 
00032 
00033 KILand::~KILand(void)
00034 {
00035 }
00036 
00037 bool KILand::update(const tum_ardrone::filter_stateConstPtr statePtr)
00038 {
00039         if(fresh)
00040         {
00041                 node->sendLand();
00042                 printf("issuing land!\n");
00043         }
00044         fresh = false;
00045 
00046         // TODO: maybe do something better here, like still controlling x, y, yaw pos...
00047         node->sendControlToDrone(node->hoverCommand);
00048         return true;
00049 }


tum_ardrone
Author(s):
autogenerated on Sat Jun 8 2019 20:27:23