commit 7150f1d9e0675dc441a6be9bf5ffca8b3e02a202 Author: Niklas Kapelle Date: Fri May 31 14:07:31 2024 +0200 initial commit diff --git a/buttons.csv b/buttons.csv new file mode 100644 index 0000000..0cc5691 --- /dev/null +++ b/buttons.csv @@ -0,0 +1,70 @@ +$trigger,Unset +$pinky_big,Unset +$pinky_s,Unset +$pickle,Unset +$joy_n_b,Unset +$joy_n_r,Unset +$joy_n_l,Unset +$joy_n_f,Unset +$joy_n_p,Unset +$pov_b,Unset +$pov_r,Unset +$pov_l,Unset +$pov_f,Unset +$trim_b,Unset +$trim_r,Unset +$trim_l,Unset +$trim_f,Unset +$ws_b,Unset +$ws_r,Unset +$ws_l,Unset +$ws_f,Unset +$com_2,Unset +$com_1,Unset +$cm_u,Unset +$cm_d,Unset +$scroll_plus,Unset +$scroll_minus,Unset +$gear_u,Unset +$gear_d,Unset +$flaps_u,Unset +$flaps_d,Unset +$air_u,Unset +$air_d,Unset +$mode_m1,Unset +$mode_m2,Unset +$mode_s1,Unset +$sw_2_u,Unset +$sw_2_d,Unset +$sw_1_u,Unset +$sw_1_d,Unset +$rot_bot_plus,Unset +$rot_bot_minus,Unset +$rot_top_plus,Unset +$rot_top_minus,Unset +$sw_4_u,Unset +$sw_4_d,Unset +$sw_3_u,Unset +$sw_3_d,Unset +$th_n_b,Unset +$th_n_r,Unset +$th_n_l,Unset +$th_n_f,Unset +$th_n_p,Unset +$sc_top_minus,Unset +$sc_top_p,Unset +$sc_top_plus,Unset +$sc_bot_minus,Unset +$sc_bot_p,Unset +$sc_bot_plus,Unset +$nottdc_b,Unset +$nottdc_u,Unset +$nottdc_f,Unset +$nottdc_d,Unset +$tdc_b,Unset +$tdc_u,Unset +$tdc_f,Unset +$tdc_d,Unset +$sld_f,Unset +$sld_b,Unset +$th_btn_e,Unset \ No newline at end of file diff --git a/generate.sh b/generate.sh new file mode 100755 index 0000000..39f94de --- /dev/null +++ b/generate.sh @@ -0,0 +1,31 @@ +#/usr/bin/env sh + +set -eo pipefail + +if [ "$#" -ne 2 ]; then + echo "Usage: $0 " + exit 1 +fi + +MAPPING_FILE=$1 +IMAGE_FILE=$2 + +if [ ! -f "$MAPPING_FILE" ]; then + echo "$MAPPING_FILE not found!" + exit 1 +fi + +if [ ! -f "$IMAGE_FILE" ]; then + echo "$IMAGE_FILE not found!" + exit 1 +fi + +# awk -F, 'NR==FNR {map[$1] = $2; next} {for (key in map) gsub("\\b" key "\\b", map[key]); print}' $MAPPING_FILE $IMAGE_FILE + + +awk -F, 'NR==FNR {map[$1] = $2; next} END {for (key in map) print key, "=>", map[key]}' $MAPPING_FILE + + +# while IFS=, read -r col1 col2 _; do +# echo "$col1, $col2" +# done < "$MAPPING_FILE`" diff --git a/mini-stick.jpg b/mini-stick.jpg new file mode 100644 index 0000000..b7eed6d Binary files /dev/null and b/mini-stick.jpg differ diff --git a/stick.png b/stick.png new file mode 100644 index 0000000..87680a6 Binary files /dev/null and b/stick.png differ diff --git a/throttle.png b/throttle.png new file mode 100644 index 0000000..4516662 Binary files /dev/null and b/throttle.png differ diff --git a/x56.drawio b/x56.drawio new file mode 100644 index 0000000..fb4913f --- /dev/null +++ b/x56.drawio @@ -0,0 +1,740 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/x56.svg b/x56.svg new file mode 100644 index 0000000..bd7954d --- /dev/null +++ b/x56.svg @@ -0,0 +1,3 @@ + + +&nbsp;
$trigger
P
$pinky_big
P
$pinky_s
P
$pickle
P
$joy_n_b
$joy_n_r
B
R
$joy_n_l
L
$joy_n_f
F
$joy_n_p
P
$pov_b
$pov_r
B
R
$pov_l
L
$pov_f
F
$trim_b
$trim_r
B
R
$trim_l
L
$trim_f
F
$ws_b
$ws_r
B
R
$ws_l
L
$ws_f
F
$com_2
P
$com_1
P
$cm_u
U
$cm_d
D
$scroll_plus
+
$scroll_minus
-
$gear_u
U
$gear_d
D
$flaps_u
U
$flaps_d
D
$air_u
U
$air_d
D
$mode_m1
M1
$mode_m2
M2
$mode_s1
S1
$sw_2_u
U
$sw_2_d
D
$sw_1_u
U
$sw_1_d
D
$rot_bot_plus
+
$rot_bot_minus
-
$rot_top_plus
+
$rot_top_minus
-
$sw_4_u
U
$sw_4_d
D
$sw_3_u
U
$sw_3_d
D
$th_n_b
$th_n_r
B
R
$th_n_l
L
$th_n_f
F
$th_n_p
P
$sc_top_minus
$sc_top_p
-
P
$sc_top_plus
+
$sc_bot_minus
$sc_bot_p
-
P
$sc_bot_plus
+
$nottdc_b
$nottdc_u
B
U
$nottdc_f
F
$nottdc_d
D
 
$tdc_b
$tdc_u
B
U
$tdc_f
F
$tdc_d
D
 
$sld_f
F
$sld_b
B
$th_btn_e
P
\ No newline at end of file