00001 #include <thread> 00002 00003 #include <crazyflie_cpp/Crazyflie.h> 00004 00005 int main() 00006 { 00007 Crazyflie cf1("radio://0/100/2M/E7E7E7E701"); 00008 // Send 0 a few times to make sure thrust lock is disabled 00009 for (size_t i = 0; i < 100; ++i) { 00010 cf1.sendSetpoint(0, 0, 0, 0); 00011 } 00012 while (true) { 00013 cf1.sendSetpoint(0, 0, 0, 10000); // send roll, pitch, yaw, and thrust 00014 std::this_thread::sleep_for(std::chrono::milliseconds(10)); 00015 } 00016 00017 return 0; 00018 }