Skip to content

Commit

Permalink
navigator_drone_comm: disable logo test
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrxyz committed Dec 31, 2024
1 parent 292d817 commit 6000f25
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
HeartbeatReceivePacket,
StartPacket,
StopPacket,
TargetPacket,
)
from navigator_msgs.msg import DroneTarget
from navigator_msgs.srv import DroneMission, DroneMissionRequest
Expand Down Expand Up @@ -112,12 +111,13 @@ def test_gps_drone_receive(self):
rospy.sleep(0.5)
self.assertAlmostEqual(round(self.drone_gps.x, 3), 37.77)

def test_target_receive(self):
target_packet = TargetPacket(lat=-67.7745, lon=12.654, logo="R")
os.write(self.master, bytes(target_packet))
rospy.sleep(1)
rospy.loginfo(self.target.logo)
self.assertEqual(self.target.logo, "R_Logo")
# Disabling this test because it was changed at competition and shouldn't work anymore!
# def test_target_receive(self):
# target_packet = TargetPacket(lat=-67.7745, lon=12.654, logo="R")
# os.write(self.master, bytes(target_packet))
# rospy.sleep(1)
# rospy.loginfo(self.target.logo)
# self.assertEqual(self.target.logo, "R_LOGO")

# tests that a heartbeat is sent from the boat every second
# def test_z_sending_heartbeats(self):
Expand Down

0 comments on commit 6000f25

Please sign in to comment.