View unanswered posts | View active topics It is currently Fri Oct 30, 2020 4:11 am

Reply to topic  [ 3 posts ] 
EV3 Touch Sensors - 4.26 
Author Message

Joined: Fri Sep 20, 2013 8:39 am
Posts: 38
Post EV3 Touch Sensors - 4.26
I thought I would try the count bump function on the EV3 Touch Sensors.

I could not get the getBumpedValue() command or the resetBumpedValue() command to work.

The sensor window showed the correct value of the bumps and it did not appear to make any difference whether the sensor mode was set to Touch or Bump.

Also the help file makes reference to "since the start of the program". I think that it should be "since the sensor was plugged into the EV3".

#pragma config(Sensor, S2,     touchSensor,    sensorEV3_Touch, modeEV3Bump)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

#pragma DebuggerWindows("Sensors")
#pragma DebuggerWindows("EV3LCDScreen")
#pragma DebuggerWindows("Locals")
task main()
   long bumpCount = 0;

   while (true)
     bumpCount = getBumpedValue(touchSensor); //Comment this line out and watch the sensor value
     writeDebugStreamLine("Bumps detected: %d", bumpCount);
     displayBigTextLine(3,"Bumps %d",bumpCount);

Also suggest that funny things happen if you comment out the line with getBumpedValue and watch the Sensor debugging Window

I am also not sure that the getTouchValue(command) works!

Wed Sep 03, 2014 1:34 am
User avatar

Joined: Wed Jun 04, 2014 4:06 pm
Posts: 30
Location: Margraten, The Netherlands
Post Re: EV3 Touch Sensors - 4.26
I'm having exact the same experiences with 4.26.

Mon Sep 08, 2014 3:38 pm
Site Admin
Site Admin
User avatar

Joined: Wed Mar 05, 2008 8:14 am
Posts: 3654
Location: Rotterdam, The Netherlands
Post Re: EV3 Touch Sensors - 4.26
I can confirm this and I'll investigate.

= Xander

| Professional Conduit of Reasonableness
| (Title bestowed upon on the 8th day of November, 2013)
| My Blog: I'd Rather Be Building Robots
| ROBOTC 3rd Party Driver Suite: [Project Page]

Tue Sep 09, 2014 10:15 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.