Our website is under construction. Please stay tuned!

dwm_upd_rate_get

Gets the position update rate.

void dwm_upd_rate_get(uint16_t*, uint16_t*);
Parameters
  • output – err_code, update_rate, update_rate_stationary

  • update_rate – ? 16-bit integer ? (position publication rate in multiples of 100 milliseconds, maximum is 1 minute, minimum is 100 ms)

  • update_rate_stationary – ? 16-bit integer ? (position publication rate when node is not moving in multiples of 100 milliseconds, maximum is 1 minute, minimum is 100 ms)

C code example

uint16_t ur, urs;
dwm_upd_rate_get(&ur, &urs);

SPI/UART example

TLV request

type

length

0x04

0x00

Type 0x04 means command dwm_upd_rate_get

TLV response

type

length

Value (see error codes)

type

length

value

0x40

0x01

0x00

0x45

0x04

The first 2 bytes represents 16 bit Value in little endian, which is update rate in multiples of 100 ms (e.g. 0x0A 0x00 means 1 second) The second 2 bytes represents 16 bit Value in little endian which is stationary update rate in multiples of 100 ms (e.g. 0x16 0x00 means 2.2 second).

0x0A 0x00 0x16 0x00

Type 0x45 means update rate (normal and stationary)
Type 0x40 means err_code of the previous command