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.
17 lines
470 B
17 lines
470 B
4 years ago
|
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]))
|