diff options
author | Lorenz Meier <lm@inf.ethz.ch> | 2015-01-17 23:32:00 +0100 |
---|---|---|
committer | Lorenz Meier <lm@inf.ethz.ch> | 2015-01-17 23:32:00 +0100 |
commit | 378dcc53d63a18811f17ab6f60c66b8315d8db25 (patch) | |
tree | 0a8bee5ce9fab8a5192dbe3b9f80859fe152018e /src/modules/land_detector/LandDetector.cpp | |
parent | b1127315b453e129753e1f59aff0b0f6906cbaac (diff) | |
download | px4-firmware-378dcc53d63a18811f17ab6f60c66b8315d8db25.tar.gz px4-firmware-378dcc53d63a18811f17ab6f60c66b8315d8db25.tar.bz2 px4-firmware-378dcc53d63a18811f17ab6f60c66b8315d8db25.zip |
Code style: minor comment styling
Diffstat (limited to 'src/modules/land_detector/LandDetector.cpp')
-rw-r--r-- | src/modules/land_detector/LandDetector.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/modules/land_detector/LandDetector.cpp b/src/modules/land_detector/LandDetector.cpp index 61e678b41..a4fbb9861 100644 --- a/src/modules/land_detector/LandDetector.cpp +++ b/src/modules/land_detector/LandDetector.cpp @@ -49,7 +49,7 @@ LandDetector::LandDetector() : _taskShouldExit(false), _taskIsRunning(false) { - //ctor + // ctor } LandDetector::~LandDetector() @@ -65,20 +65,20 @@ void LandDetector::shutdown() void LandDetector::start() { - //Make sure this method has not already been called by another thread + // make sure this method has not already been called by another thread if (isRunning()) { return; } - //Advertise the first land detected uORB + // advertise the first land detected uORB _landDetected.timestamp = hrt_absolute_time(); _landDetected.landed = false; _landDetectedPub = orb_advertise(ORB_ID(vehicle_land_detected), &_landDetected); - //Initialize land detection algorithm + // initialize land detection algorithm initialize(); - //Task is now running, keep doing so until shutdown() has been called + // task is now running, keep doing so until shutdown() has been called _taskIsRunning = true; _taskShouldExit = false; @@ -86,16 +86,16 @@ void LandDetector::start() bool landDetected = update(); - //Publish if land detection state has changed + // publish if land detection state has changed if (_landDetected.landed != landDetected) { _landDetected.timestamp = hrt_absolute_time(); _landDetected.landed = landDetected; - /* publish the land detected broadcast */ + // publish the land detected broadcast orb_publish(ORB_ID(vehicle_land_detected), _landDetectedPub, &_landDetected); } - //Limit loop rate + // limit loop rate usleep(1000000 / LAND_DETECTOR_UPDATE_RATE); } @@ -107,7 +107,7 @@ bool LandDetector::orb_update(const struct orb_metadata *meta, int handle, void { bool newData = false; - //Check if there is new data to grab + // check if there is new data to grab if (orb_check(handle, &newData) != OK) { return false; } |