dRonin icon indicating copy to clipboard operation
dRonin copied to clipboard

Nav: Home pos / alt should be set at arming, not powerup

Open mlyle opened this issue 9 years ago • 8 comments

mlyle avatar Jan 14 '16 19:01 mlyle

This would definitely be a good thing.

pug398 avatar Jan 14 '16 19:01 pug398

Are these one thing?

dustin avatar Jan 15 '16 00:01 dustin

Basically they should be, yes. Home pos is slightly harder than altitude but IMO we should solve both at once.

#65 is also closely related

mlyle avatar Jan 15 '16 00:01 mlyle

In LP we used a different set of coordinates, called TakeOffLocation. The rationale being that homelocation is used as origin point the local coordinate system used by wp etc, so it is advisable to not change it on the fly. TakeoffLocation is handled here: https://github.com/librepilot/LibrePilot/blob/next/flight/modules/ManualControl/takeofflocationhandler.c It supports preset (saved) takeofflocation, or acquired during first or each arming.

AlessioMorale avatar Jan 18 '16 15:01 AlessioMorale

This is good feedback. Probably it should be configurable, because sometimes what's desired is nav relative to the takeoff position, and sometimes not.

mlyle avatar Jan 18 '16 19:01 mlyle

I have the same issue as this and the same as "Baro initialization doesn't seem correct #65". Where it's most bothersome is in the OSD when you have to keep making sure that you observe the negative altitude number, which can range from -18 meters to -65 meters, and continually minus it in your head as you're flying and watching your altitude. Not that I don't mind the metal exercise but it would be better to pay attention to other readings. (-:

If someone wants to work on this I can test on a sparky1 and Sparky2.

cpusmith avatar Mar 17 '16 16:03 cpusmith

Been using GPS modes on my A450 with a Seppuku recently. I agree that Home position should be set to inital arm location rather than where 3D lock is first achieved. Maybe make a UAVO that allows to choose how Home is set.

LitterBugs avatar Jun 07 '18 02:06 LitterBugs

We sort of have that, but just with only two options, either preset position, or GPS lock position.

<field defaultvalue="FALSE" elements="1" name="Set" type="enum" units="">
      <description>Use preset home location when enabled, otherwise use location where GPS lock occurs. BE CAREFUL with this.</description>
      <options>
        <option>FALSE</option>
        <option>TRUE</option>
      </options>
</field>

Could extend that to an ENUM with a 3rd option to use position at arm if we implement that.

tracernz avatar Jun 07 '18 03:06 tracernz