Skip to content

Commit

Permalink
Remove unused unpack method
Browse files Browse the repository at this point in the history
  • Loading branch information
james-ward committed Nov 12, 2024
1 parent ebd7ac5 commit 4ff2230
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions photon-lib/py/photonlibpy/targeting/multiTargetPNPResult.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,4 @@ class MultiTargetPNPResult:
estimatedPose: PnpResult = field(default_factory=PnpResult)
fiducialIDsUsed: list[int] = field(default_factory=list)

def createFromPacket(self, packet: Packet) -> Packet:
self.estimatedPose = PnpResult()
self.estimatedPose.createFromPacket(packet)
self.fiducialIDsUsed = []
for _ in range(MultiTargetPNPResult._MAX_IDS):
fidId = packet.decode16()
if fidId >= 0:
self.fiducialIDsUsed.append(fidId)
return packet

photonStruct: ClassVar["generated.MultiTargetPNPResultSerde"]

0 comments on commit 4ff2230

Please sign in to comment.