def _send_anchor_mode(self):
        lopo = LoPoAnchor(self._helper.cf)

        # Set the mode from the last to the first anchor
        # In TDoA mode this ensures that the master anchor is set last
        for i in reversed(range(8)):
            if self._current_requested_mode == self.LOCO_MODE_TDOA:
                lopo.set_mode(i, lopo.MODE_TWR)
            elif self._current_requested_mode == self.LOCO_MODE_TWR:
                lopo.set_mode(i, lopo.MODE_TDOA)
            else:
                pass
    def _send_anchor_mode(self):
        lopo = LoPoAnchor(self._helper.cf)

        # Set the mode from the last to the first anchor
        # In TDoA mode this ensures that the master anchor is set last
        for i in reversed(range(8)):
            if self._current_requested_mode == self.LOCO_MODE_TDOA:
                lopo.set_mode(i, lopo.MODE_TWR)
            elif self._current_requested_mode == self.LOCO_MODE_TWR:
                lopo.set_mode(i, lopo.MODE_TDOA)
            else:
                pass
    def _send_anchor_mode(self, mode):
        lopo = LoPoAnchor(self._helper.cf)

        mode_translation = {
            self.LOCO_MODE_TWR: lopo.MODE_TWR,
            self.LOCO_MODE_TDOA2: lopo.MODE_TDOA,
            self.LOCO_MODE_TDOA3: lopo.MODE_TDOA3,
        }

        # Set the mode from the last to the first anchor
        # In TDoA 2 mode this ensures that the master anchor is set last
        # Note: We only switch mode of anchor 0 - 7 since this is what is
        # supported in TWR and TDoA 2
        for j in range(5):
            for i in reversed(range(8)):
                lopo.set_mode(i, mode_translation[mode])
    def _send_anchor_mode(self, mode):
        lopo = LoPoAnchor(self._helper.cf)

        mode_translation = {
            self.LOCO_MODE_TWR: lopo.MODE_TWR,
            self.LOCO_MODE_TDOA2: lopo.MODE_TDOA,
            self.LOCO_MODE_TDOA3: lopo.MODE_TDOA3,
        }

        # Set the mode from the last to the first anchor
        # In TDoA 2 mode this ensures that the master anchor is set last
        # Note: We only switch mode of anchor 0 - 7 since this is what is
        # supported in TWR and TDoA 2
        for j in range(5):
            for i in reversed(range(8)):
                lopo.set_mode(i, mode_translation[mode])