Commit ff3db774 authored by Ian McInerney's avatar Ian McInerney

Removed unused code

parent c9435d35
......@@ -6,7 +6,6 @@
#include "logData.h"
#include "helperFunctions.h"
#include "controllerHelperFunctions.h"
using namespace std;
......
......@@ -110,7 +110,6 @@ void* vrpn_go(void *threadID) {
crazyflie_info[j].cflieCopter->cycle();
}
// nearGround(); // See if the quadcopters have landed yet
#if USE_HAND
updateHand();
#endif // END USE_HAND
......@@ -149,17 +148,6 @@ void* vrpn_go(void *threadID) {
return (0);
} //END VRPN GO
/**
* During Landing Mode checks how close to ground quad is for shutdown
*/
void nearGround() {
for (int i = 0; i < NUM_QUADS; i++) {
if((crazyflie_info[i].cflieCopter->m_enumFlightMode == LANDING_MODE) && (abs(crazyflie_info[i].controllerData.zPosition) < 0.05)) {
crazyflie_info[i].cflieCopter->m_enumFlightMode = GROUNDED_MODE;
}
}
}
void updateHand() {
if(handMode == 1) {
// cout << "Hand Roll: " << rollHand << endl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment