Obtaining Tilt with Olympus Camera Kit

Asked 1 years ago, Updated 1 years ago, 99 views

Attempting to get tilt (roll, pitch) via Olympus Camera Kit.If you look at the Android version of OAModeDial, the level display follows subtle changes in angle.

In an application using CAMERA KIT, onUpdateStatus() may be called LevelGauge as the camera tilt changes, but when you write and move the code, you can only notice the value subtracted by orientation or portrait_left>.Is that the specification?

If onUpdateStatus() is not called, for example, calling onUpdateLiveView() to getLevelGauge() does not seem to update the angle value and there is no way to get the angle.

The code looks like the following

void onUpdateStatus (OLYCamera camera, final String name) {
...
 } else if(name.equalsIgnoreCase("LevelGauge")){
      updateAngles();
 } ...

private void updateAngles() {
....
  Map<String,Object>map=camera.getLevelGauge();
  if(map!=null){
     Float rolling=(Float)map.get(OLYCamera.LEVEL_GAUGE_ROLLING_KEY);
     Float pitching=(Float)map.get(OLYCamera.LEVEL_GAUGE_PITCHING_KEY);
  }
....

android olympus-camerakit

2022-09-30 20:58

1 Answers

OPC support.

Thank you for your question.
After investigating the Camera Kit, we found that there was a defect. I'm very sorry.

An updated version will be released, so please wait a little longer.

(Added on October 8, 2015)
Thank you for waiting.
Ver.1.1.1 has been used.

Thank you for your cooperation.


2022-09-30 20:58

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.