Ardrone3.GPS*

command message olympe.messages.ardrone3.GPSSettings.HomeType(type, _timeout=20, _no_expect=False, _float_tol=(1e-07, 1e-09), _int_tol=0)

ardrone3.GPSSettings.HomeType

Set the preferred home type. Please note that this is only a preference. The actual type chosen is given by the event HomeTypeChosenChanged(). You can get the currently available types with the event HomeTypeAvailabilityChanged().

Parameters:

type : olympe.enums.ardrone3.GPSSettings.HomeType_Type

_timeoutint

command message timeout (defaults to 20)

_no_expectbool

if True, do not expect the usual command expectation (defaults to False)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Supported by:

ANAFI:

with an up to date firmware

ANAFI Thermal:

with an up to date firmware

Deprecated message

Warning

This message is deprecated and should no longer be used

Result: The user choice is known by the drone. Then, event HomeTypeChanged() is triggered.

Expectations: HomeTypeChanged(type=self.type, _policy='wait')

command message olympe.messages.ardrone3.GPSSettings.ResetHome(_timeout=10, _no_expect=False, _float_tol=(1e-07, 1e-09), _int_tol=0)

ardrone3.GPSSettings.ResetHome

Reset home position.

Parameters:

_timeoutint

command message timeout (defaults to 10)

_no_expectbool

if True, do not expect the usual command expectation (defaults to False)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Unsupported message

Todo

Remove unsupported message ardrone3.GPSSettings.ResetHome

Deprecated message

Warning

This message is deprecated and should no longer be used

Result: The home position is reset. Then, event ResetHomeChanged() is triggered.

command message olympe.messages.ardrone3.GPSSettings.ReturnHomeDelay(delay, _timeout=20, _no_expect=False, _float_tol=(1e-07, 1e-09), _int_tol=0)

ardrone3.GPSSettings.ReturnHomeDelay

Set the delay after which the drone will automatically try to return home after a disconnection.

Parameters:

delayu16

Delay in second

_timeoutint

command message timeout (defaults to 20)

_no_expectbool

if True, do not expect the usual command expectation (defaults to False)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Supported by:

ANAFI:

with an up to date firmware

ANAFI Thermal:

with an up to date firmware

Deprecated message

Warning

This message is deprecated and should no longer be used

Result: The delay of the return home is set. Then, event ReturnHomeDelayChanged() is triggered.

Expectations: ReturnHomeDelayChanged(delay=self.delay, _policy='wait')

command message olympe.messages.ardrone3.GPSSettings.ReturnHomeMinAltitude(value, _timeout=20, _no_expect=False, _float_tol=(1e-07, 1e-09), _int_tol=0)

ardrone3.GPSSettings.ReturnHomeMinAltitude

Set the return home minimum altitude. If the drone is below this altitude when starting its return home, it will first reach the minimum altitude. If it is higher than this minimum altitude, it will operate its return home at its actual altitude.

Parameters:

valuefloat

Altitude in meters, relative to the take off point. Bounds are given by the event ReturnHomeMinAltitudeChanged().

_timeoutint

command message timeout (defaults to 20)

_no_expectbool

if True, do not expect the usual command expectation (defaults to False)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Supported by:

ANAFI:

with an up to date firmware

ANAFI Thermal:

with an up to date firmware

Deprecated message

Warning

This message is deprecated and should no longer be used

Result: The minimum altitude for the return home is set. Then, event ReturnHomeMinAltitudeChanged() is triggered.

Expectations: ReturnHomeMinAltitudeChanged(value=self.value, _policy='wait')

command message olympe.messages.ardrone3.GPSSettings.SendControllerGPS(latitude, longitude, altitude, horizontalAccuracy=1.0, verticalAccuracy=1.0, _timeout=10, _no_expect=False, _float_tol=(1e-07, 1e-09), _int_tol=0)

ardrone3.GPSSettings.SendControllerGPS

Set controller gps location. The user location might be used in case of return home, according to the home type and the accuracy of the given position. You can get the current home type with the event HomeTypeChanged().

Parameters:

latitudedouble

GPS latitude in decimal degrees

longitudedouble

GPS longitude in decimal degrees

altitudedouble

GPS altitude in meters

horizontalAccuracydouble

Horizontal Accuracy in meter ; equal -1 if no horizontal Accuracy

verticalAccuracydouble

Vertical Accuracy in meter ; equal -1 if no vertical Accuracy

_timeoutint

command message timeout (defaults to 10)

_no_expectbool

if True, do not expect the usual command expectation (defaults to False)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Unsupported message

Todo

Remove unsupported message ardrone3.GPSSettings.SendControllerGPS

Result: The controller position is known by the drone. Then, event GPSFixStateChanged() is triggered.

Expectations: GPSFixStateChanged(_policy='wait')

command message olympe.messages.ardrone3.GPSSettings.SetHome(latitude, longitude, altitude, _timeout=10, _no_expect=False, _float_tol=(1e-07, 1e-09), _int_tol=0)

ardrone3.GPSSettings.SetHome

Set home position.

Parameters:

latitudedouble

Home latitude in decimal degrees

longitudedouble

Home longitude in decimal degrees

altitudedouble

Home altitude in meters

_timeoutint

command message timeout (defaults to 10)

_no_expectbool

if True, do not expect the usual command expectation (defaults to False)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Unsupported message

Todo

Remove unsupported message ardrone3.GPSSettings.SetHome

Deprecated message

Warning

This message is deprecated and should no longer be used

enum olympe.enums.ardrone3.GPSSettings.HomeType_Type

The type of the home position

Enum aliases:

  • olympe.enums.ardrone3.HomeType_Type

  • olympe.enums.ardrone3.HomeTypeChanged_Type

TAKEOFF:

The drone will try to return to the take off position (0)

PILOT:

The drone will try to return to the pilot position (1)

FOLLOWEE:

The drone will try to return to the target of the current (or last) follow me (2)

event message olympe.messages.ardrone3.GPSSettingsState.GPSFixStateChanged(fixed=None, _policy='check_wait', _float_tol=(1e-07, 1e-09), _int_tol=0)

ardrone3.GPSSettingsState.GPSFixStateChanged

Gps fix info.

Parameters:

fixedu8

1 if gps on drone is fixed, 0 otherwise

_policyolympe.messaging.arsdk_expectations.ExpectPolicy

specify how to check the expectation. Possible values are ‘check’, ‘wait’ and ‘check_wait’ (defaults to ‘check_wait’)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Supported by:

ANAFI:

with an up to date firmware

ANAFI Thermal:

with an up to date firmware

Deprecated message

Warning

This message is deprecated and should no longer be used

Triggered: on change.

event message olympe.messages.ardrone3.GPSSettingsState.GPSUpdateStateChanged(state=None, _policy='check_wait', _float_tol=(1e-07, 1e-09), _int_tol=0)

ardrone3.GPSSettingsState.GPSUpdateStateChanged

Gps update state.

Parameters:

state : olympe.enums.ardrone3.GPSSettingsState.GPSUpdateStateChanged_State

_policyolympe.messaging.arsdk_expectations.ExpectPolicy

specify how to check the expectation. Possible values are ‘check’, ‘wait’ and ‘check_wait’ (defaults to ‘check_wait’)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Unsupported message

Todo

Remove unsupported message ardrone3.GPSSettingsState.GPSUpdateStateChanged

Deprecated message

Warning

This message is deprecated and should no longer be used

Triggered: on change.

event message olympe.messages.ardrone3.GPSSettingsState.GeofenceCenterChanged(latitude=None, longitude=None, _policy='check_wait', _float_tol=(1e-07, 1e-09), _int_tol=0)

ardrone3.GPSSettingsState.GeofenceCenterChanged

Geofence center location. This location represents the center of the geofence zone. This is updated at a maximum frequency of 1 Hz.

Parameters:

latitudedouble

GPS latitude in decimal degrees

longitudedouble

GPS longitude in decimal degrees

_policyolympe.messaging.arsdk_expectations.ExpectPolicy

specify how to check the expectation. Possible values are ‘check’, ‘wait’ and ‘check_wait’ (defaults to ‘check_wait’)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Unsupported message

Todo

Remove unsupported message ardrone3.GPSSettingsState.GeofenceCenterChanged

Deprecated message

Warning

This message is deprecated and should no longer be used

Triggered: when HomeChanged() and when GpsLocationChanged() before takeoff.

event message olympe.messages.ardrone3.GPSSettingsState.HomeChanged(latitude=None, longitude=None, altitude=None, _policy='check_wait', _float_tol=(1e-07, 1e-09), _int_tol=0)

ardrone3.GPSSettingsState.HomeChanged

Home location.

Parameters:

latitudedouble

Home latitude in decimal degrees

longitudedouble

Home longitude in decimal degrees

altitudedouble

Home altitude in meters

_policyolympe.messaging.arsdk_expectations.ExpectPolicy

specify how to check the expectation. Possible values are ‘check’, ‘wait’ and ‘check_wait’ (defaults to ‘check_wait’)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Supported by:

ANAFI:

with an up to date firmware

ANAFI Thermal:

with an up to date firmware

Triggered: when HomeTypeChosenChanged() changes. Or by SendControllerGPS() when HomeTypeChosenChanged() is Pilot. Or regularly after gps() when HomeTypeChosenChanged() is FollowMeTarget. Or at take off HomeTypeChosenChanged() is Takeoff. Or when the first fix occurs and the HomeTypeChosenChanged() is FirstFix.

event message olympe.messages.ardrone3.GPSSettingsState.HomeTypeChanged(type=None, _policy='check_wait', _float_tol=(1e-07, 1e-09), _int_tol=0)

ardrone3.GPSSettingsState.HomeTypeChanged

User preference for the home type. See HomeTypeChosenChanged() to get the drone actual home type.

Parameters:

type : olympe.enums.ardrone3.GPSSettingsState.HomeTypeChanged_Type

_policyolympe.messaging.arsdk_expectations.ExpectPolicy

specify how to check the expectation. Possible values are ‘check’, ‘wait’ and ‘check_wait’ (defaults to ‘check_wait’)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Supported by:

ANAFI:

with an up to date firmware

ANAFI Thermal:

with an up to date firmware

Deprecated message

Warning

This message is deprecated and should no longer be used

Triggered: by HomeType().

event message olympe.messages.ardrone3.GPSSettingsState.ResetHomeChanged(latitude=None, longitude=None, altitude=None, _policy='check_wait', _float_tol=(1e-07, 1e-09), _int_tol=0)

ardrone3.GPSSettingsState.ResetHomeChanged

Home location has been reset.

Parameters:

latitudedouble

Home latitude in decimal degrees

longitudedouble

Home longitude in decimal degrees

altitudedouble

Home altitude in meters

_policyolympe.messaging.arsdk_expectations.ExpectPolicy

specify how to check the expectation. Possible values are ‘check’, ‘wait’ and ‘check_wait’ (defaults to ‘check_wait’)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Unsupported message

Todo

Remove unsupported message ardrone3.GPSSettingsState.ResetHomeChanged

Deprecated message

Warning

This message is deprecated and should no longer be used

Triggered: by ResetHome().

event message olympe.messages.ardrone3.GPSSettingsState.ReturnHomeDelayChanged(delay=None, _policy='check_wait', _float_tol=(1e-07, 1e-09), _int_tol=0)

ardrone3.GPSSettingsState.ReturnHomeDelayChanged

Return home trigger delay. This delay represents the time after which the return home is automatically triggered after a disconnection.

Parameters:

delayu16

Delay in second

_policyolympe.messaging.arsdk_expectations.ExpectPolicy

specify how to check the expectation. Possible values are ‘check’, ‘wait’ and ‘check_wait’ (defaults to ‘check_wait’)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Supported by:

ANAFI:

with an up to date firmware

ANAFI Thermal:

with an up to date firmware

Deprecated message

Warning

This message is deprecated and should no longer be used

Triggered: by ReturnHomeDelay().

event message olympe.messages.ardrone3.GPSSettingsState.ReturnHomeMinAltitudeChanged(value=None, min=None, max=None, _policy='check_wait', _float_tol=(1e-07, 1e-09), _int_tol=0)

ardrone3.GPSSettingsState.ReturnHomeMinAltitudeChanged

Minumum altitude for return home changed.

Parameters:

valuefloat

Current value in meters, relative to take off altitude.

minfloat

Lower bound in meters, relative to take off altitude.

maxfloat

Upper bound in meters, relative to take off altitude.

_policyolympe.messaging.arsdk_expectations.ExpectPolicy

specify how to check the expectation. Possible values are ‘check’, ‘wait’ and ‘check_wait’ (defaults to ‘check_wait’)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Supported by:

ANAFI:

with an up to date firmware

ANAFI Thermal:

with an up to date firmware

Deprecated message

Warning

This message is deprecated and should no longer be used

Triggered: by ReturnHomeMinAltitude().

enum olympe.enums.ardrone3.GPSSettingsState.GPSUpdateStateChanged_State

The state of the gps update

updated:

Drone GPS update succeed (0)

inProgress:

Drone GPS update In progress (1)

failed:

Drone GPS update failed (2)

enum olympe.enums.ardrone3.GPSSettingsState.HomeTypeChanged_Type

The type of the home position

Enum aliases:

  • olympe.enums.ardrone3.HomeType_Type

  • olympe.enums.ardrone3.HomeTypeChanged_Type

TAKEOFF:

The drone will try to return to the take off position (0)

PILOT:

The drone will try to return to the pilot position (1)

FOLLOWEE:

The drone will try to return to the target of the current (or last) follow me (2)

event message olympe.messages.ardrone3.GPSState.HomeTypeAvailabilityChanged(type=None, available=None, list_flags=None, _policy='check_wait', _float_tol=(1e-07, 1e-09), _int_tol=0)

ardrone3.GPSState.HomeTypeAvailabilityChanged

Home type availability.

Parameters:

type : olympe.enums.ardrone3.GPSState.HomeTypeAvailabilityChanged_Type

availableu8

1 if this type is available, 0 otherwise

_policyolympe.messaging.arsdk_expectations.ExpectPolicy

specify how to check the expectation. Possible values are ‘check’, ‘wait’ and ‘check_wait’ (defaults to ‘check_wait’)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Supported by:

ANAFI:

with an up to date firmware

ANAFI Thermal:

with an up to date firmware

Deprecated message

Warning

This message is deprecated and should no longer be used

Triggered: when the availability of, at least, one type changes. This might be due to controller position availability, gps fix before take off or other reason.

event message olympe.messages.ardrone3.GPSState.HomeTypeChosenChanged(type=None, _policy='check_wait', _float_tol=(1e-07, 1e-09), _int_tol=0)

ardrone3.GPSState.HomeTypeChosenChanged

Home type. This choice is made by the drone, according to the HomeTypeChanged() and the HomeTypeAvailabilityChanged(). The drone will choose the type matching with the user preference only if this type is available. If not, it will chose a type in this order: FOLLOWEE ; TAKEOFF ; PILOT ; FIRST_FIX

Parameters:

type : olympe.enums.ardrone3.GPSState.HomeTypeChosenChanged_Type

_policyolympe.messaging.arsdk_expectations.ExpectPolicy

specify how to check the expectation. Possible values are ‘check’, ‘wait’ and ‘check_wait’ (defaults to ‘check_wait’)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Supported by:

ANAFI:

with an up to date firmware

ANAFI Thermal:

with an up to date firmware

Deprecated message

Warning

This message is deprecated and should no longer be used

Triggered: when the return home type chosen by the drone changes. This might be produced by a user preference triggered by HomeType() or by a change in the HomeTypeAvailabilityChanged().

event message olympe.messages.ardrone3.GPSState.NumberOfSatelliteChanged(numberOfSatellite=None, _policy='check_wait', _float_tol=(1e-07, 1e-09), _int_tol=0)

ardrone3.GPSState.NumberOfSatelliteChanged

Number of GPS satellites.

Parameters:

numberOfSatelliteu8

The number of satellite

_policyolympe.messaging.arsdk_expectations.ExpectPolicy

specify how to check the expectation. Possible values are ‘check’, ‘wait’ and ‘check_wait’ (defaults to ‘check_wait’)

_float_toltuple

specify the float comparison tolerance, a 2-tuple containing a relative tolerance float value and an absolute tolerate float value (default to (1e-07, 1e-09)). See python 3 stdlib math.isclose documentation for more information

_matching_modeolympe.MatchingMode

specify the expectation matching mode (default to olympe.MatchingMode.pattern)

_int_tolint

specify the int comparison tolerance, an int containing an absolute tolerate int value (default to 0)

Supported by:

ANAFI:

with an up to date firmware

ANAFI Thermal:

with an up to date firmware

Deprecated message

Warning

This message is deprecated and should no longer be used

Triggered: on change.

enum olympe.enums.ardrone3.GPSState.HomeTypeAvailabilityChanged_Type

The type of the return home

Enum aliases:

  • olympe.enums.ardrone3.HomeTypeAvailabilityChanged_Type

  • olympe.enums.ardrone3.HomeTypeChosenChanged_Type

TAKEOFF:

The drone has enough information to return to the take off position (0)

PILOT:

The drone has enough information to return to the pilot position (1)

FIRST_FIX:

The drone has not enough information, it will return to the first GPS fix (2)

FOLLOWEE:

The drone has enough information to return to the target of the current (or last) follow me (3)

enum olympe.enums.ardrone3.GPSState.HomeTypeChosenChanged_Type

The type of the return home chosen

Enum aliases:

  • olympe.enums.ardrone3.HomeTypeAvailabilityChanged_Type

  • olympe.enums.ardrone3.HomeTypeChosenChanged_Type

TAKEOFF:

The drone will return to the take off position (0)

PILOT:

The drone will return to the pilot position In this case, the drone will use the position given by ARDrone3-SendControllerGPS (1)

FIRST_FIX:

The drone has not enough information, it will return to the first GPS fix (2)

FOLLOWEE:

The drone will return to the target of the current (or last) follow me In this case, the drone will use the position of the target of the followMe (given by ControllerInfo-GPS) (3)