<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.paparazziuav.org/w/index.php?action=history&amp;feed=atom&amp;title=Plotting_shapes_onto_GCS</id>
	<title>Plotting shapes onto GCS - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.paparazziuav.org/w/index.php?action=history&amp;feed=atom&amp;title=Plotting_shapes_onto_GCS"/>
	<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/w/index.php?title=Plotting_shapes_onto_GCS&amp;action=history"/>
	<updated>2026-04-17T15:40:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.1</generator>
	<entry>
		<id>http://wiki.paparazziuav.org/w/index.php?title=Plotting_shapes_onto_GCS&amp;diff=23247&amp;oldid=prev</id>
		<title>Rijesh: Adding information about shape message</title>
		<link rel="alternate" type="text/html" href="http://wiki.paparazziuav.org/w/index.php?title=Plotting_shapes_onto_GCS&amp;diff=23247&amp;oldid=prev"/>
		<updated>2016-08-15T18:22:19Z</updated>

		<summary type="html">&lt;p&gt;Adding information about shape message&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Messages can be sent over the IVY bus to plot shapes onto the GCS.&lt;br /&gt;
&lt;br /&gt;
These shapes include circles, polygons, lines and text. &lt;br /&gt;
Shapes such as circles and polygons may have a fill with varying opacity.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;Message Definition&amp;lt;/big&amp;gt;&lt;br /&gt;
  &amp;lt;message name=&amp;quot;SHAPE&amp;quot; id=&amp;quot;38&amp;quot;&amp;gt;&lt;br /&gt;
    &amp;lt;description&amp;gt;&lt;br /&gt;
      The SHAPE message used to draw shapes onto the Paparazzi GCS.&lt;br /&gt;
      Field name shape is used to define the type of shape i.e. Circle, Polygon, Line, or Text.&lt;br /&gt;
      This is indexed from 0-3 respectively.&lt;br /&gt;
      Each shape drawn must have an id number associated with it. &lt;br /&gt;
      This id number in conjunction with the shapetype will be needed to update or delete the shape. &lt;br /&gt;
      A circle can be defined with the same id as a polygon but since they have different shape types they are considered unique.&lt;br /&gt;
      linecolor and fillcolor take in a color string ie: &amp;quot;red&amp;quot;, &amp;quot;blue&amp;quot; &lt;br /&gt;
      opacity will change the level of transparency of the fill.&lt;br /&gt;
      0 - Transparent&lt;br /&gt;
      1 - Light Fill&lt;br /&gt;
      2 - Medium Fill&lt;br /&gt;
      3 - Opaque&lt;br /&gt;
      Passing a status of 0 will create or update the shape specified by id and type.&lt;br /&gt;
      Passing a status of 1 will delete the shape specified by id and type.&lt;br /&gt;
      latarr is an array of coordinates that contain the latitude coordinate for each point in the shape. &lt;br /&gt;
      The array is comma separated.&lt;br /&gt;
      lonarr is similar to latarr but contain the longitude coordinate for each point in the shape.&lt;br /&gt;
      Circle and Text type will take the first coordinates given to place the shape.&lt;br /&gt;
      Polygon will take all the coordinates given.&lt;br /&gt;
      Line will take the first two coordinates given.&lt;br /&gt;
      Radius is only used for the circle.&lt;br /&gt;
      Text will always be populated with each message using the first set of coordinates.&lt;br /&gt;
      The text field can not be blank or have spaces.&lt;br /&gt;
      If text is not desired for a shape then pass &amp;quot;NULL&amp;quot; into the text field.&lt;br /&gt;
    &amp;lt;/description&amp;gt;&lt;br /&gt;
    &amp;lt;field name=&amp;quot;id&amp;quot;         type=&amp;quot;uint8&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;field name=&amp;quot;linecolor&amp;quot;  type=&amp;quot;string&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;field name=&amp;quot;fillcolor&amp;quot;  type=&amp;quot;string&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;field name=&amp;quot;opacity&amp;quot;    type=&amp;quot;uint8&amp;quot; values=&amp;quot;Transparent|Light|Medium|Opaque&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;field name=&amp;quot;shape&amp;quot;      type=&amp;quot;uint8&amp;quot; values=&amp;quot;Circle|Polygon|Line&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;field name=&amp;quot;status&amp;quot;     type=&amp;quot;uint8&amp;quot;  values=&amp;quot;create|delete&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;field name=&amp;quot;latarr&amp;quot;     type=&amp;quot;int32[]&amp;quot;  unit=&amp;quot;1e7deg&amp;quot; alt_unit=&amp;quot;deg&amp;quot; alt_unit_coef=&amp;quot;0.0000001&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;field name=&amp;quot;lonarr&amp;quot;     type=&amp;quot;int32[]&amp;quot;  unit=&amp;quot;1e7deg&amp;quot; alt_unit=&amp;quot;deg&amp;quot; alt_unit_coef=&amp;quot;0.0000001&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;field name=&amp;quot;radius&amp;quot;     type=&amp;quot;float&amp;quot; unit=&amp;quot;m&amp;quot;/&amp;gt;&lt;br /&gt;
    &amp;lt;field name=&amp;quot;text&amp;quot;       type=&amp;quot;string&amp;quot;/&amp;gt;&lt;br /&gt;
  &amp;lt;/message&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;Example Messages:&amp;lt;/big&amp;gt;&lt;/div&gt;</summary>
		<author><name>Rijesh</name></author>
	</entry>
</feed>