Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M30T thermal region returns an error #18

Closed
eric-dk opened this issue Jul 14, 2022 · 5 comments
Closed

M30T thermal region returns an error #18

eric-dk opened this issue Jul 14, 2022 · 5 comments
Assignees

Comments

@eric-dk
Copy link

eric-dk commented Jul 14, 2022

Steps-to-reproduce:
With the correct ComponentIndexType and CameraLensType.CAMERA_LENS_THERMAL use CameraKey.KeyThermalRegionMetersureArea.set(…) with DoublePoint2D where x, y, width, height are 0…1.

Expected:
Camera restricts thermal measuring region.

Actual:
CameraKey.KeyThermalAreaTemperatureAggregations.listen(…) still returns points outside of the specified region.

DJIError{errorCode='CORE_INVALID_PARAMETERS', innerCode='', description='null', hint='error code = -483'}
@DJI-William
Copy link

DJI-William commented Jul 15, 2022

First of all you should call KeyThermalTemperatureMeasureMode to set the thermal measurement mode as REGION. Then call KeyThermalRegionMetersureArea to set the region. Lastly, listen the KeyThermalRegionMetersureTemperature for returned result.
image

@DJI-William DJI-William self-assigned this Jul 15, 2022
@eric-dk
Copy link
Author

eric-dk commented Jul 15, 2022

All prerequisites done; same error.

@DJI-William
Copy link

Please have a look my testing video and it works. But I found the key is different witht the api doc, I will discuss with the product manager.
Link:https://pan-sec.djicorp.com/s/QDkHTQt85f5tdnE
dji123

@DJI-William
Copy link

Sorry my bad, I was using Beta3 demo, the official 5.0.0 is released and the key is rename to KeyThermalRegionMetersureTemperature and AREAt to REGION. It should work.

@DJI-William
Copy link

@eric-dk is the problem solved in 5.0 version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants