Showing posts with label polling. Show all posts
Showing posts with label polling. Show all posts

Sunday, June 19, 2016

Notify about / check for SCM poll failure in Jenkins

Leave a Comment

I would like to check for or get notifications about SCM poll failures in Jenkins (for example, when the repository URL had changed, or branch got deleted). I thought about these:

a) A Jenkins console script, which would list such faulty jobs

b) Configuring/installing plugin for Jenkins to notify me somehow about that fact (e-mail, anything)

c) External script/executable (bash, python, ...), which would list builds which failed in last X hours due to SCM poll failure

0 Answers

Read More

Thursday, March 17, 2016

Why is this GLFW program not polling for joysticks?

Leave a Comment

I'm using GLFW to record the states of joysticks in a robotics project, and came across something strange.

On a Macbook Air, running 10.11.3, GLFW only returns the state of the joysticks at the beginning of the program. The documentation claims that it updates the state every time a joystick function is called, however. Using the joystick present and joystick name function only return the original state.

I cannot reveal my code. However, I am using ImGui, and one of it's sample programs should suffice. To reproduce the problem, run the 'opengl3_example' project with these changes:

Right after the line ImGui_ImplGlfwGL3_NewFrame();, add this:

for (int i = 0; i < 15; i++) {     if (glfwJoystickPresent(i) != GL_TRUE)     {         printf("There are %d joysticks detected.\n",i); break;     } } 

In my case, if the program starts with no joysticks attached, and one is plugged in after the program has started running, it would claim that there would still be 0 joysticks attached. The problems run beyond that function, as the button and axis states are not updated as well.

I am using the latest GLFW 3.1.2, compiled from source. Please advise me on this.

EDIT: If you want to know what should happen, take a look at the video https://www.youtube.com/watch?v=mx0IUbxAQ34 on the 2:09 timestamp.

EDIT: I've tried a different library, and it detects the joysticks properly.

Thanks in advance.

0 Answers

Read More