dji-sdk / Onboard-SDK-ROS

Official ROS packages for DJI onboard SDK.
437 stars 308 forks source link

Matrice 210 V2 RTK - Limit yaw velocity and take off speed #368

Open manfer33 opened 3 years ago

manfer33 commented 3 years ago

I am using a Matrice 210 V2 RTK (ROS OSDK 3.8.1) to flight executing a mission with a list of waypoints. I would like to reduce the velocity params, but I only get modify this param to reduce the velocity between waypoints. The yaw velocity (the time when the platform reach a waypoint and heading to the next one) still being too much fast but I don't find the way to limit it. I would like reduce the takeoff speed too.

DJI Assistant for Matrice does not offer any option to config that kind of parameters. Does exist any option throught software? Do I need to modify any file of OSDK?

dji-dev commented 3 years ago

Agent comment from kyle.cai in Zendesk ticket #37788:

Dear developer ,

Thank you for contacting DJI.

There is no direct param or function to set the yaw velocity (the time when the platform reach a waypoint and heading to the next one), but if there are no waypoints task when reaching the waypoint, you can try to set the tracemode to coordinated turn mode, smooth transition between waypoints(https://github.com/dji-sdk/Onboard-SDK-ROS/blob/3.8.1/dji_sdk/msg/MissionWaypointTask.msg#L16).

and the param damping from the following struct should be set a value great than or equal to 0.2 , if you set the tracemode to coordinated turn mode. typedef struct WayPointSettings {

...

float32_t damping; /!< Bend length (effective coordinated turn mode only) / ... } WayPointSettings; // pack(1)

Thank you for your understanding and support, hope you have a nice day.

Best Regards, DJI SDK Support Team

manfer33 commented 3 years ago

Thank you for your response. Along the mission our drone must use the Zenmuse onboard. Could be a problem to smooth the yaw velocity when it reaching the waypoint?

By other side, as I ask you in the first message, is there any way to reduce de takeoff speed/acceleration?

dji-dev commented 3 years ago

Agent comment from kyle.cai in Zendesk ticket #37788:

Dear developer ,

Thank you for contacting DJI.

1、Along the mission our drone must use the Zenmuse onboard. Could be a problem to smooth the yaw velocity when it reaching the waypoint?

-->The coordinated turn mode relates to the drone, it is independent of the payload(Zenmuse).

2、 is there any way to reduce de takeoff speed/acceleration?

-->The param velocity_range and idle_velocity can be used to set the Cruising Speed(include the takeoff speed)(https://github.com/dji-sdk/Onboard-SDK-ROS/blob/3.8.1/dji_sdk/msg/MissionWaypointTask.msg#L26 && L27), but there is no param to set the the takeoff speed independent with the Cruising Speed.

Thank you for your understanding and support, hope you have a nice day.

Best Regards, DJI SDK Support Team