ET Sensor

5 replies [Last post]
BillM-RHS
Title: NooBot
Joined: 11/19/2015
Posts:
BotPoints: 3
User offline. Last seen 2 years 48 weeks ago.

Hi,

I'm using the following code for the ET Sensor. It compiles and downloads ok but does not run on the KIPR Link. Any help is appreciated. Thanks.

int main()
{
while (a_button()!=1) // wait to push a button to start
{
ao(); // not a button push all off
}

while (side_button()==0) // while the side button is not pressed keep going
{
if (analog_et (0) > 525)
{
motor (0,-100); // go backwards
motor (3,-100);
}

if (analog_et (0) < 475)
{
motor (0,100); // go forwards
motor (3,100);
}

if (analog_et (0) >= 475 && analog_et (0) <= 525)
{
motor (0,0); // stop don't go anywhere
motor (3,0);
}

}
ao(); // side button is pressed all off
return 0;
}

AeroHead
Title: NooBot
Joined: 03/04/2017
Posts:
BotPoints: 10
User offline. Last seen 1 year 39 weeks ago.

I copied this code onto our team robot and ran it. Obviously I had to make sure the robot was using the same motor and sensor ports dictated in the code. The code works if you run it from the robot controller itself (not from a web browser). The "A", "B", and "C" buttons appear at the bottom of the screen on the controller. I added some printf statements for troubleshooting, but the code worked on the first try. I am not familiar with the side button, and stopped the program on the controller screen (rather than with the side button). hopefully this helps.

tom
Title: NooBot
Joined: 04/07/2017
Posts:
BotPoints: 4
User offline. Last seen 1 year 35 weeks ago.

https://buyinstfollowers.com
Real followers and 24 hours delivery time.

screen23
Title: NooBot
Joined: 05/15/2017
Posts:
BotPoints: 2
User offline. Last seen 1 year 29 weeks ago.

We had been usually knowing the website that can generate how to hack a instagram account online and it is the tool here with which we can get the instagram account online.

Trevon5206
Title: NooBot
Joined: 03/30/2017
Posts:
BotPoints: 10
User offline. Last seen 1 year 13 weeks ago.

One of the best stuff to read and I am pretty amazed to have this kind article. Thanks sir for this informative article. boudoir photography sydney

nishgau
Title: NooBot
Joined: 09/22/2017
Posts:
BotPoints: 16
User offline. Last seen 43 weeks 5 days ago.

Simple way to get bingo bash chips hack . Yes its damn true.