How to add mavlink items


#45

Hi Djavan,
May I know what does the GPS fix Info means?
http://developer.parrot.com/docs/reference/bebop/index.html#gps-fix-info
Is it possible to manually fix the drone’s GPS?


#46

The gps fix is just the fact that the GPS “sees” enough satellites to know its own position.
So its not possible to manually fix it. But I can assure you that you get a gps fix when I see your video.


#47

Is it possible of the LatLng value which is in double had to be converted to float and there might be loss of precision?


#48

According to this post, float numbers (as they are written in the mavlink file) precision should be around 10cm.

Please note that the floating precision instead of the double one is required by the mavlink protocol.


#49

Hi Djavan,

If i convert the LatLng value from the google map to float, i will get the below values.

07-13 14:30:59.045 9388-9388/com.parrot.sdksample I/ModeSelectionActivity: Location Name: Location 1
07-13 14:30:59.045 9388-9388/com.parrot.sdksample I/ModeSelectionActivity: Location Lat double : 1.4553784132003784
07-13 14:30:59.045 9388-9388/com.parrot.sdksample I/ModeSelectionActivity: Location Lat float : 1.4553784
07-13 14:30:59.045 9388-9388/com.parrot.sdksample I/ModeSelectionActivity: Location Lng float: 103.81843
07-13 14:30:59.045 9388-9388/com.parrot.sdksample I/ModeSelectionActivity: Location Lng double : 103.81842803955078


#50

Hi Djavan,

I have successfully completed the flight plan. Thank you.
But I have some questions to clarify:

  1. May I know whether the yaw parameter is it the degree in which the drone turns?
  2. If so, must the value be in degree or radian?
  3. And how do I add animation using the mavlink?
  4. Is it possible to set speed values from different points?

Regards,
Bhaarathan


#51

1- Yaw parameter is in degrees
2- Use degrees
3- There is no animation, what do you call animations?
4- Yes it is. ARMAVLINK_MissionItemUtils_CreateMavlinkChangeSpeedMissionItem can do that (in m/s). You have to put it before the waypoint mission item.

Hope this helps!


#52

I mean flip animations.
Is it possible to add flip animation in between 2 points?


#53

No you can’t.

Djavan


#54

Hi,

May I know whether the groundspeed and throttle value had to be entered?

ARMavlinkMissionItem CreateMavlinkChangeSpeedMissionItem(int groundSpeed, float speed, float throttle)

generator.addMissionItem(ARMavlinkMissionItem.CreateMavlinkChangeSpeedMissionItem((float) speed));
generator.addMissionItem(ARMavlinkMissionItem.CreateMavlinkNavWaypointMissionItem((float) locationList.get(i).getLatitude(), (float) locationList.get(i).getLongtitude(), locationList.get(i).getAltitude(), lastYaw));

#55

You can set 1 for the ground speed (indicating that you want the speed to be relative to the ground) and -1 for the throttle (indicating that you don’t want any change).


#56

Ok. Thank you Djavan.

Regards,
Bhaarathan


#58

Hi Djavan,

  1. Can i set the yaw value as a negative value?
  2. What is the max speed that the user can set?

#59
  1. Yes probably.
  2. From 1 to 10m/s

Regards,
Djavan