Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column
width70%

Introduction

This page talk about Point of Interest (here called POI). You could use it in example for aerial photography. Your vehicle nose will always point to the POI when using autonomous flight modes like Position Hold, PathPlanner or GPS Assist (i think so but not tested yet).

This is the manual use of POI, in future releases there will be easier ways to set the POI (LP2Go App, GCS).

Prerequisites

  1. MAG and GPS works fine (see here for help with MAG problems Aux Mag Setup and Calibration or search the Forum https://forum.librepilot.org)
  2. Altitude Hold works fine (see Altitude Hold)
  3. Do some successful flights in PathPlanner flightmode.
  4. You may need a OPLink or simply use USB for telemetry connection.
Column
width30%
Panel
titleIn this page
Table of Contents

...

Section
Column
width60%

POI Location with fixed HomeLocation

  1. Power your copter and connect to telemetry with GCS over OPLink (USB will also work but then your copter is limited in movement, see step 4)
  2. Wait till you get a good GPS signal and reliable position.
  3. Set your HomePosition near by where you are flying be sure to set height correctly (Its important because in PathPlanner flightmode copter will first fly to HomeLocation and then to the waypoints and heights for waypoints will be used from HomeLocation, is that right?????)
  4. Take your copter and move it to the location where POI should be and leave it there.
  5. Go to System > Data Objects  Objects  and open up PoiLocation and PositionState.
  6. Click on the North value (standard 0,0000) at PoiLocation and set it to the value of North from PositionState (Don't hit enter or click elsewhere with mouse after input value, otherwise it will be overwritten by telemetry data from flight controller).
  7. Click on the red Up arrow on the top
  8. Repeat step 6 and 7 for East and Down values

Now your POI is set to the actual position of your copter. If you want to move the POI you can just repeat steps 4 - 8. And the good thing is that you always have a safe HomeLocation for example in case of RTB.

Column
width30%


Image 1

Image 1

Section
Column
width60%

Activate / Deactivate YAW Control

Now that you set up the POI Location you must activate it for autonomous flight modes. Which means that your copters front will always point to the POI you defined before after activating the YAW control.

  • To activate YAW Control go to System > VtolPathFollowerSettings > YawControl and choose POI (see image 2)
  • To deactivate YAW Control go to System > VtolPathFollowerSettings > YawControl and choose Manual

Test it!

  1. Set up a first flightmode in normal Attitude mode for take off (or another mode just for take off)
  2. Set up a second flight mode with Position Hold
  3. Take off in first flightmode
  4. Switch to second flight mode (Position Hold), be aware to switch back to first flightmode if something went wrong. 

Copter should now Yaw automatically and point to your defined POI. Be prepared, the initial Yawing could be really fast, depends on your Rate YAW.

Column
width40%


Image 2

Image 2

...

Section

Use POI in PathPlanner FlightMode

Be aware when using HomeLocation as your POI and you change the HomeLocation all waypoints will move relative to your HomeLocation.
Its possible to change your waypoints parameters to absolute coordinates (In WayPoint Editor set Relative to Home to false) but not tested yet.

Example 1 (3 waypoints)

  1. Set up a flightmode in normal Attitude mode for take off (or another mode just for take off)
  2. Set up a second flight mode with Velocity Roam (just to be sure GPS mode is working fine)
  3. Set up a third flightmode with PathPlanner
  4. Do POI Setup (see above) and Activate YAW Control (see above).
  5. Go to Flight Data Tab and put in 3 waypoints (best is if waypoints are around your POI):
    1. Right click on the map and choose AddWaypoint.
    2. Do the same for the other 2 waypoints.
    3. Move the waypoints with leftmouse hold to the position where you want them to be.
    4. Right click on map and choose WaypointEditor.
    5. Double check Positions (they're relative to your Homeposition) and AltitudeAboveHome. (its the height above your Homeposition, so again be sure your Homeposition height is set correctly)
    6. In WaypointEditor click on the green up Arrow to send the pathplan data to your copter.
  6. Take off in first flightmode, can be simple Attitude mode.
  7. Switch to Velocity roam and check if everything works fine.
  8. Switch to PathPlanner flightmode and be ready to switch back to first or second flightmode if something went wrong.

Now your copter should fly first to HomeLocation and then to the waypoints with nose always pointing to your POI. It will repeat the flightplan until you switch to another flightmode.

See picture below, in this example POI is set to HomeLocation and there is three waypoints around it.

POI - 3 waypoints

...