Our website is under construction. Please stay tuned!

dwm_upd_rate_set

Sets the position’s update rate and stationary update rate in hundreds of milliseconds. Normally, this call writes to internal flash when setting a new value. Hence, it should not be used frequently and can take hundreds of milliseconds in the worst case!

void dwm_upd_rate_set(uint8_t update_rate, uint8_t update_rate_stationary);
Parameters
  • 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)

  • output – err_code

C code example

dwm_upd_rate_set(10, 50); /* update rate 1 second. 5 seconds stationary */
dwm_upd_rate_set(10, 0); /* ERROR - must not be a zero */

SPI/UART example

TLV request

type

length

value

0x03

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 10) the second 2 bytes represents 16 bit value in little endian which is stationary update rate in multiples of 100 ms

0x0A 0x00 0x014 0x00

Type 0x03 means command dwm_upd_rate_set

TLV response

type

length

value (see error codes)

0x40

0x01

0x00

Type 0x40 means err_code of the previous command