Skip to content

Commit

Permalink
Changes for megageniale
Browse files Browse the repository at this point in the history
  • Loading branch information
g-lesssard committed Nov 24, 2021
1 parent da24229 commit e3516a8
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
Binary file modified src/calibration/hb_6/0_angleCalculatorParameters.pkl
Binary file not shown.
Binary file modified src/calibration/hb_6/1_angleCalculatorParameters.pkl
Binary file not shown.
Binary file modified src/calibration/hb_6/5_angleCalculatorParameters.pkl
Binary file not shown.
4 changes: 2 additions & 2 deletions src/send_angle_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from src.hiveboard.proto.ethernet_stream import EthernetStream
from src.hiveboard.usb_stream import UsbStream

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

# To use ethernet, you must have a static IP of 192.168.1.101 on submask 255.255.255.0
USE_ETHERNET = False
Expand Down
2 changes: 1 addition & 1 deletion src/visualisation_tool/DataUpdater.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def handle_neighbor_list(self, neighbor_list):
def handle_neigbor_update(self, neighbor):
neighbor_id = neighbor.neighbor_id
self.new_polar_point.emit(neighbor_id, neighbor.position.distance, neighbor.position.azimuth)
y = neighbor.position.distance * np.cos(neighbor.position.azimuth / 180 * np.pi)
y = -neighbor.position.distance * np.cos(neighbor.position.azimuth / 180 * np.pi)
x = neighbor.position.distance * np.sin(neighbor.position.azimuth / 180 * np.pi)
self.new_cartesian_point.emit(neighbor_id, x, y)

Expand Down

0 comments on commit e3516a8

Please sign in to comment.