CN103677324B - Virtual instrument operation and control device based on single hand keyboard and mouse - Google Patents
Virtual instrument operation and control device based on single hand keyboard and mouse Download PDFInfo
- Publication number
- CN103677324B CN103677324B CN201310752267.1A CN201310752267A CN103677324B CN 103677324 B CN103677324 B CN 103677324B CN 201310752267 A CN201310752267 A CN 201310752267A CN 103677324 B CN103677324 B CN 103677324B
- Authority
- CN
- China
- Prior art keywords
- function
- virtual instrument
- module
- knob
- keyboard
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 230000006870 function Effects 0.000 claims abstract description 74
- 238000004364 calculation method Methods 0.000 claims description 6
- 238000010586 diagram Methods 0.000 description 8
- 238000004891 communication Methods 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 238000005192 partition Methods 0.000 description 2
- 230000000630 rising effect Effects 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000006073 displacement reaction Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000011089 mechanical engineering Methods 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Landscapes
- Position Input By Displaying (AREA)
Abstract
本发明公开了一种基于单手键鼠的虚拟仪器操控装置,其发送端包括键盘模块、惯导模块、控制器、无线发送模块,键盘模块上的按键包括功能按键和旋钮按键,分别对应虚拟仪器面板上的功能按键和旋钮,功能按键包括对应一个虚拟仪器功能的单功能按键,以及对应多个虚拟仪器互斥功能的复用功能按键;惯导模块根据其三轴陀螺仪和三轴加速器的参数计算出四元数,控制器通过对键盘模块的按压信号和惯导模块的四元数来生成控制信号,当按压信号来自功能按键时,生成功能控制信号,当按压信号来自旋钮按键时,生成旋钮控制信号,通过无线发送模块发送给接收端。本发明操作简便,可以实现对虚拟仪器的灵活操控。
The invention discloses a virtual instrument control device based on a one-handed keyboard and mouse. The sending end includes a keyboard module, an inertial navigation module, a controller, and a wireless sending module. The keys on the keyboard module include function keys and knob keys, respectively corresponding to virtual The function keys and knobs on the instrument panel, the function keys include single-function keys corresponding to a virtual instrument function, and multiple function keys corresponding to the mutually exclusive functions of multiple virtual instruments; the inertial navigation module is based on its three-axis gyroscope and three-axis accelerator The parameters are calculated to calculate the quaternion, and the controller generates a control signal through the pressing signal of the keyboard module and the quaternion of the inertial navigation module. When the pressing signal comes from a function button, a function control signal is generated. When the pressing signal comes from a knob button , generate the knob control signal, and send it to the receiving end through the wireless sending module. The invention is easy to operate and can realize flexible manipulation of virtual instruments.
Description
技术领域technical field
本发明属于虚拟仪器操控技术领域,更为具体地讲,涉及一种基于单手键鼠的虚拟仪器操控装置。The invention belongs to the technical field of virtual instrument control, and more specifically relates to a virtual instrument control device based on a one-handed keyboard and mouse.
背景技术Background technique
虚拟仪器是一种在计算机基础上通过增加相关硬件和软件构建而成的、具有可视化界面的仪器。与传统仪器相比,虚拟仪器的显示器、按键、旋钮等都是通过软件界面而非硬件部件来实现的。用户可以方便灵活地使用鼠标或按键在计算机显示屏幕上操作虚拟仪器软面板的各种“按键”和“旋钮”进行测试工作,并可以根据不同的测试要求通过窗口切换不同的虚拟仪器,或通过修改软件来改变、增减虚拟仪器系统的功能与规模。虚拟仪器具有的这种“可开发性”和“可扩展性”等优越特点使虚拟仪器具有较强的生命力和竞争力。虚拟仪器可以广泛应用于电子测量、航天航空、电力工程、机械工程等多个领域。目前,虚拟仪器多采用传统鼠标或键盘等来进行控制,但是传统操控装置并不能完全适应虚拟仪器的需要,一些功能需要通过复杂的操作组合才能实现。A virtual instrument is an instrument with a visual interface built on the basis of a computer by adding related hardware and software. Compared with traditional instruments, the display, keys, and knobs of virtual instruments are all realized through software interfaces rather than hardware components. Users can conveniently and flexibly use the mouse or buttons to operate various "buttons" and "knobs" on the soft panel of the virtual instrument on the computer display screen for testing, and can switch between different virtual instruments through windows according to different test requirements, or through Modify the software to change, increase or decrease the function and scale of the virtual instrument system. The superior characteristics of "developability" and "expandability" of virtual instrument make virtual instrument have strong vitality and competitiveness. Virtual instruments can be widely used in electronic measurement, aerospace, electric power engineering, mechanical engineering and many other fields. At present, virtual instruments are mostly controlled by traditional mouse or keyboard, but traditional control devices cannot fully meet the needs of virtual instruments, and some functions need to be realized through complex operation combinations.
无线3D单手键鼠是一种将键盘和鼠标结合成一个可以单手操作的输入装置,它同时具有键盘文本输入和鼠标指点输入的功能。无线3D单手键鼠由于其操控灵活、应用广泛,成为极具发展前景的操控装置。The wireless 3D one-handed mouse and keyboard is an input device that combines the keyboard and the mouse into one hand-operated input device, and it has the functions of keyboard text input and mouse pointing input at the same time. The wireless 3D one-handed mouse and keyboard has become a control device with great development prospects due to its flexible control and wide application.
发明内容Contents of the invention
本发明的目的在于克服现有技术的不足,提供一种基于单手键鼠的虚拟仪器操控装置,实现对虚拟仪器的灵活操控。The object of the present invention is to overcome the deficiencies of the prior art, provide a virtual instrument control device based on a one-handed keyboard and mouse, and realize the flexible control of the virtual instrument.
为实现上述发明目的,本发明基于单手键鼠的虚拟仪器操控装置,其特征在于包括:In order to achieve the above-mentioned purpose of the invention, the present invention is based on a one-handed keyboard and mouse virtual instrument control device, which is characterized in that it includes:
基于单手键鼠的虚拟仪器操控装置,包括发送端和接收端,发送端发送控制信号,接收端与虚拟仪器硬件设备连接,将从发送端接收到的控制信号并转发给虚拟仪器,其特征在于,所述发送端包括键盘模块、惯导模块、控制器、无线发送模块,其中:A virtual instrument control device based on one-handed keyboard and mouse, including a sending end and a receiving end. The sending end sends control signals, and the receiving end is connected to the virtual instrument hardware device, and forwards the control signal received from the sending end to the virtual instrument. Its features In that, the sending end includes a keyboard module, an inertial navigation module, a controller, and a wireless sending module, wherein:
键盘模块,包括功能按键和旋钮按键,功能按键包括单功能按键和复用功能按键,其中,单功能按键对应于虚拟仪器面板的一个功能,复用功能按键的N次操作中的每次操作分别代表虚拟仪器面板的N个互斥功能,旋钮按键用于指示虚拟仪器面板上的旋钮;每个按键在按压操作时会产生携带对应的虚拟仪器按键编号的按压信号,键盘模块将按压信号发送给控制器;The keyboard module includes function keys and knob keys, and the function keys include single-function keys and multiplex function keys, wherein the single-function key corresponds to a function of the virtual instrument panel, and each operation in the N operations of the multiplex function keys is respectively Represents N mutually exclusive functions of the virtual instrument panel. The knob button is used to indicate the knob on the virtual instrument panel; when each button is pressed, it will generate a pressing signal carrying the corresponding virtual instrument key number, and the keyboard module will send the pressing signal to controller;
惯导模块,包括三轴陀螺仪、三轴加速器、运动处理器,运动处理器根据三轴陀螺仪和三轴加速器测量得到的参数计算出四元数并发送给控制器;The inertial navigation module includes a three-axis gyroscope, a three-axis accelerator, and a motion processor. The motion processor calculates the quaternion based on the parameters measured by the three-axis gyroscope and the three-axis accelerator and sends it to the controller;
控制器,用于采集键盘模块发送的按压信号和惯导模块发送的四元数,当按压信号来自功能按键时,则生成对应的功能控制信号并发送至无线发送模块;当按压信号来自旋钮按键时,从获得按压信号开始时刻ts开始至结束时刻te,每隔Δt计算一次旋钮增量Dn,Δt为预设的时间间隔参数,计算方法为:The controller is used to collect the pressing signal sent by the keyboard module and the quaternion sent by the inertial navigation module. When the pressing signal comes from the function button, it generates the corresponding function control signal and sends it to the wireless sending module; when the pressing signal comes from the knob button , from the start time t s of obtaining the pressing signal to the end time t e , calculate the knob increment D n every Δt, Δt is the preset time interval parameter, and the calculation method is:
其中,n=1,2,3,…,K表示比例系数,yawn-1、yawn、yawe分别表示ts+(n-1)×Δt、时刻ts+n×Δt、按压信号结束时刻te的航向角,由对应时刻惯导模块发送给控制器的四元数计算得到,每得到一个旋钮增量Dn则生成对应的旋钮控制信号并发送至无线发送模块;Among them, n=1,2,3,..., K represents the proportional coefficient, yaw n-1 , yaw n , yaw e respectively represent t s +(n-1)×Δt, time t s +n×Δt, press signal The heading angle at the end time t e is calculated by the quaternion sent to the controller by the inertial navigation module at the corresponding time, and every time a knob increment D n is obtained, a corresponding knob control signal is generated and sent to the wireless sending module;
无线发送模块,用于向接收端发送控制信号。The wireless sending module is used to send control signals to the receiving end.
进一步地,复用功能按键的每次操作对应的虚拟仪器功能采用计数器控制,计数器用于记录复用功能按键的按压操作次数,次数每增加一次,则按预设的虚拟仪器功能顺序表向后切换一个功能,如果当前功能为顺序表中最后一个并次数加1,则返回顺序表第一个功能。Further, the virtual instrument function corresponding to each operation of the multiple function key is controlled by a counter, and the counter is used to record the number of pressing operations of the multiple function key, and each time the number of times increases, the preset virtual instrument function sequence table will be reversed. Switch a function. If the current function is the last one in the sequence list and the count is incremented by 1, return to the first function in the sequence list.
进一步地,航向角yaw按以下公式计算:Further, the heading angle yaw is calculated according to the following formula:
其中,w是四元数(w,x,y,z)中的实部,x,y,z是四元数(w,x,y,z)中的虚部。Among them, w is the real part of the quaternion (w, x, y, z), and x, y, z is the imaginary part of the quaternion (w, x, y, z).
进一步地,还包括一个无线发送缓冲区,用于存储尚未发送的控制信号。Further, it also includes a wireless sending buffer for storing control signals that have not been sent yet.
本发明基于单手键鼠的虚拟仪器操控装置,其发送端包括键盘模块、惯导模块、控制器、无线发送模块,键盘模块上的按键包括功能按键和旋钮按键,分别对应虚拟仪器面板上的功能按键和旋钮,功能按键包括对应一个虚拟仪器功能的单功能按键,以及对应多个虚拟仪器互斥功能的复用功能按键;惯导模块根据其三轴陀螺仪和三轴加速器的参数计算出四元数,控制器通过对键盘模块的按压信号和惯导模块的四元数来生成控制信号,当按压信号来自功能按键时,生成功能控制信号,当按压信号来自旋钮按键时,生成旋钮控制信号,通过无线发送模块发送给接收端,再由接收端发送给虚拟仪器,从而实现对虚拟仪器的操控。本发明采用的是单手键鼠,且组合按键较少,具有组合按键操作也较为简单,单手即可实现对虚拟仪器的灵活操控。The present invention is based on a one-handed keyboard and mouse virtual instrument control device, and its sending end includes a keyboard module, an inertial navigation module, a controller, and a wireless sending module. Function keys and knobs, the function keys include single-function keys corresponding to one virtual instrument function, and multiple function keys corresponding to mutually exclusive functions of multiple virtual instruments; the inertial navigation module calculates according to the parameters of its three-axis gyro and three-axis accelerator Quaternion, the controller generates a control signal through the pressing signal of the keyboard module and the quaternion of the inertial navigation module. When the pressing signal comes from a function button, a function control signal is generated. When the pressing signal comes from a knob button, a knob control is generated. The signal is sent to the receiving end through the wireless sending module, and then sent to the virtual instrument by the receiving end, so as to realize the control of the virtual instrument. The present invention adopts a one-handed keyboard and mouse, has fewer combined keys, and is relatively simple to operate with the combined keys, and can realize flexible manipulation of the virtual instrument with one hand.
附图说明Description of drawings
图1是本发明发送端硬件结构示意图;Fig. 1 is a schematic diagram of the hardware structure of the sending end of the present invention;
图2是虚拟双踪示波器面板示例图;Figure 2 is an example diagram of a virtual dual-trace oscilloscope panel;
图3是键盘模块功能分区示例图;Fig. 3 is an example diagram of the functional partition of the keyboard module;
图4是控制器的一种具体实施方式工作流程示意图。Fig. 4 is a schematic diagram of the work flow of a specific embodiment of the controller.
具体实施方式detailed description
下面结合附图对本发明的具体实施方式进行描述,以便本领域的技术人员更好地理解本发明。需要特别提醒注意的是,在以下的描述中,当已知功能和设计的详细描述也许会淡化本发明的主要内容时,这些描述在这里将被忽略。Specific embodiments of the present invention will be described below in conjunction with the accompanying drawings, so that those skilled in the art can better understand the present invention. It should be noted that in the following description, when detailed descriptions of known functions and designs may dilute the main content of the present invention, these descriptions will be omitted here.
实施例Example
本发明基于单手键鼠的虚拟仪器操控装置,包括发送端和接收端,发送端用于发送控制信号,接收端与虚拟仪器硬件设备连接,将从发送端接收到的控制信号并转发给虚拟仪器。虚拟仪器的软件模块通过硬件设备接收到控制信号,执行对应的操作。本实施例中,接收端采用Nordic公司的USB Dongle来实现。图1是本发明发送端硬件结构示意图。如图1所示,本发明发送端包括键盘模块、惯导模块、控制器、无线发送模块。The virtual instrument control device based on one-handed keyboard and mouse of the present invention includes a sending end and a receiving end, the sending end is used to send control signals, the receiving end is connected with virtual instrument hardware equipment, and forwards the control signal received from the sending end to the virtual instrument. The software module of the virtual instrument receives the control signal through the hardware device and executes the corresponding operation. In this embodiment, the receiving end is realized by using the USB Dongle of Nordic Company. FIG. 1 is a schematic diagram of the hardware structure of the sending end of the present invention. As shown in Figure 1, the sending end of the present invention includes a keyboard module, an inertial navigation module, a controller, and a wireless sending module.
键盘模块,包括功能按键和旋钮按键,功能按键包括单功能按键和复用功能按键,其中,单功能按键对应于虚拟仪器面板的一个功能,复用功能按键的N次操作中的每次操作分别代表虚拟仪器面板的N个互斥功能,N≥2,旋钮按键用于指示虚拟仪器面板上的旋钮;每个按键在按压操作时会产生携带对应的虚拟仪器按键编号的按压信号,键盘模块将按压信号发送给控制器。可见,键盘模块上的按键与虚拟仪器面板上的按键具有对应关系。The keyboard module includes function keys and knob keys, and the function keys include single-function keys and multiplex function keys, wherein the single-function key corresponds to a function of the virtual instrument panel, and each operation in the N operations of the multiplex function keys is respectively Represents N mutually exclusive functions of the virtual instrument panel, N≥2, the knob button is used to indicate the knob on the virtual instrument panel; when each button is pressed, it will generate a pressing signal carrying the corresponding virtual instrument button number, and the keyboard module will The pressing signal is sent to the controller. It can be seen that the keys on the keyboard module have a corresponding relationship with the keys on the virtual instrument panel.
图2是虚拟双踪示波器面板示例图。如图2所示,该虚拟双踪示波器面板上的按键按照功能分为四部分:垂直控制部分(VERTICAL)、水平控制部分(HORIZONTAL)、触发控制部分(TRIGGER)、其他部分。按照操作方式分可以将按键分为:复用功能按键,如开始/停止(Run/Stop)按键、上升/下降(Rising/Falling)按键;单功能按键,如Auto Set按键;旋钮,如位移调节(Position)等。Figure 2 is an example diagram of a virtual dual-trace oscilloscope panel. As shown in Figure 2, the buttons on the panel of the virtual dual-trace oscilloscope are divided into four parts according to their functions: vertical control part (VERTICAL), horizontal control part (HORIZONTAL), trigger control part (TRIGGER), and other parts. According to the operation mode, the buttons can be divided into: multiple function buttons, such as start/stop (Run/Stop) button, rising/falling (Rising/Falling) button; single-function buttons, such as Auto Set button; knobs, such as displacement adjustment (Position) and so on.
本实施例中虚拟仪器面板的复用功能按键有两个状态:按下和弹起,分别代表两个互斥功能,即同一时刻两个功能只存在其中一个,例如开始/停止按键,按下表示开始,弹起表示停止。这种复用功能按键可以采用键盘模块上的两个单功能按键实现,也可以采用键盘模块上的一个复用功能按键实现。虚拟仪器面板的单功能按键,和键盘模块的单功能按键自然对应,如果虚拟仪器面板存在有互斥的单功能按键也可以采用键盘模块上的一个复用功能按键来实现。在实际应用中,键盘模块上复用功能按键和单功能按键的配置根据需要确定。虚拟仪器面板上的旋钮是通过键盘模块上的旋钮按键和惯导模块共同实现操控的。键盘模块上的旋钮按键用于指示虚拟仪器面板上的旋钮,且是一一对应的。In this embodiment, the multifunction button on the virtual instrument panel has two states: pressed and popped up, which respectively represent two mutually exclusive functions, that is, only one of the two functions exists at the same time, such as the start/stop button, press means start, pop up means stop. This multiple function key can be implemented by two single function keys on the keyboard module, or by one multiple function key on the keyboard module. The single-function keys on the virtual instrument panel naturally correspond to the single-function keys on the keyboard module. If there are mutually exclusive single-function keys on the virtual instrument panel, it can also be realized by using a multiple function key on the keyboard module. In practical applications, the configuration of multiple function keys and single function keys on the keyboard module is determined according to requirements. The knobs on the virtual instrument panel are controlled through the knob buttons on the keyboard module and the inertial navigation module. The knob buttons on the keyboard module are used to indicate the knobs on the virtual instrument panel, and there is a one-to-one correspondence.
键盘模块上复用功能按键的每次操作对应的虚拟仪器功能可以采用计数器控制,计数器用于记录复用功能按键的按压操作次数,次数每增加一次,则按预设的虚拟仪器功能顺序表向后切换一个功能,如果当前功能为顺序表中最后一个并次数加1,则返回顺序表第一个功能。The virtual instrument function corresponding to each operation of the multiplexed function keys on the keyboard module can be controlled by a counter, and the counter is used to record the number of pressing operations of the multiplexed function keys. Each time the number of times increases, it will be displayed according to the preset virtual instrument function sequence. After switching a function, if the current function is the last one in the sequence list and the count is increased by 1, then return to the first function in the sequence list.
图3是键盘模块功能分区示例图。如图3所示,本实施例中键盘模块分为主键盘和控制键盘,主键盘为3×4的矩阵键盘,控制键盘为四个独立按键。表1是本实施例中键盘模块中按键与虚拟仪器面板上按键的对应关系表。Fig. 3 is an example diagram of functional partitions of the keyboard module. As shown in FIG. 3 , the keyboard module in this embodiment is divided into a main keyboard and a control keyboard, the main keyboard is a 3×4 matrix keyboard, and the control keyboard is four independent keys. Table 1 is a correspondence table between the keys in the keyboard module and the keys on the virtual instrument panel in this embodiment.
表1Table 1
虚拟仪器面板按键的编号是根据需要设置的。按压信号中会携带该编号,用于识别信号对应的虚拟仪器面板按键进行操控。The numbers of the keys on the virtual instrument panel are set according to the needs. The number will be carried in the press signal, which is used to identify the virtual instrument panel button corresponding to the signal for manipulation.
惯导模块,包括三轴陀螺仪、三轴加速器、运动处理器,运动处理器根据三轴陀螺仪和三轴加速器测量得到的参数计算出四元数并发送给控制器。The inertial navigation module includes a three-axis gyroscope, a three-axis accelerator, and a motion processor. The motion processor calculates the quaternion based on the parameters measured by the three-axis gyroscope and the three-axis accelerometer and sends it to the controller.
本实施例中的惯导模块采用的是Invensense公司的MPU-6050芯片。该芯片整合了三轴陀螺仪与三轴加速器,并且内置可处理复杂九轴运动融合算法的数字运动处理器(DMP:Digital Motion Processor),陀螺仪可测范围为±250,±500,±1000,±2000(dps),加速度计可测范围为±2,±4,±8,±16g,可以满足本发明的参数采集和计算需求。The inertial navigation module in this embodiment adopts the MPU-6050 chip of Invensense Company. The chip integrates a three-axis gyroscope and a three-axis accelerator, and has a built-in digital motion processor (DMP: Digital Motion Processor) that can handle complex nine-axis motion fusion algorithms. The measurable range of the gyroscope is ±250, ±500, ±1000 , ±2000 (dps), the measurable range of the accelerometer is ±2, ±4, ±8, ±16g, which can meet the parameter acquisition and calculation requirements of the present invention.
控制器,用于采集键盘模块发送的按压信号和惯导模块发送的四元数并生成控制信号。The controller is used to collect the pressing signal sent by the keyboard module and the quaternion sent by the inertial navigation module and generate a control signal.
本实施例中的控制器采用的是ST公司生产STM32F103RBT6处理器,该处理器使用ARM Cortex-M3 32位的RSIC内核,工作频率为72Mhz,内置高速存储器,高达128k字节的闪存,提供了ADC、定时器等功能,同时还包含诸多通信接口如SPI、I2C、UART、USB、CAN总线等。图4是控制器的一种具体实施方式工作流程示意图。如图4所示,控制器的工作流程为:The controller in this embodiment uses the STM32F103RBT6 processor produced by ST Company. This processor uses the ARM Cortex-M3 32-bit RSIC core with a working frequency of 72Mhz, built-in high-speed memory, up to 128k bytes of flash memory, and provides ADC , timer and other functions, and also includes many communication interfaces such as SPI, I2C, UART, USB, CAN bus, etc. Fig. 4 is a schematic diagram of the work flow of a specific embodiment of the controller. As shown in Figure 4, the workflow of the controller is:
S401:采集键盘模块发送的按压信号和惯导模块发送的四元数。S401: Collect the pressing signal sent by the keyboard module and the quaternion sent by the inertial navigation module.
S402:判断按压信号是否来自旋钮按键,如果是,进入步骤S403,如果不是,进入步骤S404。S402: Determine whether the pressing signal is from the knob button, if yes, go to step S403, if not, go to step S404.
S403:持续计算旋钮增量,其计算方法为:S403: Continuously calculate the knob increment, the calculation method is:
从获得按压信号开始时刻ts开始至结束时刻te,每隔Δt计算一次旋钮增量Dn,Δt为预设的时间间隔参数,计算方法为:From the start time t s of obtaining the pressing signal to the end time t e , the knob increment D n is calculated every Δt, Δt is a preset time interval parameter, and the calculation method is:
其中,n=1,2,3,…,K表示比例系数,yawn-1、yawn、yawe分别表示ts+(n-1)×Δt、时刻ts+n×Δt、按压信号结束时刻te的航向角,由对应时刻惯导模块发送给控制器的四元数计算得到,每得到一个旋钮增量Dn则进入步骤S405。Among them, n=1,2,3,..., K represents the proportional coefficient, yaw n-1 , yaw n , yaw e respectively represent t s +(n-1)×Δt, time t s +n×Δt, press signal The heading angle at the end time t e is calculated from the quaternion sent by the inertial navigation module to the controller at the corresponding time, and each time a knob increment D n is obtained, enter step S405.
可见,本发明实现的一种渐进式的旋钮调节,在按压信号开始至按压信号结束过程中,每隔Δt在虚拟仪器面板上更新一次旋钮状态,从而使操控人员可以实时观测旋钮调节幅度,提高操控的准确性。如果将时间间隔参数Δt设置为一个绝对大于按压信号结束时刻te的值,那么控制器只会计算一次旋钮增量,生成一次控制信号。在实际应用中,可以根据需要来确定Δt的值。It can be seen that the progressive knob adjustment realized by the present invention updates the status of the knob on the virtual instrument panel every Δt during the process from the start of the pressing signal to the end of the pressing signal, so that the operator can observe the adjustment range of the knob in real time and improve Controlling accuracy. If the time interval parameter Δt is set to a value that is absolutely greater than the end time t e of the pressing signal, the controller will only calculate the knob increment once and generate a control signal once. In practical applications, the value of Δt can be determined according to needs.
本实施例中,航向角的计算公式为:In this embodiment, the calculation formula of heading angle is:
其中,w是四元数(w,x,y,z)中的实部,x,y,z是四元数(w,x,y,z)中的虚部。Among them, w is the real part of the quaternion (w, x, y, z), and x, y, z is the imaginary part of the quaternion (w, x, y, z).
S404:令旋转增量为0。S404: Let the rotation increment be 0.
S405:生成控制信号并发送给无线发送模块,本实施例中采用的控制信号的格式为:S405: Generate a control signal and send it to the wireless sending module. The format of the control signal used in this embodiment is:
按键编号表示根据按压信号得到的对应虚拟仪器按键的编号。可见,当按键编号为功能按键时,旋钮增量为0,只有当按键编码为旋钮按键时,旋钮增量才有意义。一般地,当旋钮增量为正时表示旋钮顺时针旋转,负则表示逆时针旋转。The key number indicates the number of the corresponding virtual instrument key obtained according to the pressing signal. It can be seen that when the key number is a function key, the knob increment is 0, and only when the key code is a knob key, the knob increment is meaningful. Generally, when the knob increment is positive, it means that the knob rotates clockwise, and when it is negative, it means that it rotates counterclockwise.
无线发送模块,用于向接收端发送控制信号。本发明基于单手键鼠的虚拟仪器操控装置可以为无线发送模块配置一个无线发送缓冲区,用于存储尚未发送的控制信号。The wireless sending module is used to send control signals to the receiving end. The virtual instrument control device based on the one-handed mouse and keyboard of the present invention can configure a wireless sending buffer for the wireless sending module to store control signals that have not been sent yet.
本实施例中无线发送模块采用的是NRF24L01芯片。NRF24L01是由NORDIC生产的工作在2.4GHz~2.5GHz的ISM频段的单片无线收发器芯片。其采用FSK(Frequency-shiftkeying,频移键控)调制,内部集成了Enhanced Short Burst协议,可以实现点对点或一点对多点的无线通信,速度最快可以达到2Mbps,且传播距离远误码率低。In this embodiment, the wireless sending module adopts the NRF24L01 chip. NRF24L01 is a single-chip wireless transceiver chip produced by NORDIC that works in the ISM frequency band of 2.4GHz to 2.5GHz. It adopts FSK (Frequency-shift keying, frequency shift keying) modulation, integrated Enhanced Short Burst protocol inside, can realize point-to-point or point-to-multipoint wireless communication, the fastest speed can reach 2Mbps, and the transmission distance is long and the bit error rate is low .
尽管上面对本发明说明性的具体实施方式进行了描述,以便于本技术领域的技术人员理解本发明,但应该清楚,本发明不限于具体实施方式的范围,对本技术领域的普通技术人员来讲,只要各种变化在所附的权利要求限定和确定的本发明的精神和范围内,这些变化是显而易见的,一切利用本发明构思的发明创造均在保护之列。Although the illustrative specific embodiments of the present invention have been described above, so that those skilled in the art can understand the present invention, it should be clear that the present invention is not limited to the scope of the specific embodiments. For those of ordinary skill in the art, As long as various changes are within the spirit and scope of the present invention defined and determined by the appended claims, these changes are obvious, and all inventions and creations using the concept of the present invention are included in the protection list.
Claims (4)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310752267.1A CN103677324B (en) | 2013-12-31 | 2013-12-31 | Virtual instrument operation and control device based on single hand keyboard and mouse |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201310752267.1A CN103677324B (en) | 2013-12-31 | 2013-12-31 | Virtual instrument operation and control device based on single hand keyboard and mouse |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN103677324A CN103677324A (en) | 2014-03-26 |
| CN103677324B true CN103677324B (en) | 2017-02-15 |
Family
ID=50315126
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201310752267.1A Expired - Fee Related CN103677324B (en) | 2013-12-31 | 2013-12-31 | Virtual instrument operation and control device based on single hand keyboard and mouse |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN103677324B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10649581B1 (en) | 2011-08-05 | 2020-05-12 | P4tents1, LLC | Devices, methods, and graphical user interfaces for manipulating user interface objects with visual and/or haptic feedback |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109143873B (en) * | 2017-06-16 | 2024-08-06 | 佛山市顺德区美的电热电器制造有限公司 | Function switching control method and device, household appliance and storage medium |
| CN108563339B (en) * | 2018-07-07 | 2023-11-28 | 深圳市多彩实业有限公司 | Keyboard with multifunctional knob |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4914568A (en) * | 1986-10-24 | 1990-04-03 | National Instruments, Inc. | Graphical system for modelling a process and associated method |
| CN103091115A (en) * | 2012-12-21 | 2013-05-08 | 南京林业大学 | Automobile combination performance testing system |
-
2013
- 2013-12-31 CN CN201310752267.1A patent/CN103677324B/en not_active Expired - Fee Related
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US4914568A (en) * | 1986-10-24 | 1990-04-03 | National Instruments, Inc. | Graphical system for modelling a process and associated method |
| CN103091115A (en) * | 2012-12-21 | 2013-05-08 | 南京林业大学 | Automobile combination performance testing system |
Non-Patent Citations (2)
| Title |
|---|
| 《可穿戴计算技术及其应用的新发展》;于南翔,陈东义,夏侯士戟;《数字通信》;20120825(第4期);第17-18页 * |
| 《基于虚拟仪器技术的捷联惯导系统研究》;严家亮;《中国优秀硕士学位论文全文数据库信息科技辑》;20070228(第2期);第3-31页 * |
Cited By (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US10649581B1 (en) | 2011-08-05 | 2020-05-12 | P4tents1, LLC | Devices, methods, and graphical user interfaces for manipulating user interface objects with visual and/or haptic feedback |
| US10649580B1 (en) | 2011-08-05 | 2020-05-12 | P4tents1, LLC | Devices, methods, and graphical use interfaces for manipulating user interface objects with visual and/or haptic feedback |
| US10656759B1 (en) | 2011-08-05 | 2020-05-19 | P4tents1, LLC | Devices, methods, and graphical user interfaces for manipulating user interface objects with visual and/or haptic feedback |
| US10671213B1 (en) | 2011-08-05 | 2020-06-02 | P4tents1, LLC | Devices, methods, and graphical user interfaces for manipulating user interface objects with visual and/or haptic feedback |
| US10788931B1 (en) | 2011-08-05 | 2020-09-29 | P4tents1, LLC | Devices, methods, and graphical user interfaces for manipulating user interface objects with visual and/or haptic feedback |
| US10996787B1 (en) | 2011-08-05 | 2021-05-04 | P4tents1, LLC | Gesture-equipped touch screen system, method, and computer program product |
| US11061503B1 (en) | 2011-08-05 | 2021-07-13 | P4tents1, LLC | Devices, methods, and graphical user interfaces for manipulating user interface objects with visual and/or haptic feedback |
| US11740727B1 (en) | 2011-08-05 | 2023-08-29 | P4Tents1 Llc | Devices, methods, and graphical user interfaces for manipulating user interface objects with visual and/or haptic feedback |
Also Published As
| Publication number | Publication date |
|---|---|
| CN103677324A (en) | 2014-03-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN103176010B (en) | Method for oscilloscope remote touch method | |
| CN101763181B (en) | Input apparatus, control apparatus, and control method for input apparatus | |
| CN103677324B (en) | Virtual instrument operation and control device based on single hand keyboard and mouse | |
| CN102063183A (en) | Virtual input device of grove type | |
| CN104252303A (en) | Method and system for operating games based on pressure sensitive information | |
| CN101470548A (en) | Method for measuring object dimension and angle through touch screen | |
| CN102945088A (en) | Method, device and mobile equipment for realizing terminal-simulated mouse to operate equipment | |
| CN101692192A (en) | Ring wireless mouse | |
| CN103345353A (en) | Airflow unlocking method and mobile terminal | |
| CN204945943U (en) | For providing the remote control equipment of remote control signal for external display device | |
| TWI525524B (en) | Transmitter set for concurrent transmitting, transmitting method thereof, and touch sensitive system | |
| TW201325101A (en) | Distant multipoint remote control device and system | |
| CN205302186U (en) | Virtual reality control system based on external input | |
| CN206209622U (en) | A kind of wireless midair mouse based on STM32 microcontrollers | |
| CN205193613U (en) | Quick distributing device based on solenoid valve | |
| CN107688348B (en) | A wireless human-computer interaction device and method for realizing pointing control function | |
| CN103900822A (en) | Flexible testing system for engine pedestal performance | |
| CN206991254U (en) | Bluetooth air mouse | |
| TW201229820A (en) | Method for reducing index signal jittering of 3-D input apparatus, 3-D input apparatus and module producing 3-D index signal | |
| CN201622540U (en) | Keyboard integrated wireless mouse | |
| CN203276168U (en) | Head mounted wireless mouse device | |
| TWI520012B (en) | The system of setting the parameters of the keyboard / index device that changes the unconnected relationship with the handheld device System | |
| CN202150049U (en) | Intelligent monitor for driving state of vehicle | |
| CN202472384U (en) | Environmental data acquisition instrument based on small RTOS (Real Time Operating System) | |
| CN221768132U (en) | A remote control device based on UWB technology |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20170215 Termination date: 20201231 |