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

added compressed remote GPS message for limited datalinks #14

Merged
merged 1 commit into from
Jun 16, 2016

Conversation

kirkscheper
Copy link
Member

Re-purposed the WC_RSSI message (which appeared not be be used).
updated remote_gps to be fowarded.
added a very small gps message and a swarming message.

@@ -1997,7 +1999,24 @@
<field name="imageBuffer" type="uint8[]"/>
</message>

<!--230 is free -->
<message name="SWARMNN" id="230">
Copy link
Member

Choose a reason for hiding this comment

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

Can you please add descriptions (for the message as well as the fields) and add units?

@@ -2223,6 +2248,7 @@
<field name="utm_east" type="int32" unit="cm"></field>
<field name="utm_north" type="int32" unit="cm"></field>
<field name="alt" type="int32" unit="cm">Height above Mean Sea Level (geoid)</field>
<field name="utm_zone" type="int8"></field>
Copy link
Member

Choose a reason for hiding this comment

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

still think this should be uint8_t

@flixr
Copy link
Member

flixr commented Apr 25, 2016

validation failed, please fix wrong field close tags

@kirkscheper
Copy link
Member Author

I get a bunch of unaligned message errors when I make the messages in a test (in messages that are already in the code). Shall I move the message items around to correct that or is it not an issue?

@flixr
Copy link
Member

flixr commented Apr 25, 2016

what test and what messages?

@kirkscheper
Copy link
Member Author

never mind, ends up that the intermcu is not possible to be aligned

flixr pushed a commit that referenced this pull request Apr 25, 2016
@flixr
Copy link
Member

flixr commented Apr 25, 2016

There is also too much stuff in one commit/PR that makes it really hard to merge only some of your other pull requests...
see remote_gps_small branch, do you really want the ac_id removed?

@kirkscheper
Copy link
Member Author

I don't want the ac_id removed, I just moved it to the end of the message to stop the not aligned error when that is important.

The branch looks good, pull it!.

@flixr
Copy link
Member

flixr commented Apr 25, 2016

For the RSSI message, should it get some field to indicate where the RSSI is from?

@kirkscheper
Copy link
Member Author

Yea, I guess you could do that, I use it now to communicate the rssi
received at the Bluetooth dongle to the drone so the acid is in the message
sender ac_id. But yea, of course if you use the message as a downlink then
the explicit ID is interesting, haha. I will add it.

Kirk
On 25 Apr 2016 11:23 p.m., "Felix Ruess" notifications@github.com wrote:

For the RSSI message, should it get some field to indicate where the RSSI
is from?


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#14 (comment)

@flixr
Copy link
Member

flixr commented Apr 26, 2016

I was more thinking about different components on the aircraft reporting RSSI, but if we don't need that right now, maybe we better wait until we add a component id to all messages?

<field name="multiplex_speed" type="uint32">bits 31-21 course in decideg : bits 20-10 ground speed in cm/s : bits 9-0 climb speed in cm/s</field>
<field name="lla_lat" type="int32" unit="1e7deg" alt_unit="deg" alt_unit_coef="0.0000001"></field>
<field name="lla_lon" type="int32" unit="1e7deg" alt_unit="deg" alt_unit_coef="0.0000001"></field>
<field name="alt" type="int16" unit="cm" alt_unit="m" alt_unit_coef="0.01"></field>
Copy link
Member

Choose a reason for hiding this comment

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

This is supposed to be alt above MSL(geoid) or ellipsoid?

@flixr
Copy link
Member

flixr commented Apr 26, 2016

Added the RSSI message with ab69fa7

@kirkscheper kirkscheper changed the title added swarm msgs and updated Remote_gps added compressed remote GPS message for limited datalinks Jun 13, 2016
@kirkscheper
Copy link
Member Author

I removed the swarm message for now, in the end I am not sure this will be useful for others. The compressed message may be useful though...


<message name="GPS_SMALL" id="252">
<field name="multiplex_speed" type="uint32">bits 31-21 course in decideg : bits 20-10 ground speed in cm/s : bits 9-0 climb speed in cm/s</field>
<field name="lla_lat" type="int32" unit="1e7deg" alt_unit="deg" alt_unit_coef="0.0000001"></field>
Copy link
Member

Choose a reason for hiding this comment

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

as already mentioned in the other PR, I think it makes sense to keep the lat and lon field names like in all the other messages or is there a reason for naming them lla_lat and lla_lon here?

Same for ACINFO_LLA

<field name="heading" type="int16" unit="1e4rad" alt_unit="rad" alt_unit_coef="0.0001"/>
<field name="pos_xyz" type="uint32">bits 31-21 x position in cm : bits 20-10 y position in cm : bits 9-0 z position in cm</field>
<field name="speed_xyz" type="uint32">bits 31-21 speed x in cm/s : bits 20-10 speed y in cm/s : bits 9-0 speed z in cm/s</field>
<field name="tow" type="uint32" unit="ms" alt_unit="s" alt_unit_coef="1000."/>
Copy link
Member

Choose a reason for hiding this comment

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

alt_unit_coef should be 0.001

@flixr
Copy link
Member

flixr commented Jun 16, 2016

LGTM
@gautierhattenberger fine to merge it?

@gautierhattenberger gautierhattenberger merged commit ebe2624 into paparazzi:master Jun 16, 2016
@kirkscheper kirkscheper deleted the swarm branch June 17, 2016 05:52
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