You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tello_modules/test3.py

16 lines
470 B

from TelloModule import TelloModule
mod = TelloModule('sensor')
i = 0
print("\n -------- Test --------- \n")
while 1:
line = mod.get_block_sensor()
i = i + 1
print("Test " + str(i) +
" count = " + str(line[0]) +
" temp = " + str(line[1]) +
" pressure = " + str(line[2]) +
" humidity = " + str(line[3]) +
" TVOC = " + str(line[4]) +
" CO2 = " + str(line[5]) +
" light = " + str(line[6]))