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


uga_tum_ardrone
Author(s):
autogenerated on Sat Jun 8 2019 20:30:11