View Makefile
APP=1 | |
APP_STACKSIZE=300 | |
CFLAGS += -DDISABLE_LIGHTHOUSE_DRIVER=0 | |
CFLAGS += -DLIGHTHOUSE_FORCE_TYPE=2 | |
PROJ_OBJ += app_lighthouse.o | |
CRAZYFLIE_BASE=../.. #fill in with your crazyflie base code | |
include $(CRAZYFLIE_BASE)/Makefile |
View takeoffdemo.py
import logging | |
import sys | |
import time | |
import cflib.crtp | |
from cflib.crazyflie import Crazyflie | |
from cflib.crazyflie.syncCrazyflie import SyncCrazyflie |
View avoidtrigger.py
import logging | |
import sys | |
import time | |
import cflib.crtp | |
from cflib.crazyflie import Crazyflie | |
from cflib.crazyflie.syncCrazyflie import SyncCrazyflie | |
URI = 'radio://0/80/2M' |
View swarmdemogbug.py
import math | |
import time | |
import cflib.crtp | |
from cflib.crazyflie.swarm import CachedCfFactory | |
from cflib.crazyflie.swarm import Swarm | |
# Change uris according to your setup | |
URI0 = 'radio://0/70/2M/E7E7E7E7E7' |
View lighthouse_trace_logo.py
#!/usr/bin/env python3 | |
# Demo to make the crazyflie with the LED ring to fly the logo of bitcraze | |
import sys | |
import time | |
import math | |
import numpy | |
import cflib.crtp | |
from cflib.crazyflie import Crazyflie |
View lighthouse_concentric_circles.py
#!/usr/bin/env python3 | |
#Demo that makes the crazyflie fly 3 concentric circles in the colors: red, blue and green. | |
import sys | |
import time | |
import math | |
import numpy | |
import cflib.crtp |