This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const wheelEvt = document.createEvent('MouseEvents'); | |
| wheelEvt.initEvent('wheel', true, true); | |
| // Set deltaY depending on wheel up or wheel down | |
| wheelEvt.deltaY = +120; | |
| // wheelEvt.deltaY = -120; | |
| // Pass event to element | |
| element.dispatchEvent(wheelEvt); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //compiled gcc fonttest.c -o fonttest -lfontconfig | |
| //Sample output: /usr/share/fonts/steam-fonts/arial.ttf | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <fontconfig/fontconfig.h> | |
| int main() | |
| { | |
| FcConfig* config = FcInitLoadConfigAndFonts(); | |
| //make pattern from font name | |
| FcPattern* pat = FcNameParse((const FcChar8*)"Arial"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <errno.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <asm/termbits.h> | |
| #include <fcntl.h> | |
| #include <sys/ioctl.h> | |
| int serial_arbitrary_baudrate(int fd, int baudrate) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define DEFAULT_OUTPUT_PWM_FRAME_RATE 1000 | |
| #define DEFAULT_ATTITUDE 120.0 | |
| /* | |
| will listen for UDP packets: | |
| 9001 - Betaflight's PwmOut UDP link to RF9 | |
| 9002 - Betaflight's PwmOut UDP link to gazebo | |
| will send |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From d53ba04c85c85c81dc8bdeec38bcfb8f41ebb471 Mon Sep 17 00:00:00 2001 | |
| From: Maksym Veremeyenko <maks.verem@gmail.com> | |
| Date: Wed, 10 Dec 2025 17:09:41 +0200 | |
| Subject: [PATCH 1/6] Impelement real serial support for SITL. | |
| --- | |
| src/main/drivers/serial_sitl.c | 504 +++++++++++++++++++++++++++++++++ | |
| src/main/drivers/serial_sitl.h | 5 + | |
| src/main/io/serial.c | 8 + | |
| src/main/main.c | 11 + |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sim_duration = 20; # simulation duration, seconds | |
| sim_freq = 150; # simulation step frequency | |
| target_position_A = 1200; # initial positoin of target, DILEC | |
| target_position_B = 5700; # initial positoin of target, DILEC | |
| head_position_current = 4000; # initial head position, DILEC | |
| head_speed_current = 0; | |
| PARAM_K_SPEED = 170 / 1000; | |
| INTEGRATOR_SPEED = (1.0 / 0.016); # 16 [mV] = 1 [dc / s] | |
| output_voltage_MIN = -10; |
OlderNewer