Skip to content

Loiter radius and Direction not working for FW via MAV_CMD_DO_REPOSITION #24612

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

Open
ryanjAA opened this issue Mar 26, 2025 · 0 comments · May be fixed by #24625
Open

Loiter radius and Direction not working for FW via MAV_CMD_DO_REPOSITION #24612

ryanjAA opened this issue Mar 26, 2025 · 0 comments · May be fixed by #24625

Comments

@ryanjAA
Copy link
Contributor

ryanjAA commented Mar 26, 2025

Describe the bug

For reference:

https://discord.com/channels/1022170275984457759/1022186266957201480/1354505832426901546

When sending a MAV_CMD_DO_REPOSITION with param 3 (and 4) loiter radius and loiter orientation aren’t responding to the command:

Sending:

MAVLink Protocol (44)
    Header
    Payload: COMMAND_LONG (76)
        target_system (uint8_t): 1
        target_component (uint8_t): 1
        command (MAV_CMD): MAV_CMD_DO_REPOSITION (192)
        confirmation (uint8_t): 0
        param1: Speed (float) m/s: -1
        param2: Bitmask (MAV_DO_REPOSITION_FLAGS): 0x00000001 (1)
        param3: Radius (float) m: 1000
        param4: Yaw (float) deg: 0
        param5: Latitude (float): 47.4
        param6: Longitude (float): 8.55
        param7: Altitude (float) m: nan
    Message CRC: 0xc63b

It does the normal FW default radius, same with Yaw at 1 for CCW.

Tried several release versions. All the same.

For reference:

 <entry value="192" name="MAV_CMD_DO_REPOSITION" hasLocation="true" isDestination="true">
        <description>Reposition the vehicle to a specific WGS84 global position.</description>
        <param index="1" label="Speed" units="m/s" minValue="-1">Ground speed, less than 0 (-1) for default</param>
        <param index="2" label="Bitmask" enum="MAV_DO_REPOSITION_FLAGS">Bitmask of option flags.</param>
        <param index="3" label="Radius" units="m">Loiter radius for planes. Positive values only, direction is controlled by Yaw value. A value of zero or NaN is ignored. </param>
        <param index="4" label="Yaw" units="deg">Yaw heading. NaN to use the current system yaw heading mode (e.g. yaw towards next waypoint, yaw to home, etc.). For planes indicates loiter direction (0: clockwise, 1: counter clockwise)</param>
        <param index="5" label="Latitude">Latitude</param>
        <param index="6" label="Longitude">Longitude</param>
        <param index="7" label="Altitude" units="m">Altitude</param>
      </entry>

To Reproduce

No response

Expected behavior

No response

Screenshot / Media

No response

Flight Log

No response

Software Version

No response

Flight controller

No response

Vehicle type

None

How are the different components wired up (including port information)

No response

Additional context

No response

@ryanjAA ryanjAA linked a pull request Mar 27, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant