Commit 5244e183 authored by Achim Morschhauser's avatar Achim Morschhauser
Browse files

Change position of baudrate

parent 43598c63
......@@ -67,8 +67,8 @@ public: driver_obs_obsdaq(std::string port, buffer_obs* buffer,
Obs_Calibration_Vector* cal, int addr=0x0F);
/** Standard constructor (Pre-defined baud rate) */
public: driver_obs_obsdaq(std::string port, buffer_obs* buffer,
Obs_Calibration_Vector* cal, int baud, int addr=0x0F);
public: driver_obs_obsdaq(std::string port, int baud, buffer_obs* buffer,
Obs_Calibration_Vector* cal, int addr=0x0F);
//
// Public Methods
......
......@@ -83,8 +83,8 @@ driver_obs_obsdaq::driver_obs_obsdaq(std::string port, buffer_obs* buffer,
* Default address is broadcast address: 0x0F. *
* *
****************************************************************************/
driver_obs_obsdaq::driver_obs_obsdaq(std::string port, buffer_obs* buffer,
Obs_Calibration_Vector* cal, int baud, int addr) :
driver_obs_obsdaq::driver_obs_obsdaq(std::string port, int baud,
buffer_obs* buffer, Obs_Calibration_Vector* cal, int addr) :
Driver_Obs_Serial(port, buffer, (Obs_Calibration*) cal) {
// Set the termination characters for serial port driver
......
......@@ -33,8 +33,8 @@ int main() {
Obs_Calibration_Vector cal = Obs_Calibration_Vector(X_s/R,Y_s/R,Z_s/R);
// Initialize new OBSDAQ device
driver_obs_obsdaq obsdaq = driver_obs_obsdaq(par.get_str("PORT"), &pipe,
&cal, par.get_int("BAUD"), 1);
driver_obs_obsdaq obsdaq = driver_obs_obsdaq(par.get_str("PORT"),
par.get_int("BAUD"), &pipe, &cal, 1);
// Get some data
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment