예제 #1
0
파일: mainactivity.c 프로젝트: air2013/GPIO
JNIEXPORT void JNICALL
Java_com_example_andrew_gpio_MainActivity_gpio_1init(JNIEnv *env, jobject instance) {

    // Start
    i2c_init();

    // Get some starting values
    updateSensorValues();


}
예제 #2
0
void SensorsModule::run_()
{
    printInput.latch();

    // Simply update all sensor readings from ALMemory.
    updateSensorValues();

    if(printInput.message().toggle() != lastPrint)
    {
        std::cout << makeSweetMoveTuple(jointsOutput_.getMessage(true).get())
                  << std::endl;
        lastPrint = !lastPrint;
    }
}
예제 #3
0
void SensorsModule::run_()
{
    // Simply update all sensor readings from ALMemory.
    updateSensorValues();
}