Added a flying-wing A/C Icon, and showed an exaple on microjet airframe

This commit is contained in:
mayrit
2013-11-10 19:31:55 +01:00
parent 3035d9f517
commit eb4e235dc4
4 changed files with 15 additions and 0 deletions
+4
View File
@@ -189,6 +189,10 @@
<subsystem name="ins" type="alt_float"/>
</firmware>
<section name="GCS">
<define name="AC_ICON" value="flyingwing"/>
</section>
<modules>
<load name="openlog.xml"/>
<load name="infrared_adc.xml"/>
+9
View File
@@ -38,6 +38,15 @@ let icon_fixedwing_template = {
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 = {
lines = [
[| 0.; -8.; 0.; 8.|];
+1
View File
@@ -29,6 +29,7 @@ type icon = {
}
val icon_fixedwing_template : icon
val icon_flyingwing_template : icon
val icon_rotorcraft_template : icon
val icon_home_template : icon
+1
View File
@@ -63,6 +63,7 @@ class track = fun ?(name="Noname") ?(icon="fixedwing") ?(size = 500) ?(color="re
let icon_template = match icon with
| "home" -> ACI.icon_home_template
| "rotorcraft" -> ACI.icon_rotorcraft_template
| "flyingwing" | _ -> ACI.icon_flyingwing_template
| "fixedwing" | _ -> ACI.icon_fixedwing_template
in
let _ac_icon = new ACI.widget ~color ~icon_template aircraft in