Skip to content
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

Lidar-Lite v1 module #1926

Merged
merged 2 commits into from Nov 3, 2016
Merged

Lidar-Lite v1 module #1926

merged 2 commits into from Nov 3, 2016

Conversation

podhrmic
Copy link
Member

@podhrmic podhrmic commented Nov 2, 2016

Lidar module version 1 (silver label)
https://github.com/pulsedlight3d

<file name="lidar_lite.h"/>
</header>
<init fun="lidar_lite_init()"/>
<periodic fun="lidar_lite_downlink()" freq="10"/> <!-- for debug -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to add autorun="FALSE" so that debug message sending is only activated on demand

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, done. How would you activate it then?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a setting will appear in the "modules" settings tab in the GCS (the last tab in settings).

lidar.distance = ((float)lidar.distance_raw)/100.0;

// send message
AbiSendMsgAGL(AGL_LIDAR_LITE_ID, lidar.distance);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to do something like https://github.com/paparazzi/paparazzi/blob/master/sw/airborne/modules/range_finder/teraranger_one.c#L127 in case the lidar is not used for AGL measurement (can still be activated by default)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I am not a big fan of even more ifdef directives. I ll add a variable to switch it on/off so it can be controlled remotely (and not always enabled).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that works as well with a variable

@@ -0,0 +1,25 @@
<!DOCTYPE module SYSTEM "module.dtd">

<module name="lidar_lite" dir="lidar">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The teraranger range finder have be placed in a folder range_finder. There is also a sonar folder. We should probably decide if we agree on a common folder for this type of sensors.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO it makes sense to group the sensors based on their categories - i.e. lidars will be in lidar folder, sonars in sonar folder. If terraranger is a lidar then probably lidars (or lidar) folder would be logical?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The teraranger is not using a laser source, but still based on light (http://www.teraranger.com/technology/). Can we still call that a lidar ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, I guess there will never be a good category for all sensors:-/ Personally I would be OK with leaving terranger in a separate folder, since it is rather unique. Technically it is not a lidar since it doesn't use laser (https://en.wikipedia.org/wiki/Lidar). What is your preference?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep things like they are for now.

@@ -111,6 +111,10 @@
#define AGL_TERARANGER_ONE_ID 5
#endif

#ifndef AGL_LIDAR_LITE_ID
#define AGL_LIDAR_LITE_ID 5
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be ID 6

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call. Fixed.

@podhrmic
Copy link
Member Author

podhrmic commented Nov 2, 2016

Previously it failed because of wrong pprzlink commit, now it should be fixed.

@podhrmic
Copy link
Member Author

podhrmic commented Nov 3, 2016

@gautierhattenberger does it look good as is?

@gautierhattenberger gautierhattenberger merged commit 7036dc9 into master Nov 3, 2016
@gautierhattenberger gautierhattenberger deleted the pulsed_light branch November 3, 2016 20:54
@OpenUAS
Copy link
Contributor

OpenUAS commented Mar 15, 2017

A little closer to "the other" opensource AP naming maybe welcomed. IMHO it should not be the technology used but the function of a sensor, so rangefinder as base, where we can have lidar, sonar, IR and whatnot based sensors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants