Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,10 @@ def tick(self) -> None:
logging.warning(f"Controller disconnected: {e}")
self.gamepad = None

# special case for no data if the D-pad or LT and RT is kept pressed
# special case for no data if the D-pad or LT and RT are kept pressed
if data is None or len(data) == 0:
if self.rt_previous > 0 or self.lt_previous > 0:
# we always excute the left turn first
# we always execute the left turn first
if self.lt_previous > 0:
logging.info(
"Left Trigger is kept pressed - Counter-clockwise rotation"
Expand Down
2 changes: 1 addition & 1 deletion src/actions/move_go2_autonomy/connector/unitree_sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async def connect(self, output_interface: MoveInput) -> None:
return

if self.odom.position["odom_x"] == 0.0:
# this value is never precisely zero EXCEPT while
# this value is never precisely zero except while
# booting and waiting for data to arrive
logging.info("Waiting for location data")
return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ async def connect(self, output_interface: MoveInput) -> None:
return

if self.odom.position["odom_x"] == 0.0:
# this value is never precisely zero EXCEPT while
# this value is never precisely zero except while
# booting and waiting for data to arrive
logging.info("Waiting for location data")
return
Expand Down
2 changes: 1 addition & 1 deletion src/actions/move_turtle/connector/zenoh.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ async def connect(self, output_interface: MoveInput) -> None:
return

if self.odom.x == 0.0:
# this value is never precisely zero EXCEPT while
# this value is never precisely zero except while
# booting and waiting for data to arrive
logging.info("Waiting for location data")
return
Expand Down
2 changes: 1 addition & 1 deletion src/inputs/plugins/serial_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ async def _poll(self) -> Optional[str]:

async def _raw_to_text(self, raw_input: Optional[str]) -> Optional[Message]:
"""
Process raw string to higer level text description.
Process raw string to higher level text description.

Parameters
----------
Expand Down
4 changes: 2 additions & 2 deletions src/zenoh_msgs/idl/sensor_msgs.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,8 @@ class BatteryState(IdlStruct, typename="BatteryState"):
# If individual voltages unknown but number of cells known set each to NaN
cell_temperature: List[
float32
] # An array of individual cell voltages for each cell in the pack
# If individual voltages unknown but number of cells known set each to NaN
] # An array of individual cell temperatures for each cell in the pack
# If individual temperatures unknown but number of cells known set each to NaN
location: (
String # The location into which the battery is inserted. (slot number or plug)
)
Expand Down