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

[suggestion for improvement] The camera installed in the OC drone always looks north. #323

Open
SAlexW opened this issue Jul 8, 2022 · 1 comment

Comments

@SAlexW
Copy link

SAlexW commented Jul 8, 2022

Problem:
In OC, unlike the robot, the drone cannot be rotated. And the drone also has no way to make the camera look up/down like robot. Therefore, the camera installed in the drone will always look north.
Suggested solution:
Add a drone-specific function "setCameraRotation(x, y)" or similar. As thought, this function should rotate the camera by x degrees horizontally and by y degrees vertically, and the distance() will show the distance from the surface of the block to the drone taking into account the set angle. Instead of degrees you can use radians. As a result, this feature turns the drone into a flying camera with a 360 degree view on all axes.
However, this solution has a disadvantage - in order to compose the image it will be easier to use setCameraRotation(x, y) and distance() in loop, than to use setCameraRotation(x, y) once and create loop with distance(x,y) already, because the first option will allow to create a single frame with the field of view for all 360 degrees, while the second option will have to use at least 4 iterations to compose the picture of the environment, also the second option will cause perspective distortion. To solve this problem, you can make the delay for camera rotation larger than for distance().

@SAlexW
Copy link
Author

SAlexW commented Jul 8, 2022

Used version: Computronics-1.12.2-1.6.6

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

1 participant