orca-robotics INTRODUCTION Overview Download and Install Documentation REPOSITORY Interfaces Drivers Libraries Utilities Software Map DEVELOPER Dashboard PEOPLE Contributors Users Project Download Mailing lists
|
serialconnectivity.h00001 class gbxserialacfr::Serial; 00002 00003 // test connectivity to a [serial] device at a [baudrate]; 00004 // Assumes that you can figure out a [challenge] (command ...) to 00005 // which the device will answer with a unique [ack] in [timeOutMsec] milliseconds. 00006 // If [successThresh] or more [challenge]es are answered by an [ack] 00007 // 00008 // Limitations: amount of data expected before timeOutMsec should be 00009 // reasonably small 00010 // 00011 // returns 0 for Success; -1 for failure 00012 bool testConnectivity( 00013 std::string &challenge, 00014 std::string &ack, 00015 gbxserialacfr::Serial& serial, 00016 int timeOutMsec, 00017 int numTry, 00018 int successThresh, 00019 int baudrate); |
Webmaster: Tobias Kaupp (tobasco at users.sourceforge.net)