// Sets PRF as a Basic::Frequency bool RfSensor::setSlotPrf(const Basic::Frequency* const msg) { bool ok = false; if (msg != 0) { LCreal x = Basic::Hertz::convertStatic(*msg); ok = setPRF( x ); if (!ok) { std::cerr << "RfSensor::setSlotPRF: Error setting PRF!" << std::endl; } } return ok; }
// Sets PRF as a base::Frequency bool RfSensor::setSlotPrf(const base::Frequency* const msg) { bool ok = false; if (msg != nullptr) { const double x = base::Hertz::convertStatic(*msg); ok = setPRF( x ); if (!ok) { std::cerr << "RfSensor::setSlotPRF: Error setting PRF!" << std::endl; } } return ok; }
// Sets PRF in hertz bool RfSensor::setSlotPrf(const Basic::Number* const msg) { bool ok = false; if (msg != 0) { // Standard Basic::Number LCreal x = msg->getReal(); ok = setPRF( x ); if (!ok) { std::cerr << "RfSensor::setSlotPRF: Error setting PRF!" << std::endl; } } return ok; }
// Sets PRF in hertz bool RfSensor::setSlotPrf(const base::Number* const msg) { bool ok = false; if (msg != nullptr) { // Standard base::Number const double x = msg->getReal(); ok = setPRF( x ); if (!ok) { std::cerr << "RfSensor::setSlotPRF: Error setting PRF!" << std::endl; } } return ok; }