Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ultrasonic sensor #1108

Open
jwkelly49 opened this issue Jul 4, 2022 · 0 comments
Open

Ultrasonic sensor #1108

jwkelly49 opened this issue Jul 4, 2022 · 0 comments

Comments

@jwkelly49
Copy link

x86.64.windows 1.1.831
Fresh reboot of MRL with no other sensors configured

All Servos work (right & left NervoBoards)
Ultrasonic on right and left NervoBoard (both act the same way)

i01 – go to sensors ultrasonic graphic ON/OFF button appears in the OFF position with no text.
activate ultrasonic right -- button moves right turns blue NO settings button appears. Milliseconds later button returns left and grey with no text.

Left column i01 ultrasonicRight appears (click on it)
0 cm / count 0 min (blank) max (blank)
set controller to i01.right trigger pin=64 echo pin=63
click attach -- begin ranging / rate / single ping now available
Command prompt says
INFO c.m.s.InMoov2 [InMoov2.java:160] i01.ultrasonicRight@first-data created
INFO c.m.s.InMoov2 [InMoov2.java:93] i01.ultrasonicRight started
INFO c.m.s.Python [Python.java:174] script completed
INFO c.m.s.Python [Python.java:609] finishedExecutingScript
INFO c.m.s.Arduino [Arduino.java:309] DEVICE LIST PUT ------ Name: i01.ultrasonicRight Class: UltrasonicSensor Map: id:16 name:i01.ultrasonicRight

Go to i01.right -- i01.ultrasonicRight is listed with arm, stomach, hand, neck, eye
return to i01.ultrasonicRight
click begin ranging
CM toggles 162/163 count ramps up min=161 max=194
Command prompt says
Multiple readings per second
correct COM port
INFO c.m.s.ultrasonicSensor [u]ltrasonicSensor.java:306 publishRange 162.0 / 163.0

Place object in front of sensor
CM drops to 56/57 (distance looks good) count continues to increment
Remove object from in front of sensor
CM count remains 56/57 and never returns to 162/163
Command prompt says
Multiple readings per second
correct COM port
INFO c.m.s.ultrasonicSensor [u]ltrasonicSensor.java:306 publishRange 162.0 / 163.0

FINALLY CM returns to 162/163
second test
place target
command prompt updates to correct distance instantly (44)
CM display does not update (waited 1 minute) (162)
remove target
Command prompt takes 15 seconds to update to correct distance (162)
As I type CM display updates to (44) Command prompt continues to show publshRange as 162

return to i01 sensor screen (right ultrasonicSenor shown in OFF position no text)
click button ON -- button shows ON and turns blue (no settings button).
return to i01.ultrasonicRight and CM display has updated (162). No change in Command prompt polling (162).
click stop ranging button
Command prompt stops polling with no messages
CM continues to toggle between 162/163
count continues to increment
stop ranging button still displayed (expected start ranging)

i01.right does no show pins 63 or 64 in list
i01.right O-scope has selection for pins 63 or 64

checked i01.left no ultrasonicSensor listed (as expected because I did not activate the left sensor)
clicked "release" from i01.ultrasonicRight drop-down list
CM still toggling 162/163 count still incrementing
command Prompt says
INFO c.m.s.Runtime [Runtime.java:1549] releasing service i01.ultrasonicRight@first-data
INFO c.m.s.Runtime [Runtime.java:1613] unregister i01.ultrasonicRight@first-data
INFO c.m.s.Runtime [Runtime.java:1652] released i01.ultrasonicRight@first-data
INFO c.m.s.Runtime [Runtime.java:1594] auto start peers and i01.ultrasonicRight of type UltrasonicSensor has 0 peers
INFO c.m.f.Service [Service.java:1946] i01.ultrasonicRight info shutting down
INFO c.m.s.Python [Python.java:491] exec(String)
i01_ultrasonicRight_first_data = None
INFO c.m.s.Python [Python.java:174] script completed
INFO c.m.s.Python [Python.java:609] finishedExecutingScript

After writing the above "release" explanation CM still toggling 162/163
I stepped away for 2 minutes -------
Upon my return
i01.ultrasonicRight was removed from left column and settings screen was blank.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant