Hi
The attached diagram shows how the Roll angle is defined. Consequently,
when the lens side is pointed towards the sky, the altitude is measured from 0 +90 0, which is most inconvenient.
Is it possible to add a fourth parameter, such as
in order to obtain the natural range 90 0 -90 which is ideal for measuring altitude when the camera faces the sky.
Less important, though, is there a plan to add magnetic strength (uT)?
Cheers
Robert
Supplement:
There is a workaround like:
Sub Orientation_OrientationChanged (Azimuth As Float, Pitch As Float, Roll As Float)
azm = Ang(Azimuth + 90)
alt = Roll
If CheckZ > 0 Then
alt = Roll - 90
Else
alt = (90 - Roll)
End If
End Sub
Sub Accelerometer_AccelerometerChanged (X As Float, Y As Float, Z As Float)
CheckZ = Z
End Sub
Nevertheless, a direct read-out maybe smoother.
The attached diagram shows how the Roll angle is defined. Consequently,
when the lens side is pointed towards the sky, the altitude is measured from 0 +90 0, which is most inconvenient.
Is it possible to add a fourth parameter, such as
B4X:
Sub Orientation_OrientationChanged (Azimuth As Float, Pitch As Float, Roll As Float, [COLOR="Red"]Altitude[/COLOR] As Float)
in order to obtain the natural range 90 0 -90 which is ideal for measuring altitude when the camera faces the sky.
Less important, though, is there a plan to add magnetic strength (uT)?
Cheers
Robert
Supplement:
There is a workaround like:
Sub Orientation_OrientationChanged (Azimuth As Float, Pitch As Float, Roll As Float)
azm = Ang(Azimuth + 90)
alt = Roll
If CheckZ > 0 Then
alt = Roll - 90
Else
alt = (90 - Roll)
End If
End Sub
Sub Accelerometer_AccelerometerChanged (X As Float, Y As Float, Z As Float)
CheckZ = Z
End Sub
Nevertheless, a direct read-out maybe smoother.
Attachments
Last edited: