Skip to content

Commit

Permalink
fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalzauberzeug committed Jul 17, 2024
1 parent 5ee44b4 commit 3351f17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions field_friend/interface/components/camera_card.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,9 +243,9 @@ def build_svg_for_plant_provider(self) -> str:
# TODO remove this when RoSys supports multiple extrinsics (see https://github.com/zauberzeug/rosys/discussions/130)
relative = self.system.odometer.prediction.relative_point(position)
screen = self.odometer.prediction.transform(relative.projection())
if screen is not None:
svg += f'<circle cx="{int(screen.x/self.shrink_factor)}" cy="{int(screen.y/self.shrink_factor)}" r="5" fill="white" />'
svg += f'<text x="{int(screen.x/self.shrink_factor)}" y="{int(screen.y/self.shrink_factor)+16}" fill="black" font-size="9" text-anchor="middle">{plant.id[:4]}</text>'
if screen is not None:
svg += f'<circle cx="{int(screen.x/self.shrink_factor)}" cy="{int(screen.y/self.shrink_factor)}" r="5" fill="white" />'
svg += f'<text x="{int(screen.x/self.shrink_factor)}" y="{int(screen.y/self.shrink_factor)+16}" fill="black" font-size="9" text-anchor="middle">{plant.id[:4]}</text>'
return svg

# async def save_last_image(self) -> None:
Expand Down

0 comments on commit 3351f17

Please sign in to comment.