Skip to content
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

Add Auto Command 19 - CMD_NAV_LOITER_TIME #206

Open
bionicbone opened this issue Jan 9, 2016 · 3 comments
Open

Add Auto Command 19 - CMD_NAV_LOITER_TIME #206

bionicbone opened this issue Jan 9, 2016 · 3 comments

Comments

@bionicbone
Copy link
Contributor

Add this to the auto analysis

Change link path for values to:
https://github.com/diydrones/ardupilot/blob/ee819959b6a94cf8af0759c0e9999c8db293387b/libraries/GCS_MAVLink/message_definitions/common.xml

          <entry value="19" name="MAV_CMD_NAV_LOITER_TIME">
                <description>Loiter around this MISSION for X seconds</description>
                <param index="1">Seconds (decimal)</param>
                <param index="2">Empty</param>
                <param index="3">Radius around MISSION, in meters. If positive loiter clockwise, else counter-clockwise</param>
                <param index="4">Desired yaw angle.</param>
                <param index="5">Latitude</param>
                <param index="6">Longitude</param>
                <param index="7">Altitude</param>
@rsilk1949
Copy link

Also needed for CMD 21 (Land).

@bionicbone
Copy link
Contributor Author

Using SITL the available option in MP are:
correct parameters are not set here,
BOLD are already completed,
Italics have been requested.
CMD, 669918592, 29, 0, 16, 0, 0, 0, 0, -35.36326, 149.1652, 584.09 Home Set if available
CMD, 669918592, 29, 1, 16, 0, 0, 0, 0, 0, 0, 0 - New WP

CMD, 669918592, 29, 2, 82, 0, 0, 0, 0, 0, 0, 0 - New Spline WP
CMD, 669918592, 29, 3, 18, 0, 0, 0, 0, 0, 0, 0 - Loiter Turns
CMD, 669918592, 29, 4, 19, 0, 0, 1, 0, 0, 0, 0 - Loiter Time
CMD, 669918592, 29, 5, 17, 0, 0, 1, 0, 0, 0, 0 - Loiter Unlim
CMD, 669918592, 29, 6, 20, 0, 0, 0, 0, 0, 0, 0 - RTL
CMD, 669918592, 29, 7, 21, 0, 0, 0, 0, 0, 0, 0 - Land
CMD, 669918592, 29, 8, 22, 0, 0, 0, 0, 0, 0, 30.47 - Take OFF
CMD, 669918592, 29, 9, 92, 0, 0, 0, 0, 0, 0, 0 - Guided Enable
CMD, 669918592, 29, 10, 222, 0, 0, 0, 0, 0, 0, 0 - Guided Limits
CMD, 669918592, 29, 11, 201, 0, 0, 0, 0, 0, 0, 0 - Set ROI
CMD, 669918592, 29, 12, 112, 0, 0, 0, 0, 0, 0, 0 - Delay
CMD, 669918592, 29, 13, 113, 0, 0, 0, 0, 0, 0, 0 - Change Alt
CMD, 669918592, 29, 14, 114, 0, 0, 0, 0, 0, 0, 0 - Delay to Distance from WP
CMD, 669918592, 29, 15, 115, 0, 0, 0, 0, 0, 0, 0 - Yaw Angle
CMD, 669918592, 29, 16, 177, 0, 0, 0, 0, 0, 0, 0 - Jump
CMD, 669918592, 29, 17, 178, 0, 0, 0, 0, 0, 0, 0 - Change Speed
CMD, 669918592, 29, 18, 211, 0, 0, 0, 0, 0, 0, 0 - Gripper - Not in Ardu Firmware enumeration file!!
CMD, 669918592, 29, 19, 208, 0, 0, 0, 0, 0, 0, 0 - Parachute
CMD, 669918592, 29, 20, 206, 0, 0, 0, 0, 0, 0, 0 - Cam Trigger
CMD, 669918592, 29, 21, 181, 0, 0, 0, 0, 0, 0, 0 - Set Relay
CMD, 669918592, 29, 22, 182, 0, 0, 0, 0, 0, 0, 0 - Repeat Relay
CMD, 669918592, 29, 24, 183, 0, 0, 0, 0, 0, 0, 0 - Set Servo
CMD, 669918592, 29, 25, 184, 0, 0, 0, 0, 0, 0, 0 - Repeat Servo
CMD, 669918592, 29, 26, 202, 0, 0, 0, 0, 0, 0, 0 - DigiCam Configure
CMD, 669918592, 29, 27, 203, 0, 0, 0, 0, 1, 0, 0 - DigiCam Control
CMD, 669918592, 29, 28, 205, 0, 0, 0, 0, 0, 0, 0 - DigiCam Mount Control

@bionicbone
Copy link
Contributor Author

Also, we need to solve the following issues with auto command flight analysis:
Using SITL I have found further errors

  • At the end of the flight we get "End of Saved AUTO Commands List"
  • During the new mission at the top of the log command 0 should contain the current position of the Copter, so if there are 4 lines in the mission log there will be 5 lines in the new mission. Can we use this to set the starting position. What happens if GPS has not got a position?
  • Because of the above alter the count from 1 to 4, ignoring zero.
  • During the mission if Lon or Lng is zero the set the starting position to GPS, if that does have some good co-ordinates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants