YarosMallorca / DJI-Mapper

A cross-platform tool to create automatic Survey/Photogrammetry missions for Drones using DJI Fly/Litchi
https://djimapper.yarosfpv.com
32 stars 6 forks source link

Gimbal not rotating to -90 at first image capture #5

Open nW70M1 opened 2 months ago

nW70M1 commented 2 months ago

When executing a DJI Mapper mission the first image captured at waypoint 1 is not taken with the gimbal rotation at -90, all following images are taken at -90. The gimbal rotation to -90 does not happen until after the first image is taken so the first image of each flight is not suitable for use in mapping.

YarosMallorca commented 2 months ago

Thanks for the report @nW70M1. Could you please specify which drone and which flight software (DJI Fly or Litchi) are you using?


This might be due to specifics of the DJI Fly software that I haven't tested yet. They're updating it constantly. Will look for a fix.

nW70M1 commented 2 months ago

I'm using a Mini 4 Pro with the RC 2 controller, so DJI Fly only available to me.

I can supply a couple of *.wpml files if you want to see what the difference is between one that starts with the gimbal at -90 and the DJI Mapper created one that does this after the first image is taken.

YarosMallorca commented 2 months ago

Sure, that would be good. Thanks!

nW70M1 commented 2 months ago

Attached a couple of *.wpml files for comparison.

waylines.zip

YarosMallorca commented 2 months ago

Interesting... @nW70M1 I don't really understand what DJI does by setting

<wpml:action>
  <wpml:actionId>1</wpml:actionId>
  <wpml:actionActuatorFunc>###ACTION###</wpml:actionActuatorFunc>
  <wpml:actionActuatorFuncParam>
  <wpml:payloadPositionIndex>0</wpml:payloadPositionIndex>
  </wpml:actionActuatorFuncParam>
</wpml:action>

Will have to look into this in the future. It's hard to fix bugs like these because it requires test flights, and I don't have much time currently.

Just wondering, it fix the issue if you manually set the gimbal tilt with the wheel before starting the mission? Or the drone resets that when starting the mission to 0?

nW70M1 commented 2 months ago

I will try to manually rotate the gimbal to -90 after takeoff before arriving at the first waypoint and see if that stays set for the first image. I will let you know.

The other .wpml file is not from DJI, I generated that mission with different software.

nW70M1 commented 2 months ago

Rotating the gimbal to -90 manually before arriving at the first waypoint will work around this issue.

jasonrmh commented 2 months ago

I remember a similar issue with standard missions in litchi (not planned in DJI Mapper). The work around was to set an extra waypoint to tilt gimbal down before the actual main starting waypoint.

YarosMallorca commented 2 months ago

I'll have to look on how https://www.waypointmap.com/ works around this,

nW70M1 commented 2 months ago

Waypointmap is the source of the other .wpml file I attached above.

SummerRainCity commented 3 weeks ago

Waypointmap 是我上面附加的另一个 .wpml 文件的来源。

Hello, my name is Xia Yucheng, I have developed a DJI route planning software, consider using it? You can contact me at 2020498977@qq.com if you need me(你好,我叫夏玉成,我开发了一个大疆路线规划软件,考虑使用吗?如果你需要我,可以通过2020498977@qq.com联系我)