class Node {
public:
Node(): _distance(0), _pan_id(0), _node_id(0), _x(0), _y(0), _z(0),
+ _range(0), _aoa(0), _pdoa(0),
_is_remote(false), _is_calculated(false), _tech(TECH_UNKNOWN),
_last_update(std::chrono::steady_clock::now()) {};
- Node(int pan_id, unsigned long long node_id, int x, int y, int z) :
+ Node(int pan_id, unsigned long long node_id, int x, int y, int z, int range, int aoa, int pdoa) :
_distance(0), _pan_id(pan_id), _node_id(node_id), _x(x), _y(y), _z(z),
+ _range(range), _aoa(aoa), _pdoa(pdoa),
_is_remote(false), _is_calculated(false), _tech(TECH_UNKNOWN),
_last_update(std::chrono::steady_clock::now()) {};
Node(uwb_node_s *node) :
_distance(node->distance), _pan_id(node->pan_id), _node_id(node->node_id),
- _x(node->x), _y(node->y), _z(node->z), _is_remote(node->is_remote),
- _is_calculated(false), _tech(TECH_UWB),
+ _x(node->x), _y(node->y), _z(node->z), _range(node->range), _aoa(node->aoa), _pdoa(node->pdoa),
+ _is_remote(node->is_remote), _is_calculated(false), _tech(TECH_UWB),
_last_update(std::chrono::steady_clock::now()){};
Node(Node *node) :
_distance(node->_distance), _pan_id(node->_pan_id), _node_id(node->_node_id),
- _x(node->_x), _y(node->_y), _z(node->_z), _is_remote(node->_is_remote),
- _is_calculated(node->_is_calculated), _tech(node->_tech),
+ _x(node->_x), _y(node->_y), _z(node->_z), _range(node->_range), _aoa(node->_aoa), _pdoa(node->_pdoa),
+ _is_remote(node->_is_remote), _is_calculated(node->_is_calculated), _tech(node->_tech),
_last_update(node->_last_update){};
//~Node(){UWB_LOGI("%llu removed", _node_id);}
void setY(int y) {_y = y;};
int getZ(void) {return _z;};
void setZ(int z) {_z = z;};
+ int getRange(void) {return _range;};
+ void setRange(int range) {_range = range;};
+ int getAoa(void) {return _aoa;};
+ void setAoa(int aoa) {_aoa = aoa;};
+ int getPdoa(void) {return _pdoa;};
+ void setPdoa(int pdoa) {_pdoa = pdoa;};
bool getIsRemote(void) {return _is_remote;};
void setIsRemote(bool is_remote) {_is_remote = is_remote;};
bool getIsCalculated(void) {return _is_calculated;};
int _x;
int _y;
int _z;
+ int _range;
+ int _aoa;
+ int _pdoa;
bool _is_remote;
bool _is_calculated;
int _tech;
g_variant_new_int32(node_ptr->getY()));
g_variant_builder_add(builder, "{sv}", "Z",
g_variant_new_int32(node_ptr->getZ()));
+ g_variant_builder_add(builder, "{sv}", "Range",
+ g_variant_new_int32(node_ptr->getRange()));
+ g_variant_builder_add(builder, "{sv}", "Aoa",
+ g_variant_new_int32(node_ptr->getAoa()));
+ g_variant_builder_add(builder, "{sv}", "Pdoa",
+ g_variant_new_int32(node_ptr->getPdoa()));
g_variant_builder_close(builder);
}