If I use this function what else do I need to include? void on_contact_made() { #ifdef LOG_SERIAL Serial.print("contact made"); Serial.println(); #endif in_contact = true; contact_made_time = loop_start_time; setForwardSpeed(FullSpeed); buzzer.playFromProgramSpace(sound_effect); }
Hi, how can I add contact detection to ZumoMotors example? if Zumo detect a contact while going straight I want it to stop and back up. Thanks, Jimmy
Log In | My Account | Log Out | Shopping Cart
US toll free: 1-877-7-POLOLU ~ (702) 262-6648 Same-day shipping, worldwide
New version of the Zumo Shield for Arduino - now with full IMU!
- 14 January 2015If I use this function what else do I need to include?
void on_contact_made()
{
#ifdef LOG_SERIAL
Serial.print("contact made");
Serial.println();
#endif
in_contact = true;
contact_made_time = loop_start_time;
setForwardSpeed(FullSpeed);
buzzer.playFromProgramSpace(sound_effect);
}
New version of the Zumo Shield for Arduino - now with full IMU!
- 14 January 2015Hi, how can I add contact detection to ZumoMotors example? if Zumo detect a contact while going straight I want it to stop and back up.
Thanks,
Jimmy