|
From: <rum...@us...> - 2008-06-18 09:08:11
|
Revision: 186
http://gearbox.svn.sourceforge.net/gearbox/?rev=186&view=rev
Author: rumataxyz
Date: 2008-06-18 02:08:07 -0700 (Wed, 18 Jun 2008)
Log Message:
-----------
configurations toString() should now be complete
Modified Paths:
--------------
gearbox/trunk/submitted/gbxnovatelacfr/driver.cpp
Modified: gearbox/trunk/submitted/gbxnovatelacfr/driver.cpp
===================================================================
--- gearbox/trunk/submitted/gbxnovatelacfr/driver.cpp 2008-06-18 08:26:15 UTC (rev 185)
+++ gearbox/trunk/submitted/gbxnovatelacfr/driver.cpp 2008-06-18 09:08:07 UTC (rev 186)
@@ -64,6 +64,8 @@
std::auto_ptr<gna::GenericData> createExternalMsg(gnua::BestGpsPosLogB &bestGpsPos, struct timeval &timeStamp);
std::auto_ptr<gna::GenericData> createExternalMsg(gnua::BestGpsVelLogB &bestGpsVel, struct timeval &timeStamp);
std::auto_ptr<gna::GenericData> createExternalMsg(gnua::RawImuLogSB &rawImu, struct timeval &timeStamp, gnua::ImuDecoder *imuDecoder);
+
+ std::string doubleVectorToString(vector<double > &vec, std::string seperator = std::string(" "));
}
namespace gbxnovatelacfr
@@ -484,10 +486,10 @@
ss << "dtGpsPos_: " << dtGpsPos_ << " ";
ss << "dtGpsVel_: " << dtGpsVel_ << " ";
ss << "fixInvalidRateSettings_: " << fixInvalidRateSettings_ << " ";
- //ss << "imuToGpsOffset_: " << imuToGpsOffset_ << " ";
- //ss << "imuToGpsOffsetUncertainty_: " << imuToGpsOffsetUncertainty_ << " ";
+ ss << "imuToGpsOffset_: " << doubleVectorToString(imuToGpsOffset_) << " ";
+ ss << "imuToGpsOffsetUncertainty_: " << doubleVectorToString(imuToGpsOffsetUncertainty_) << " ";
ss << "enableInsOffset_: " << enableInsOffset_ << " ";
- //ss << "insOffset_: " << insOffset_ << " ";
+ ss << "insOffset_: " << doubleVectorToString(insOffset_) << " ";
ss << "enableInsPhaseUpdate_: " << enableInsPhaseUpdate_ << " ";
ss << "enableCDGPS_: " << enableCDGPS_ << " ";
ss << "enableSBAS_: " << enableSBAS_ << " ";
@@ -496,8 +498,8 @@
ss << "enableSetImuOrientation_: " << enableSetImuOrientation_ << " ";
ss << "setImuOrientation_: " << setImuOrientation_ << " ";
ss << "enableVehicleBodyRotation_: " << enableVehicleBodyRotation_ << " ";
- //ss << "vehicleBodyRotation_: " << vehicleBodyRotation_ << " ";
- //ss << "vehicleBodyRotationUncertainty_: " << vehicleBodyRotationUncertainty_;
+ ss << "vehicleBodyRotation_: " << doubleVectorToString(vehicleBodyRotation_) << " ";
+ ss << "vehicleBodyRotationUncertainty_: " << doubleVectorToString(vehicleBodyRotationUncertainty_);
return ss.str();
}
@@ -513,7 +515,7 @@
ss << "serialDevice_: " << serialDevice_ << " ";
ss << "baudRate_: " << baudRate_ << " ";
ss << "imuType_: " << imuType_ << " ";
- //ss << "imuToGpsOffset_: " << imuToGpsOffset_;
+ ss << "imuToGpsOffset_: " << doubleVectorToString(imuToGpsOffset_);
return ss.str();
}
@@ -843,4 +845,13 @@
}
return genericData;
}
+
+ std::string doubleVectorToString(vector<double > &vec, std::string seperator){
+ std::stringstream ss;
+ int max = vec.size();
+ for (int i=0; i<max; i++){
+ ss << vec[i] << seperator;
+ }
+ return ss.str();
+ }
}//namespace
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|