Announcement
Collapse
No announcement yet.
Search Result
Collapse
402 results in 0.0863 seconds.
Keywords
Members
Tags
-
If you are not writing a LinearOpMode, you should avoid writing code that loops until some external condition (encoders, sensors, time elapsed, etc.)...
-
Sorry about the weird formatting. Here it is again.
Code:import android.media.MediaPlayer; public class CenaPlayer { //The player
Leave a comment:
-
Two years ago, we did a similar thing to play "And his name is John Cena!" while a button was held down. We had a cena.mp3 file in the res/...
Leave a comment:
-
You can definitely make these calculations smaller and simpler. The remainder and sign operations are very handy.
Code:public double gyroTurn(double
Leave a comment:
-
Our team also uses a state-machine approach to allow us to compose reusable stages into complex autonomous routines, but that is probably overkill for...
Leave a comment:
-
There is nothing obviously wrong with your code, but several things could be causing this behavior:- The mode button is activated on the gamepad so that
Leave a comment:
-
It all depends on the structure of your code. If you are only using it in one OpMode, you can do something like this (of course, having implemented the...
Leave a comment:
-
Yes, the function I provided calculates a turn power based on the current heading information, so it will work regardless of how you obtain your heading....
Leave a comment:
-
In order for a heading correction to stop accurately at the target heading, it is important to have some sort of a PID controller. We have found the proportional...
Leave a comment:
-
A better way to wait for a certain amount of time, for example 2.5 seconds, is to call sleep(2500). When you call while(eTime.seconds() < 2.5){}, the...
Leave a comment:
-
I don't believe this is the case. We used Java 8 last year with the Moto G2 phones, which only run Marshmallow. We had to set targetSdkVersion to 23 and...
Leave a comment:
-
But doesn't it still take longer to execute USB transactions each loop cycle if you are poll-reading more sensors?...
Leave a comment:
-
Thank you very much for the post on the Wiki. Our team has always used its own driver framework based on I2cDevice, so now that that is no longer possible...
Leave a comment:
-
We also wanted to look into using Pixy, but I don't think it's possible with the limitations in the SDK on what I2C transactions can be issued. In fact,...
Leave a comment:
Leave a comment: