Esempio n. 1
0
JNIEXPORT void JNICALL
Java_com_example_andrew_gpio_MainActivity_gpio_1init(JNIEnv *env, jobject instance) {

    // Start
    i2c_init();

    // Get some starting values
    updateSensorValues();


}
Esempio n. 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;
    }
}
Esempio n. 3
0
void SensorsModule::run_()
{
    // Simply update all sensor readings from ALMemory.
    updateSensorValues();
}