avatar_furo_source_codes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
avatar_furo_source_codes [2022/06/30 08:56] – glee | avatar_furo_source_codes [2022/06/30 08:58] (current) – glee | ||
---|---|---|---|
Line 188: | Line 188: | ||
print(output_y) | print(output_y) | ||
+ | |||
+ | def head_vel_callback(headCTR): | ||
+ | head_roll = headCTR.data | ||
+ | |||
+ | if head_roll==4: | ||
+ | rospy.loginfo(" | ||
+ | GPIO.output(DIG2, | ||
+ | p1.start(0) # | ||
+ | p2.start(30) # | ||
+ | # | ||
+ | |||
+ | if head_roll==2: | ||
+ | rospy.loginfo(" | ||
+ | GPIO.output(DIG2, | ||
+ | p1.start(0) | ||
+ | p2.start(30) | ||
+ | | ||
+ | | ||
+ | if head_roll==5: | ||
+ | rospy.loginfo(" | ||
+ | p1.start(0) | ||
+ | p2.start(0) | ||
+ | #delay for 3 second | ||
def listener(): | def listener(): |
avatar_furo_source_codes.1656604617.txt.gz · Last modified: 2022/06/30 08:56 by glee