-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/ulanding #4
base: master
Are you sure you want to change the base?
Conversation
Tested on Rev1.1
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,82 @@ | |||
#include "LidarLite.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed in #3
@@ -0,0 +1,44 @@ | |||
//////////////////////////////////////////////////////////////////////////////// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed in #3
@@ -43,6 +43,27 @@ Sensor::Sensor(ros::NodeHandle *nh, const String &topic, const int rate_hz, | |||
} | |||
} | |||
|
|||
// Range message version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed in #3
@@ -17,6 +17,7 @@ | |||
#include "Timer.h" | |||
#include <ros.h> | |||
#include <versavis/ImuMicro.h> | |||
#include <versavis/RangeMicro.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed in #3.
@@ -0,0 +1,135 @@ | |||
//////////////////////////////////////////////////////////////////////////////// |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed in #3
if (uart_) | ||
uart_->begin(115200); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (uart_) | |
uart_->begin(115200); | |
if (uart_) { | |
uart_->begin(115200); | |
} | |
// On Arduino the Serial buffer automatically fills up with incoming data | ||
// until the buffer is full. The best timestamp we can set is now, to | ||
// stamp the next arriving sample after the buffer has been emptied. | ||
Sensor::setTimestampNow(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are you sure that the data that you read in line 51 corresponds to the previous call of the function?
@@ -0,0 +1,104 @@ | |||
#include "ULanding.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general the same comments apply as in #3, LidarLite.cpp
#ifdef USE_CAM2 | ||
void TC3_Handler() { // Called by cam2_timer for camera 2 trigger. | ||
cam2.triggerMeasurement(); | ||
} | ||
#endif | ||
|
||
#ifdef USE_U_LANDING | ||
void TC3_Handler() { // Called by u_landing_timer for uLanding trigger. | ||
u_landing.triggerMeasurement(); | ||
} | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#ifdef USE_CAM2 | |
void TC3_Handler() { // Called by cam2_timer for camera 2 trigger. | |
cam2.triggerMeasurement(); | |
} | |
#endif | |
#ifdef USE_U_LANDING | |
void TC3_Handler() { // Called by u_landing_timer for uLanding trigger. | |
u_landing.triggerMeasurement(); | |
} | |
#endif | |
void TC3_Handler() { // Called by cam2_timer for camera 2 trigger or by u_landing_timer for uLanding trigger. | |
#ifdef USE_CAM2 | |
cam2.triggerMeasurement(); | |
#endif | |
#ifdef USE_U_LANDING | |
u_landing.triggerMeasurement(); | |
#endif | |
} |
@@ -135,7 +176,7 @@ void setup() { | |||
; // wait for sync | |||
} | |||
|
|||
// Enable TC4 (not used) and TC5 timers. | |||
// Enable TC4 (LidarLite) and TC5 timers. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Enable TC4 (LidarLite) and TC5 timers. | |
// Enable TC4 (LidarLite) and TC5 (IMU) timers. |
Builds up on #3 (merge first).
This PR introduces a u landing altimeter sensor into the VersaVis repository.