Skip to content

Commit f77990e

Browse files
authored
Removed confusing deprecation warning. Fixes pozyxLabs#66
This isn't planned anymore.
1 parent 0d7754a commit f77990e

File tree

1 file changed

+2
-48
lines changed

1 file changed

+2
-48
lines changed

Pozyx.h

Lines changed: 2 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,28 +1612,6 @@ class PozyxClass
16121612
/** \addtogroup positioning_functions
16131613
* @{
16141614
*/
1615-
/**
1616-
*
1617-
* Obtain the coordinates.
1618-
* This function triggers the positioning algorithm to perform positioning with the given parameters.
1619-
* By default it will automatically select 4 anchors from the internal device list. It will then perform
1620-
* ranging with these anchors and use the results to compute the coordinates.
1621-
* This function requires that the coordinates for the anchors are stored in the internal device list.
1622-
* On its way to deprecation, use setPositionAlgorithm once and new doPositioning instead
1623-
*
1624-
* Please read the tutorial ready to localize to get started with positioning.
1625-
*
1626-
* @param position: data object to store the result
1627-
* @param dimension: optional flag to specify the positioning dimension, possible options are #POZYX_2D, #POZYX_2_5D, and #POZYX_3D
1628-
* @param height: optional parameter that is used for #POZYX_2_5D to give the height in mm of the tag
1629-
* @param algorithm: optional flag to specifiy the positioning algorithm to be used. Possible options are #POZYX_POS_ALG_UWB_ONLY and #POZYX_POS_ALG_LS
1630-
*
1631-
* @retval #POZYX_SUCCESS success.
1632-
* @retval #POZYX_FAILURE function failed.
1633-
*
1634-
* @see doRemotePositioning, doAnchorCalibration, addDevice, setSelectionOfAnchors
1635-
*/
1636-
static int doPositioning(coordinates_t *position, uint8_t dimension = POZYX_3D, int32_t height = 0, uint8_t algorithm = POZYX_POS_ALG_UWB_ONLY);
16371615

16381616
/**
16391617
* Obtain the coordinates.
@@ -1652,31 +1630,7 @@ class PozyxClass
16521630
*
16531631
* @see doRemotePositioning, doAnchorCalibration, addDevice, setSelectionOfAnchors, setPositionAlgorithm
16541632
*/
1655-
// static int doPositioning(coordinates_t *position, int32_t height = 0);
1656-
1657-
/**
1658-
*
1659-
* Obtain the coordinates of a remote device.
1660-
*
1661-
* This function triggers the positioning algorithm on a remote pozyx device to perform positioning with the given parameters.
1662-
* By default it will automatically select 4 anchors from the internal device list on the remote device. The device will perform
1663-
* ranging with the anchors and use the results to compute the coordinates.
1664-
* This function requires that the coordinates for the anchors are stored in the internal device list on the remote device.
1665-
* After positioning is completed, the remote device will automatically transmit the result back.
1666-
* On its way to deprecation, will be made deprecated with 1.2
1667-
*
1668-
* @param remote_id: the remote device that will do the positioning
1669-
* @param position: data object to store the result
1670-
* @param dimension: optional flag to specify the positioning dimension, possible options are #POZYX_2D, #POZYX_2_5D, and #POZYX_3D
1671-
* @param height: optional parameter that is used for #POZYX_2_5D to give the height in mm of the tag
1672-
* @param algorithm: optional flag to specifiy the positioning algorithm to be used
1673-
*
1674-
* @retval #POZYX_SUCCESS success.
1675-
* @retval #POZYX_FAILURE function failed.
1676-
*
1677-
* @see doPositioning, addDevice, setSelectionOfAnchors
1678-
*/
1679-
static int doRemotePositioning(uint16_t remote_id, coordinates_t *coordinates, uint8_t dimension = POZYX_3D, int32_t height = 0, uint8_t algorithm = POZYX_POS_ALG_UWB_ONLY);
1633+
static int doPositioning(coordinates_t *position, int32_t height = 0);
16801634

16811635
/**
16821636
* Obtain the coordinates of a remote device. Don't use with 2.5D!
@@ -1696,7 +1650,7 @@ class PozyxClass
16961650
*
16971651
* @see doPositioning, addDevice, setSelectionOfAnchors, setPositionAlgorithm
16981652
*/
1699-
// static int doRemotePositioning(uint16_t remote_id, coordinates_t *coordinates, int32_t height = 0);
1653+
static int doRemotePositioning(uint16_t remote_id, coordinates_t *coordinates, int32_t height = 0);
17001654

17011655
/**
17021656
* Trigger ranging with a remote device.

0 commit comments

Comments
 (0)