JNIEXPORT void JNICALL Java_com_example_andrew_gpio_MainActivity_gpio_1init(JNIEnv *env, jobject instance) { // Start i2c_init(); // Get some starting values updateSensorValues(); }
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; } }
void SensorsModule::run_() { // Simply update all sensor readings from ALMemory. updateSensorValues(); }