mirror of
https://github.com/SHC-ASTRA/rover-ros2.git
synced 2026-04-20 11:51:16 -05:00
Compare commits
1 Commits
5a2358a176
...
bio-topic-
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
24b805d37c |
@@ -191,20 +191,20 @@ class SerialRelay(Node):
|
||||
)
|
||||
)
|
||||
|
||||
# set fan duty cycle
|
||||
self.anchor_tovic_pub_.publish(
|
||||
VicCAN(
|
||||
header=Header(stamp=self.get_clock().now().to_msg()),
|
||||
mcu_name="citadel",
|
||||
command_id=19,
|
||||
data=[float(duty)],
|
||||
)
|
||||
)
|
||||
|
||||
feedback = BioVacuum.Feedback()
|
||||
start = time.time()
|
||||
|
||||
while True:
|
||||
# set fan duty cycle
|
||||
self.anchor_tovic_pub_.publish(
|
||||
VicCAN(
|
||||
header=Header(stamp=self.get_clock().now().to_msg()),
|
||||
mcu_name="citadel",
|
||||
command_id=19,
|
||||
data=[float(duty)],
|
||||
)
|
||||
)
|
||||
|
||||
elapsed = int((time.time() - start) * 1000)
|
||||
remaining = max(0, total - elapsed)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user