diff --git a/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_get_object_high_temp.py b/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_get_object_high_temp.py index be1c12151..771c75b6f 100644 --- a/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_get_object_high_temp.py +++ b/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_get_object_high_temp.py @@ -37,9 +37,9 @@ print("Resetting Lepton...") # These settings are applied on reset sensor.reset() # Enable measurement mode with high temp -sensor.ioctl(sensor.IOCTL_LEPTON_SET_MEASUREMENT_MODE, True, True) +sensor.ioctl(sensor.IOCTL_LEPTON_SET_MODE, True, True) sensor.ioctl( - sensor.IOCTL_LEPTON_SET_MEASUREMENT_RANGE, min_temp_in_celsius, max_temp_in_celsius + sensor.IOCTL_LEPTON_SET_RANGE, min_temp_in_celsius, max_temp_in_celsius ) print( "Lepton Res (%dx%d)" @@ -86,5 +86,5 @@ while True: ) print( "FPS %f - Lepton Temp: %f C" - % (clock.fps(), sensor.ioctl(sensor.IOCTL_LEPTON_GET_FPA_TEMPERATURE)) + % (clock.fps(), sensor.ioctl(sensor.IOCTL_LEPTON_GET_FPA_TEMP)) ) diff --git a/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_get_object_temp.py b/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_get_object_temp.py index accc4a330..2b79e09fb 100644 --- a/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_get_object_temp.py +++ b/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_get_object_temp.py @@ -34,9 +34,9 @@ max_temp_in_celsius = 35.0 print("Resetting Lepton...") # These settings are applied on reset sensor.reset() -sensor.ioctl(sensor.IOCTL_LEPTON_SET_MEASUREMENT_MODE, True) +sensor.ioctl(sensor.IOCTL_LEPTON_SET_MODE, True) sensor.ioctl( - sensor.IOCTL_LEPTON_SET_MEASUREMENT_RANGE, min_temp_in_celsius, max_temp_in_celsius + sensor.IOCTL_LEPTON_SET_RANGE, min_temp_in_celsius, max_temp_in_celsius ) print( "Lepton Res (%dx%d)" @@ -83,5 +83,5 @@ while True: ) print( "FPS %f - Lepton Temp: %f C" - % (clock.fps(), sensor.ioctl(sensor.IOCTL_LEPTON_GET_FPA_TEMPERATURE)) + % (clock.fps(), sensor.ioctl(sensor.IOCTL_LEPTON_GET_FPA_TEMP)) ) diff --git a/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_get_object_temp_color.py b/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_get_object_temp_color.py index 16d6fb1f4..41342050a 100644 --- a/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_get_object_temp_color.py +++ b/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_get_object_temp_color.py @@ -35,9 +35,9 @@ max_temp_in_celsius = 35.0 print("Resetting Lepton...") # These settings are applied on reset sensor.reset() -sensor.ioctl(sensor.IOCTL_LEPTON_SET_MEASUREMENT_MODE, True) +sensor.ioctl(sensor.IOCTL_LEPTON_SET_MODE, True) sensor.ioctl( - sensor.IOCTL_LEPTON_SET_MEASUREMENT_RANGE, min_temp_in_celsius, max_temp_in_celsius + sensor.IOCTL_LEPTON_SET_RANGE, min_temp_in_celsius, max_temp_in_celsius ) print( "Lepton Res (%dx%d)" @@ -98,5 +98,5 @@ while True: ) print( "FPS %f - Lepton Temp: %f C" - % (clock.fps(), sensor.ioctl(sensor.IOCTL_LEPTON_GET_FPA_TEMPERATURE)) + % (clock.fps(), sensor.ioctl(sensor.IOCTL_LEPTON_GET_FPA_TEMP)) ) diff --git a/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_get_object_temp_color_lcd.py b/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_get_object_temp_color_lcd.py index 10309c97b..f7bcb5f49 100644 --- a/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_get_object_temp_color_lcd.py +++ b/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_get_object_temp_color_lcd.py @@ -36,9 +36,9 @@ max_temp_in_celsius = 35.0 print("Resetting Lepton...") # These settings are applied on reset sensor.reset() -sensor.ioctl(sensor.IOCTL_LEPTON_SET_MEASUREMENT_MODE, True) +sensor.ioctl(sensor.IOCTL_LEPTON_SET_MODE, True) sensor.ioctl( - sensor.IOCTL_LEPTON_SET_MEASUREMENT_RANGE, min_temp_in_celsius, max_temp_in_celsius + sensor.IOCTL_LEPTON_SET_RANGE, min_temp_in_celsius, max_temp_in_celsius ) print( "Lepton Res (%dx%d)" @@ -101,5 +101,5 @@ while True: lcd.write(img) print( "FPS %f - Lepton Temp: %f C" - % (clock.fps(), sensor.ioctl(sensor.IOCTL_LEPTON_GET_FPA_TEMPERATURE)) + % (clock.fps(), sensor.ioctl(sensor.IOCTL_LEPTON_GET_FPA_TEMP)) ) diff --git a/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_get_object_temp_lcd.py b/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_get_object_temp_lcd.py index 10bffd49f..597351dbd 100644 --- a/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_get_object_temp_lcd.py +++ b/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_get_object_temp_lcd.py @@ -35,9 +35,9 @@ max_temp_in_celsius = 35.0 print("Resetting Lepton...") # These settings are applied on reset sensor.reset() -sensor.ioctl(sensor.IOCTL_LEPTON_SET_MEASUREMENT_MODE, True) +sensor.ioctl(sensor.IOCTL_LEPTON_SET_MODE, True) sensor.ioctl( - sensor.IOCTL_LEPTON_SET_MEASUREMENT_RANGE, min_temp_in_celsius, max_temp_in_celsius + sensor.IOCTL_LEPTON_SET_RANGE, min_temp_in_celsius, max_temp_in_celsius ) print( "Lepton Res (%dx%d)" @@ -86,5 +86,5 @@ while True: lcd.write(img) print( "FPS %f - Lepton Temp: %f C" - % (clock.fps(), sensor.ioctl(sensor.IOCTL_LEPTON_GET_FPA_TEMPERATURE)) + % (clock.fps(), sensor.ioctl(sensor.IOCTL_LEPTON_GET_FPA_TEMP)) ) diff --git a/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_target_temp_hotspot_grayscale_color_tracking.py b/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_target_temp_hotspot_grayscale_color_tracking.py index 5c4b64c76..411a081cd 100644 --- a/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_target_temp_hotspot_grayscale_color_tracking.py +++ b/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_target_temp_hotspot_grayscale_color_tracking.py @@ -34,9 +34,9 @@ max_temp_in_celsius = 32 print("Resetting Lepton...") # These settings are applied on reset sensor.reset() -sensor.ioctl(sensor.IOCTL_LEPTON_SET_MEASUREMENT_MODE, True) +sensor.ioctl(sensor.IOCTL_LEPTON_SET_MODE, True) sensor.ioctl( - sensor.IOCTL_LEPTON_SET_MEASUREMENT_RANGE, min_temp_in_celsius, max_temp_in_celsius + sensor.IOCTL_LEPTON_SET_RANGE, min_temp_in_celsius, max_temp_in_celsius ) print( "Lepton Res (%dx%d)" @@ -69,5 +69,5 @@ while True: img.draw_cross(blob.cx(), blob.cy(), color=127) print( "FPS %f - Lepton Temp: %f C" - % (clock.fps(), sensor.ioctl(sensor.IOCTL_LEPTON_GET_FPA_TEMPERATURE)) + % (clock.fps(), sensor.ioctl(sensor.IOCTL_LEPTON_GET_FPA_TEMP)) ) diff --git a/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_target_temp_hotspot_rgb565_color_tracking.py b/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_target_temp_hotspot_rgb565_color_tracking.py index 2c8342a5f..20c22b060 100644 --- a/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_target_temp_hotspot_rgb565_color_tracking.py +++ b/scripts/examples/01-Camera/05-FLIR-Lepton/lepton_target_temp_hotspot_rgb565_color_tracking.py @@ -35,9 +35,9 @@ max_temp_in_celsius = 32 print("Resetting Lepton...") # These settings are applied on reset sensor.reset() -sensor.ioctl(sensor.IOCTL_LEPTON_SET_MEASUREMENT_MODE, True) +sensor.ioctl(sensor.IOCTL_LEPTON_SET_MODE, True) sensor.ioctl( - sensor.IOCTL_LEPTON_SET_MEASUREMENT_RANGE, min_temp_in_celsius, max_temp_in_celsius + sensor.IOCTL_LEPTON_SET_RANGE, min_temp_in_celsius, max_temp_in_celsius ) print( "Lepton Res (%dx%d)" @@ -72,5 +72,5 @@ while True: img.draw_cross(blob.cx(), blob.cy()) print( "FPS %f - Lepton Temp: %f C" - % (clock.fps(), sensor.ioctl(sensor.IOCTL_LEPTON_GET_FPA_TEMPERATURE)) + % (clock.fps(), sensor.ioctl(sensor.IOCTL_LEPTON_GET_FPA_TEMP)) )