'''
This is a testing script for the data visualization engine. It feeds mock data into the engine to see if it works.
'''

from udp_utils import send_to_visualization_engine, generate_bytes_packet
from time import sleep
from random import random


while(True):
    for i in range(4):
        data = generate_bytes_packet({
                                    'type': 1 if i%2 == 0 else 3,
                                    'dist': 100*i,
                                    'angle': 20*i
                                })
        send_to_visualization_engine(data)
        sleep(0.2)
01d1d89feb037901d4f17391cc8ce6a776924738
<mask token>

<mask token>
while True:
    for i in range(4):
        data = generate_bytes_packet({'type': 1 if i % 2 == 0 else 3,
            'dist': 100 * i, 'angle': 20 * i})
        send_to_visualization_engine(data)
        sleep(0.2)

<mask token>
from udp_utils import send_to_visualization_engine, generate_bytes_packet
from time import sleep
from random import random
while True:
    for i in range(4):
        data = generate_bytes_packet({'type': 1 if i % 2 == 0 else 3,
            'dist': 100 * i, 'angle': 20 * i})
        send_to_visualization_engine(data)
        sleep(0.2)

'''
This is a testing script for the data visualization engine. It feeds mock data into the engine to see if it works.
'''

from udp_utils import send_to_visualization_engine, generate_bytes_packet
from time import sleep
from random import random


while(True):
    for i in range(4):
        data = generate_bytes_packet({
                                    'type': 1 if i%2 == 0 else 3,
                                    'dist': 100*i,
                                    'angle': 20*i
                                })
        send_to_visualization_engine(data)
        sleep(0.2)