Hi. I want to use 2 mobile beacon for my lego truck trailer robot. 1 for trailer (without imu) and 1 for the head truck (with imu). Ive been using python to get marvelmind data (x,y, and orientation) and it works. However, when I tried to use 2 beacon, the output data is always zero. (x=0 and y=0). It seems like it didnt really read the marvelmind data.
this is code that i use for call the marvelmind class
Code: Select all
hedge = MarvelmindHedge(tty = "/dev/ttyACM0", adr=8, debug=False) #create MarvelmindHedge thread
hedge.start() # start thread
hedge2 = MarvelmindHedge(tty = "/dev/ttyACM0", adr=2, debug=False) #create MarvelmindHedge thread
hedge2.start() # start thread
I've already check the firmware, baudrate, channel, etc, everything is same. So is it because the address are wrong? I use device 8 and 2, so I just write that address. Or anything else? Thank you^^