mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-06 07:53:43 +08:00
Added a flying-wing A/C Icon, and showed an exaple on microjet airframe
This commit is contained in:
@@ -189,6 +189,10 @@
|
|||||||
<subsystem name="ins" type="alt_float"/>
|
<subsystem name="ins" type="alt_float"/>
|
||||||
</firmware>
|
</firmware>
|
||||||
|
|
||||||
|
<section name="GCS">
|
||||||
|
<define name="AC_ICON" value="flyingwing"/>
|
||||||
|
</section>
|
||||||
|
|
||||||
<modules>
|
<modules>
|
||||||
<load name="openlog.xml"/>
|
<load name="openlog.xml"/>
|
||||||
<load name="infrared_adc.xml"/>
|
<load name="infrared_adc.xml"/>
|
||||||
|
|||||||
@@ -38,6 +38,15 @@ let icon_fixedwing_template = {
|
|||||||
width = 4
|
width = 4
|
||||||
}
|
}
|
||||||
|
|
||||||
|
let icon_flyingwing_template = {
|
||||||
|
lines = [
|
||||||
|
[| -13.; 4.; 0.; -7.; 13.; 4.|];
|
||||||
|
[| -13.; 5.; 0.; 0.; 13.; 5.|];
|
||||||
|
];
|
||||||
|
ellipse = [];
|
||||||
|
width = 4
|
||||||
|
}
|
||||||
|
|
||||||
let icon_rotorcraft_template = {
|
let icon_rotorcraft_template = {
|
||||||
lines = [
|
lines = [
|
||||||
[| 0.; -8.; 0.; 8.|];
|
[| 0.; -8.; 0.; 8.|];
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ type icon = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
val icon_fixedwing_template : icon
|
val icon_fixedwing_template : icon
|
||||||
|
val icon_flyingwing_template : icon
|
||||||
val icon_rotorcraft_template : icon
|
val icon_rotorcraft_template : icon
|
||||||
val icon_home_template : icon
|
val icon_home_template : icon
|
||||||
|
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ class track = fun ?(name="Noname") ?(icon="fixedwing") ?(size = 500) ?(color="re
|
|||||||
let icon_template = match icon with
|
let icon_template = match icon with
|
||||||
| "home" -> ACI.icon_home_template
|
| "home" -> ACI.icon_home_template
|
||||||
| "rotorcraft" -> ACI.icon_rotorcraft_template
|
| "rotorcraft" -> ACI.icon_rotorcraft_template
|
||||||
|
| "flyingwing" | _ -> ACI.icon_flyingwing_template
|
||||||
| "fixedwing" | _ -> ACI.icon_fixedwing_template
|
| "fixedwing" | _ -> ACI.icon_fixedwing_template
|
||||||
in
|
in
|
||||||
let _ac_icon = new ACI.widget ~color ~icon_template aircraft in
|
let _ac_icon = new ACI.widget ~color ~icon_template aircraft in
|
||||||
|
|||||||
Reference in New Issue
Block a user