Skip to content

Commit e3516a8

Browse files
committed
Changes for megageniale
1 parent da24229 commit e3516a8

5 files changed

Lines changed: 3 additions & 3 deletions

File tree

-28 Bytes
Binary file not shown.
-28 Bytes
Binary file not shown.
-28 Bytes
Binary file not shown.

src/send_angle_params.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
from src.hiveboard.proto.ethernet_stream import EthernetStream
66
from src.hiveboard.usb_stream import UsbStream
77

8-
HIVEBOARD_ID = 2
9-
MOUNT_ORIENTATION_OFFSET = 0 # Orientation offset (in degrees) of the BeeBoard assembly on the robot
8+
HIVEBOARD_ID = 6
9+
MOUNT_ORIENTATION_OFFSET = -60 # Orientation offset (in degrees) of the BeeBoard assembly on the robot
1010

1111
# To use ethernet, you must have a static IP of 192.168.1.101 on submask 255.255.255.0
1212
USE_ETHERNET = False

src/visualisation_tool/DataUpdater.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def handle_neighbor_list(self, neighbor_list):
8080
def handle_neigbor_update(self, neighbor):
8181
neighbor_id = neighbor.neighbor_id
8282
self.new_polar_point.emit(neighbor_id, neighbor.position.distance, neighbor.position.azimuth)
83-
y = neighbor.position.distance * np.cos(neighbor.position.azimuth / 180 * np.pi)
83+
y = -neighbor.position.distance * np.cos(neighbor.position.azimuth / 180 * np.pi)
8484
x = neighbor.position.distance * np.sin(neighbor.position.azimuth / 180 * np.pi)
8585
self.new_cartesian_point.emit(neighbor_id, x, y)
8686

0 commit comments

Comments
 (0)