PX4 / PX4-Autopilot

PX4 Autopilot Software
https://px4.io
BSD 3-Clause "New" or "Revised" License
8.54k stars 13.52k forks source link

Fixed Orientation mode #752

Closed TickTock- closed 9 years ago

TickTock- commented 10 years ago

This is a request for a feature like the DJI "Course Lock" mode which allows you to set the current yaw orientation to be right stick up regardless of any subsequent yaw. This is very handy in two scenarios: 1) craft is very far away and it is difficult to see the orientation (no FPV) 2) when using a 2 axis gimbal for video and you want to maintain a course while following a an object on the ground (can yaw to track the object without having to compensate with the right stick).

I think this is fairly easy to implement and I will happily take it on if there is a general interest in this.

DJI also offers a "Home Lock" option which makes right stick up always away from the Launch Site (make the right stick output polar coordinates) but I find I prefer the Course Lock mode.

sjwilks commented 10 years ago

I guess what you are talking about is what other platforms refer to as simple mode and carefree mode. About a year ago I got it basically working but never returned to finish it off. You can take a look at https://github.com/sjwilks/Firmware/compare/carefree and extract any useful parts from it. Based on old code of course but the core of it is there and, as you suggest, quite straight forward.

TickTock- commented 10 years ago

Thanks! I will take a look. I did an exhaustive search for course lock mode before posting this. I didn't know it was called carefree mode on other platforms. Now that I know what to look for I will happily leverage that.

jmachuca77 commented 10 years ago

This is already on the ardupilot code. It's called simple mode and super simple mode. Is this what you are looking for?

http://youtu.be/iGA6D2GBFIc

Jaime Machuca jmachuca@prodigy.net.mx Cel. +52 1 (33) 3945 3350

Sent from my iPhone

On Mar 18, 2014, at 10:01 PM, TickTock- notifications@github.com wrote:

Thanks! I will take a look. I did an exhaustive search for course lock mode before posting this. I didn't know it was called carefree mode on other platforms. Now that I know what to look for I will happily leverage that.

— Reply to this email directly or view it on GitHub.

DrTon commented 10 years ago

Yes, it will be easy to implement (BTW, I have something like supersimple in my "follower" branch :) ), but now we have some high-priority tasks. Also need to review modes sticks mapping, before adding new modes (it's not very flexible now).

LorenzMeier commented 9 years ago

Closing for now so we can focus on wrapping up the existing flight modes - still welcome if someone would like to work on it!