WO2022021416A1 - Electric motor control method, apparatus and system, and computer-readable storage medium - Google Patents

Electric motor control method, apparatus and system, and computer-readable storage medium Download PDF

Info

Publication number
WO2022021416A1
WO2022021416A1 PCT/CN2020/106394 CN2020106394W WO2022021416A1 WO 2022021416 A1 WO2022021416 A1 WO 2022021416A1 CN 2020106394 W CN2020106394 W CN 2020106394W WO 2022021416 A1 WO2022021416 A1 WO 2022021416A1
Authority
WO
WIPO (PCT)
Prior art keywords
motor
control
rotating device
motor control
push information
Prior art date
Application number
PCT/CN2020/106394
Other languages
French (fr)
Chinese (zh)
Inventor
王振动
李智勇
杨天豪
Original Assignee
深圳市大疆创新科技有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 深圳市大疆创新科技有限公司 filed Critical 深圳市大疆创新科技有限公司
Priority to PCT/CN2020/106394 priority Critical patent/WO2022021416A1/en
Priority to CN202080007151.3A priority patent/CN113228618A/en
Publication of WO2022021416A1 publication Critical patent/WO2022021416A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/695Control of camera direction for changing a field of view, e.g. pan, tilt or based on tracking of objects
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F16ENGINEERING ELEMENTS AND UNITS; GENERAL MEASURES FOR PRODUCING AND MAINTAINING EFFECTIVE FUNCTIONING OF MACHINES OR INSTALLATIONS; THERMAL INSULATION IN GENERAL
    • F16MFRAMES, CASINGS OR BEDS OF ENGINES, MACHINES OR APPARATUS, NOT SPECIFIC TO ENGINES, MACHINES OR APPARATUS PROVIDED FOR ELSEWHERE; STANDS; SUPPORTS
    • F16M11/00Stands or trestles as supports for apparatus or articles placed thereon Stands for scientific apparatus such as gravitational force meters
    • F16M11/02Heads
    • F16M11/18Heads with mechanism for moving the apparatus relatively to the stand

Definitions

  • the present application relates to the technical field of motor control, and in particular, to a motor control method, device, system, and computer-readable storage medium.
  • each batch of motors has the exact same device identification, and when multiple motors are connected to the gimbal device at the same time , there are multiple identical device IDs in the communication network of the PTZ device. In this way, it is impossible to distinguish the motors by the same device identification, it is difficult to meet the user's control requirements for multiple motors, and the user experience is not good.
  • the embodiments of the present application provide a motor control method, device, system, and computer-readable storage medium, aiming to solve the problem that when multiple motors are externally connected to a PTZ device at the same time, other device nodes in the communication network cannot pass the The same device ID is used to distinguish motor problems.
  • an embodiment of the present application provides a motor control method, the motor includes a first motor or a second motor, and the first motor and the second motor have the same initial device identifier, which is the second motor.
  • the virtual device identification set by the motor is different from the initial device identification, and the method includes:
  • the motor control instruction includes a device identifier, and the device identifier is used to distinguish the recipient of the motor control instruction, and the recipient is the first motor or the second motor;
  • the device identifier in the motor control instruction is the same as the virtual device identifier, modify the device identifier in the motor control instruction to the initial device identifier, so as to update the motor control instruction, and report to the first
  • the second motor sends the updated motor control command.
  • an embodiment of the present application further provides a control device, where the control device is used to control a first motor or a second motor, and the first motor and the second motor have the same initial device identification, which is the same as the first motor and the second motor.
  • the virtual device identification set by the second motor is different from the initial device identification;
  • control device includes a memory and one or more processors
  • the memory for storing computer programs
  • the one or more processors are configured to execute the computer program, and when executing the computer program, implement the steps of the motor control method according to any one of the embodiments of the present application.
  • an embodiment of the present application further provides a shooting system, the shooting system includes a pan-tilt device, a shooting device mounted on the pan-tilt device, a rotation device, the above-mentioned control device, and the The first motor and the second motor connected to the gimbal device.
  • an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the method described in the present application. Provide any one of the steps of the motor control method.
  • the embodiments of the present application provide a motor control method, device, system, and computer-readable storage medium.
  • a motor control instruction if the device identifier in the motor control instruction is the same as the initial device identifier of the motor, the first motor is sent to the first motor.
  • Send a motor control command if the device ID in the motor control command is the same as the virtual device ID of the motor, modify the device ID in the motor control command to the initial device ID to update the motor control command, and send the update to the second motor Therefore, when multiple motors are connected to the gimbal device at the same time, other device nodes in the communication network cannot be distinguished by the same device ID, which improves the user experience.
  • FIG. 1 is a schematic structural diagram of a pan/tilt device implementing the motor control method provided by an embodiment of the present application
  • Fig. 2 is the connection schematic diagram of the pan/tilt device, the first motor, the second motor and the rotating device in the embodiment of the present application;
  • FIG. 3 is a schematic diagram of the connection of the pan/tilt device, the first motor, the second motor, the first rotating device and the second rotating device in the embodiment of the present application;
  • FIG. 4 is a schematic flowchart of steps of a motor control method provided by an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of steps of another motor control method provided by an embodiment of the present application.
  • FIG. 6 is a schematic block diagram of the structure of a control device provided by an embodiment of the present application.
  • FIG. 7 is a schematic structural block diagram of a photographing system provided by an embodiment of the present application.
  • the device identifiers are used to distinguish each device accessing the network, which can be specifically divided into device identifiers corresponding to the sender and device identifiers corresponding to the receiver.
  • the device identification in the data packet sent by it is its own device identification, and it only receives data packets whose device identification is its own device identification in the data packet.
  • the software and hardware of each batch of motors are identical, so each batch of motors has the exact same device identification, and when multiple motors are connected to the gimbal device at the same time , there are multiple identical device IDs in the communication network of the PTZ device.
  • the motors cannot be distinguished by the same device IDs, and it is difficult to meet the user's control requirements for multiple motors. Bad user experience.
  • inventions of the present application provide a motor control method, device, system, and computer-readable storage medium.
  • the motor control method can be applied to a control device, and the control device is used to control a first motor connected to a photographing device.
  • the second motor so that the first motor can adjust the first shooting parameters of the shooting device, the second motor can adjust the second shooting parameters of the shooting device, the initial device identifiers of the first motor and the second motor are the same, the first motor and the
  • a virtual device identifier is set for the second motor, and the virtual device identifier set for the second motor is different from the initial device identifier, so that the first rotating device or the second rotating device in the communication network can be based on
  • the initial device identification and the virtual device identification distinguish the first motor and the second motor, which facilitates the user to control the two motors through the first rotating device or the second rotating device, and improves user experience.
  • the control apparatus may be applied to a pan/tilt device or a photographing device.
  • FIG. 1 is a schematic structural diagram of a pan/tilt device implementing the motor control method provided by the embodiment of the present application.
  • the pan/tilt device 100 includes a handle portion 101 and a pan/tilt head 102 disposed on the handle portion 101 .
  • the gimbal 102 is used for carrying a photographing device. It can be understood that the photographing device can be integrated with the gimbal 102 , and the photographing device is a smartphone, and of course other photographing devices, such as a single-lens reflex camera.
  • the pan/tilt 102 includes three-axis motors, which are a pitch (pitch) axis motor 1021, a roll (roll) axis motor 1022 and a yaw (yaw) axis motor 1023, which are used to adjust the motion of the photographing device mounted on the pan/tilt 102. Balance your stance for high-precision, stable shots anytime, anywhere.
  • the PTZ 102 is provided with an inertial measurement unit (Inertial measurement unit, IMU), for example, including at least one of an accelerometer or a gyroscope, which can be used to measure the attitude and acceleration of the PTZ 102, so as to adjust the cloud according to the attitude The attitude of the stage 102 .
  • the handle portion 101 is also provided with an inertial measurement unit (Inertial measurement unit, IMU), for example including at least one of an accelerometer or a gyroscope, which can be used to measure the attitude and acceleration of the handle portion 101, etc., In order to adjust the posture of the pan/tilt head 102 according to the posture of the handle part 101 and the posture of the pan/tilt head 102 .
  • the handle portion 101 is further provided with an operation control key, so that the user can operate the operation control key to control the pan/tilt 102 or the photographing device mounted on the pan/tilt 102 .
  • the operation control key may be, for example, a key, a trigger, a knob or a rocker, etc., of course, other forms of physical keys are also included.
  • the joystick can be used to control the movement of the three rotation axes, and then control the movement of the gimbal 102 . It can be understood that the joystick can also be used for other functions, and the user can also select the shooting parameters that can be adjusted by the rotating device through the operation control key, so that the subsequent PTZ device can respond to the user's rotating operation on the rotating device to control the shooting. The device adjusts the shooting parameters.
  • the pan-tilt device 100 can be connected with the first motor, the second motor and the rotating device, and the connection between the pan-tilt device 100 and the rotating device can be wired or wireless. It is used to control the first motor or the second motor connected with the shooting device to adjust the first shooting parameter or the second shooting parameter of the shooting device.
  • the first motor is snap-connected with the zoom ring of the shooting device, so that when the first motor rotates, the zoom ring is driven to rotate to control the zoom parameters of the shooting device
  • the second motor is snap-connected with the follow focus ring of the shooting device, so that the first motor rotates
  • the first motor or the second motor can also be connected with the aperture ring of the shooting device to control other shooting parameters of the device.
  • the pan-tilt device 100 may be connected to the photographing device through a control line, so as to adjust the shooting parameters of the photographing device mounted on the pan-tilt 102 .
  • the control wire may be a shutter wire, and the type of the shutter wire is not limited here, for example, the shutter wire may be a Universal Serial Bus (Universal Serial Bus, USB).
  • FIG. 2 is a schematic diagram of the connection of the pan/tilt device, the first motor, the second motor and the rotating device in the embodiment of the present application.
  • the PTZ device includes a first interface 10 and a second interface 20
  • the first motor 30 is connected to the PTZ device 100 through the first interface 10
  • the second motor 40 is connected to the PTZ device through the second interface 20 .
  • the rotating device 50 is connected to the pan/tilt device 100 by wire, so that the rotating device 50 can control the first motor 30 to adjust the first shooting parameter of the shooting device, or control the second motor 40 to adjust the second shooting parameter of the shooting device.
  • the control mode of the rotating device 50 includes a first control mode and a second control mode, and the user can switch the control mode of the rotating device 50 by himself.
  • the rotating device 50 is used to control the first motor 30 to set the first shooting parameters of the shooting device
  • the rotating device 50 is used to control the second motor 40 Adjust the second shooting parameter of the shooting device.
  • the user can switch the control mode of the rotating device 50 through the operation buttons on the handle part 101 , and can also switch the control mode of the rotating device 50 through the display device on the handle part 101 .
  • the gimbal device 100 includes a first interface 10 and a second interface 20 , the first motor 30 is connected to the gimbal device 100 through the first interface 10 , and the second motor 40 is connected to the gimbal through the second interface 20
  • the device 100, the first rotating device 51 and the second rotating device 52 are connected to the pan-tilt device 100 by wired means.
  • the first rotating device 51 and the second rotating device 52 can also be connected to the pan-tilt device 100 by wireless means.
  • the first rotating device 51 is connected to the pan-tilt device 100 in a wired way
  • the second rotating device 52 is connected to the pan-tilt device 100 in a wireless way, so that the first rotating device 51 can control the first motor 30 to adjust the shooting device.
  • the second rotating device 52 can control the second motor 40 to adjust the second shooting parameter of the shooting device, or the first rotating device 51 can control the second motor 40 to adjust the second shooting parameter of the shooting device.
  • the rotating device 52 can control the first motor 30 to adjust the first shooting parameters of the shooting device.
  • the pan-tilt device 100 includes a processor, and the processor is used for processing input control instructions, or sending and receiving signals.
  • the processor may be provided inside the handle portion 101 .
  • the processor may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (application specific integrated circuits) circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
  • pan-tilt device in FIG. 1 , FIG. 2 , and FIG. 3 and the above naming of the components of the pan-tilt device are only for the purpose of identification, and therefore do not limit the embodiments of the present application.
  • FIG. 4 is a schematic flowchart of steps of a motor control method provided by an embodiment of the present application.
  • the motor control method includes steps S101 to S103.
  • the initial device identifiers of the first motor and the second motor are the same.
  • a virtual device identifier is set for the second motor, or a virtual device identifier is set for the first motor.
  • the device ID is different from the virtual device ID, so that the rotating device connected with the PTZ device can distinguish the first motor and the second motor through the initial device ID and the virtual device ID, so as to control the first motor or the second motor to adjust the first motor of the shooting device.
  • Shooting parameters or second shooting parameters, the first shooting parameters include any one of follow focus parameters, zoom parameters and exposure parameters
  • the second shooting parameters include any one of follow focus parameters, zoom parameters and exposure parameters.
  • the first motor is snap-connected with the zoom ring of the shooting device, so that when the first motor rotates, the zoom ring is driven to rotate to control the zoom parameters of the shooting device
  • the second motor is snap-connected with the follow focus ring of the shooting device, so that the first motor rotates
  • the second motor drives the follow focus ring to rotate to control the follow focus parameters of the photographing device.
  • the first motor is connected with the follow focus ring of the photographing device, so that when the first motor rotates, the follow focus ring is driven to rotate to control the follow focus parameters of the photographing device
  • the second motor is connected with the zoom ring of the photographing device by snap connection, When the second motor rotates, the zoom ring is driven to rotate to control the zoom parameters of the photographing device.
  • the control device acquires the rotation information of the rotation device in response to the user's operation on the rotation device, and generates the motor control command according to the rotation information.
  • the rotating device acquires the rotation information of the rotating device in response to the user's operation, generates a motor control command according to the rotation information, and sends the motor control command to the control device, and the control device obtains the motor control command sent by the rotating device .
  • the rotating device is connected to the PTZ device through wired or wireless communication, the rotating device can be a dial wheel, a focus wheel, etc., the rotating information includes the rotation speed, position and angular velocity of the rotating device, and the motor control command includes the device identification.
  • the device identifier is used to distinguish the recipient of the motor control instruction, and the recipient of the motor control instruction may be the first motor or the second motor.
  • the rotating device has a first control mode and a second control mode.
  • the rotating device In the first control mode, the rotating device is used to control the first motor, and in the second control mode, the rotating device is used to control the second motor.
  • the motor, the motor control instruction can be generated based on the user's operation on the rotating device in the first control mode, the device identification in the motor control instruction is the same as the initial device identification, and the motor control instruction can also be in the second control mode.
  • the device ID in the motor control instruction is the same as the virtual device ID, which is generated based on the user's operation on the rotating device.
  • the rotating device in the first control mode, is used to control the second motor, and in the second control mode, the rotating device is used to control the first motor, and the motor control command may be based on the user in the first control mode.
  • the device identification in the motor control instruction is the same as the virtual device identification, and the motor control instruction can also be generated based on the user's operation on the rotating device in the second control mode.
  • the identification is the same as the original equipment identification.
  • the rotating device includes a first rotating device or a second rotating device, the first rotating device is used to control the first motor, and the second rotating device is used to control the second motor, and the motor control command may be based on the user's Generated by the operation of the first rotating device, the device identification in the motor control instruction is the same as the initial device identification, and the motor control instruction can also be generated based on the user's operation on the second rotating device, the device identification in the motor control instruction Same as virtual device ID.
  • One motor is controlled by one rotating device, and another motor is controlled by another rotating device, and there is no need to switch the control mode of the rotating device back and forth, which is convenient for the user to control the motor to adjust the shooting parameters of the shooting device, which greatly improves the user experience.
  • the first rotation device is used to control the second motor
  • the second rotation device is used to control the first motor
  • the motor control instruction may be generated based on the user's operation on the first rotation device
  • the motor control instruction The device identifier in the motor control instruction is the same as the virtual device identifier
  • the motor control instruction may also be generated based on the user's operation on the second rotating device
  • the device identifier in the motor control instruction is the same as the initial device identifier.
  • One motor is controlled by one rotating device, and another motor is controlled by another rotating device, and there is no need to switch the control mode of the rotating device back and forth, which is convenient for the user to control the motor to adjust the shooting parameters of the shooting device, which greatly improves the user experience.
  • the device ID set for the first motor is the initial device ID
  • the device ID set for the second motor is the virtual device ID
  • the initial device ID is different from the virtual device ID
  • the motor control instruction If the device ID of the motor control command is the same as the initial device ID, the motor control command is sent to the first motor, and if the device ID in the motor control command is the same as the virtual device ID, the device ID in the motor control command is modified to the initial device ID, to The motor control command is updated, and the updated motor control command is sent to the second motor.
  • the equipment identification set for the first motor is a virtual equipment identification
  • the equipment identification set for the second motor is an initial equipment identification
  • the original equipment identification is different from the virtual equipment identification
  • the motor control instruction If the device ID in the motor control command is the same as the initial device ID, the motor control command is sent to the second motor, and if the device ID in the motor control command is the same as the virtual device ID, the device ID in the motor control command is modified to the initial device ID, to update the motor control command, and send the updated motor control command to the first motor.
  • the first motor can be connected to the gimbal device through the first interface, and the second motor can be connected to the gimbal device through the second interface. Therefore, a motor control command can be sent to the first motor through the first interface, and also The updated motor control command may be sent to the second motor through the second interface.
  • the first motor can be connected to the gimbal device through the second interface, and the second motor can be connected to the gimbal device through the first interface. Therefore, the updated motor control command can be sent to the second motor through the first interface, and also Motor control commands may be sent to the first motor through the second interface.
  • the first motor push information sent by the first motor is obtained, wherein the first motor push information includes the initial equipment identification; the first motor including the initial equipment identification is pushed.
  • the information is sent to the rotating device.
  • the first motor push information sent by the first motor can be obtained through the first interface, and when the first motor is connected to the gimbal device through the second interface, The first motor push information sent by the first motor can be acquired through the second interface, where the first motor push information includes the initial device identifier of the first motor and the current state information of the first motor.
  • the second motor push information sent by the second motor is acquired, wherein the second motor push information includes the initial device identifier; the initial device in the second motor push information is obtained.
  • the identifier is modified to a virtual device identifier, so as to update the push information of the second motor, and send the updated push information of the second motor to the rotating device.
  • the second motor push information sent by the second motor can be obtained through the first interface
  • the second motor push information sent by the second motor can be acquired through the second interface, where the second motor push information includes the initial device identifier of the second motor and the current state information of the second motor.
  • the rotating device includes a first rotating device or a second rotating device, the first rotating device is used to control the first motor, and the second rotating device is used to control the second motor, and on this basis, the first motor is obtained.
  • the sent first motor push information wherein the first motor push information includes the initial device identification; the first motor push information including the initial device identification is sent to the first rotating device.
  • the first motor push information sent by the first motor can be obtained through the first interface
  • the first motor push information sent by the first motor can be acquired through the second interface, where the first motor push information includes the initial device identifier of the first motor and the current state information of the first motor.
  • the rotating device includes a first rotating device or a second rotating device, the first rotating device is used to control the first motor, the second rotating device is used to control the second motor, and on this basis, the second motor is obtained.
  • the device sends the updated push information of the second motor.
  • the second motor push information sent by the second motor can be obtained through the first interface
  • the second motor push information sent by the second motor can be acquired through the second interface, where the second motor push information includes the initial device identifier of the second motor and the current state information of the second motor.
  • the device identification can be set according to the connection relationship between the motor and the interface, for example, the device identification corresponding to the motor connected with the first interface is set as the initial device identification, and the device identification corresponding to the motor connected with the second interface is set. Set to the virtual device ID.
  • the motor control instruction is sent to the motor connected to the first interface through the first interface, and if the device identifier in the motor control instruction is the same as the virtual device identifier, then The device identification in the motor control instruction is modified to the initial device identification to update the motor control instruction, and the updated motor control instruction is sent to the motor connected to the second interface through the second interface.
  • the motor push information is obtained through the first interface, the motor push information is sent to the rotating device, and if the motor push information is obtained through the second interface, the The initial device identifier in the motor push information is modified to a virtual device identifier, so as to update the motor push information, and send the updated second motor push information to the rotating device.
  • the communication network of the PTZ device includes two rotating devices, the corresponding relationship between the interface and the rotating device can be further established. For example, the motor push information obtained through the first interface is sent to the first rotating device, and the motor push information obtained through the second interface is sent to the second rotating device.
  • the motor push information is sent to the first rotating device, and if the motor push information is obtained through the second interface, the initial device identifier in the motor push information is modified to a virtual device identifier to update the motor push information, and send the updated second motor push information to the second rotating device.
  • the device identifier corresponding to the motor connected to the first interface may also be set as the virtual device identifier, and the device identifier corresponding to the motor connected to the second interface may be set as the initial device identifier.
  • the motor push information obtained through the first interface may also be sent to the second rotating device, and the motor push information obtained through the second interface may be sent to the first rotating device, which will not be repeated here.
  • the motor control method by acquiring the motor control command, if the device identifier in the motor control command is the same as the initial device ID of the motor, then send the motor control command to the first motor, if the device in the motor control command If the ID is the same as the virtual device ID of the motor, the device ID in the motor control instruction is modified to the initial device ID to update the motor control command, and the updated motor control command is sent to the second motor, so as to solve the problem of multiple motors at the same time.
  • the motor problem cannot be distinguished by the same device ID, improving user experience.
  • FIG. 5 is a schematic flowchart of steps of another motor control method provided by an embodiment of the present application.
  • the motor control method includes steps S201 to S202.
  • the first motor connected with the pan-tilt device can be connected with the shooting device to adjust the first shooting parameters of the shooting device
  • the second motor connected with the pan-tilt device can be connected with the shooting device to adjust the second shooting parameters of the shooting device .
  • the first motor is snap-connected with the zoom ring of the shooting device, so that when the first motor rotates, the zoom ring is driven to rotate to control the zoom parameters of the shooting device
  • the second motor is snap-connected with the follow focus ring of the shooting device, so that the first motor rotates
  • the second motor drives the follow focus ring to rotate to control the follow focus parameters of the photographing device.
  • the first motor is connected with the follow focus ring of the photographing device, so that when the first motor rotates, the follow focus ring is driven to rotate to control the follow focus parameters of the photographing device
  • the second motor is connected with the zoom ring of the photographing device by snap connection, When the second motor rotates, the zoom ring is driven to rotate to control the zoom parameters of the photographing device.
  • the control mode of the rotating device is the first control mode
  • the current value of the first shooting parameter of the shooting device is obtained
  • the control mode of the rotating device is In the second control mode
  • the current value of the second shooting parameter of the shooting device is acquired.
  • the current value of the first shooting parameter and/or the current value of the second shooting parameter of the shooting device is acquired.
  • the first preset value range is related to the limit value of the first shooting parameter, that is, the minimum value and the maximum value
  • the second preset value range is related to the limit value of the second shooting parameter, that is, the minimum value and the maximum value.
  • the first endpoint value of the first preset value range is greater than or equal to the minimum value of the first shooting parameter
  • the second endpoint value of the first preset value range is less than or equal to the maximum value of the first shooting parameter
  • the second preset value The first endpoint value of the range is greater than or equal to the minimum value of the second shooting parameter
  • the second endpoint value of the second preset value range is less than or equal to the maximum value of the second shooting parameter.
  • a rotating device when a rotating device is connected to the pan/tilt device, if the control mode of the rotating device is the first control mode, when the current value of the first shooting parameter is not within the first preset value range, the increase The rotation damping of the rotating device is increased, and if the control mode of the rotating device is the second control mode, when the current value of the second shooting parameter is not within the second preset value range, the rotation damping of the rotating device is increased.
  • the rotating device is connected with the damping adjusting device, so the rotational damping of the rotating device can be increased by controlling the damping adjusting device.
  • the damping adjustment device includes at least one of a gripping device and a reversing motor
  • the gripping device can be arranged on the rotating shaft or the transmission gear of the rotating device, so that the tightening device can increase the rotating shaft or the transmission gear of the rotating device.
  • the frictional force of the gear can increase the rotational damping of the rotating device.
  • the transmission gear of the reversing motor can be engaged with the transmission gear of the rotating device, so that the reversing motor can apply reverse resistance to the rotating device to increase the rotation. Rotational damping of the device.
  • the damping adjusting device By controlling the damping adjusting device to increase the rotational damping of the rotating device, the rotational damping of the rotating device can be adjusted accurately.
  • the current value of the first shooting parameter or the second shooting parameter of the shooting device is obtained at preset time intervals; if the current value of the first shooting parameter is not within the first preset value range, or if the second If the current value of the shooting parameter is not within the second preset value range, the rotation damping of the rotating device is increased.
  • the preset time may be set based on an actual situation, which is not specifically limited in this embodiment of the present application.
  • the current value of the shooting parameter is obtained by setting the interval, and when the current value of the shooting parameter is not within the set value range, the rotation damping of the rotating device is increased, so that the subsequent user can perceive the rotating damping when rotating the rotating device.
  • Increase the relationship between the current value of the shooting parameter and the limit value is known, so that when the current value of the shooting parameter reaches the limit value, the rotation of the rotating device is stopped, which can prevent damage to the shooting equipment and improve user experience.
  • the current value of the first shooting parameter or the second shooting parameter of the shooting device is obtained in response to the user's rotating operation of the rotating device; if the current value of the first shooting parameter is not within the first preset value range , or if the current value of the second shooting parameter is not within the second preset value range, increase the rotation damping of the rotation device.
  • the rotational damping of the rotating device is increased, so that the user can perceive the increase in the rotational damping of the rotating device and know that The relationship between the current value of the shooting parameter and the limit value, so that when the current value of the shooting parameter reaches the limit value, the rotation of the rotating device is stopped, which can prevent damage to the shooting equipment and improve user experience.
  • the rotation device includes a first rotation device or a second rotation device, and if the current value of the first shooting parameter is not within the first preset value range, the rotation damping of the first rotation device is increased, and If the current value of the second shooting parameter is not within the second preset value range, the rotation damping of the second rotation device is increased.
  • the first rotating device is connected to the first damping adjusting device, and the second rotating device is connected to the second damping adjusting device. Therefore, the rotational damping of the first rotating device can be increased by controlling the first damping adjusting device, and the second rotating device can be controlled.
  • a damping adjusting device is used to increase the rotational damping of the second rotating device, the first damping adjusting device includes at least one of a gripping device and a reversing motor, and the second damping adjusting device includes at least one of a gripping device and a reversing motor item.
  • the way to increase the rotational damping of the rotating device may be: determining the difference between the current value of the first shooting parameter and the end value of the first preset value range, or the current value of the second shooting parameter and the first shooting parameter.
  • the difference between the end values of the two preset numerical ranges is to obtain the feedback control amount; according to the feedback control amount and the preset feedback coefficient, the rotation damping of the rotating device is increased.
  • the preset feedback coefficient is related to the value range of the first shooting parameter or the second shooting parameter. The larger the value range of the first shooting parameter or the second shooting parameter is, the smaller the preset feedback coefficient is.
  • the smaller the control amount the smaller the rotational damping of the rotating device.
  • Different shooting devices may have different value ranges of shooting parameters. By increasing the rotation damping of the rotating device according to the feedback control amount and the preset feedback coefficient, different shooting devices can correspond to the normalized rotating device. Operation feel.
  • the determination method of the feedback control amount may be: determining the first difference between the current value of the first shooting parameter and the first endpoint value of the first preset value range, and determining the first shooting parameter.
  • the second difference between the current value of , and the second endpoint value of the first preset value range; the smaller one of the absolute value of the first difference and the absolute value of the second difference is used as the feedback control amount. For example, if the current value of the first shooting parameter is 80, and the preset value range of the first shooting parameter is 20 to 75, the first endpoint value is 20, and the second endpoint value is 75. Therefore, the absolute value of the first difference If the value is 60 and the absolute value of the second difference is 5, the absolute value of the second difference is 5 as the feedback control amount.
  • the current value of the first shooting parameter is 15, and the preset value of the first shooting parameter The range is 20 to 75, then the first endpoint value is 20 and the second endpoint value is 75. Therefore, the absolute value of the first difference value is 5 and the absolute value of the second difference value is 60, then the first difference value is The absolute value of 5 is used as the feedback control amount.
  • the rotating device is connected to the damping adjusting device, and the way of increasing the rotational damping of the rotating device according to the feedback control amount and the preset feedback coefficient may be: determining the damping according to the feedback control amount and the preset feedback coefficient.
  • Adjust the operating parameters of the device that is, determine the product of the feedback control amount and the preset feedback coefficient, and use the product of the feedback control amount and the preset feedback coefficient as the operating parameter of the damping adjusting device; control the damping adjusting device to operate according to the operating parameter , to increase the rotational damping of the rotating device.
  • the feedback control amount can be converted into an operating parameter of the damping adjusting device through the feedback control amount and the preset feedback coefficient, so that the damping adjusting device operates based on the operating parameter to increase the rotational damping of the rotating device.
  • the rotation damping of the rotating device is increased if the current value of the first shooting parameter is not within the first preset value range, and the current value of the first shooting parameter does not reach the limit value of the first shooting parameter. Or if the current value of the second shooting parameter is not within the second preset value range, and the current value of the second shooting parameter does not reach the limit value of the second shooting parameter, the rotation damping of the rotating device is increased.
  • the rotation damping of the rotating device is increased to feedback the relationship between the current value of the shooting parameter and the limit value , it is convenient for the user to operate the rotating device, and when the current value of the shooting parameters reaches the limit value, the rotating device can be stopped from rotating, which can prevent the damage of the shooting equipment.
  • the rotating device if the current value of the first shooting parameter is not within the first preset value range, and the current value of the first shooting parameter reaches the limit value of the first shooting parameter, the rotating device is locked; If the current value of the shooting parameter is not within the second preset value range, and the current value of the second shooting parameter reaches the limit value of the second shooting parameter, the rotating device is locked. Wherein, the locked rotating device does not rotate with the user's operation. When the current value of the shooting parameter reaches the limit value of the shooting parameter, the rotating device is locked so that the rotating device does not rotate with the user's operation, which can prevent damage to the shooting equipment and improve user experience.
  • the preset feedback reminder text if the current value of the first shooting parameter is not within the first preset value range, or the current value of the second shooting parameter is not within the second preset value range, the preset feedback reminder text, Play preset feedback alert tones, control preset indicator light operation, and/or control rotating device vibration.
  • the preset feedback reminder text and the preset feedback reminder sound are used to remind the user of the relationship between the current value of the shooting parameter and the limit value of the shooting parameter, and the preset feedback reminder text and the preset feedback reminder sound can be set based on the actual situation , which is not specifically limited in the embodiments of the present application.
  • the manner of displaying the preset feedback reminder text may be: controlling the photographing device to display the preset feedback reminder text; and/or controlling the display screen on the rotating device to display the preset feedback reminder text.
  • controlling the display screen on the shooting device and/or the rotating device to display the preset feedback reminder text the user can be reminded of the relationship between the current value of the shooting parameter and the limit value of the shooting parameter, which is convenient for the user to operate the rotating device, and can be used in the shooting parameter.
  • the current value reaches the limit value, the rotation of the rotating device is stopped, which can prevent damage to the photographing equipment and improve user experience.
  • the manner of broadcasting the preset feedback reminder sound may be: controlling the photographing device to broadcast the preset feedback reminder sound; and/or controlling the rotating device to broadcast the preset feedback reminder sound.
  • controlling the shooting device and/or the rotating device to broadcast the preset feedback reminder sound the user can be reminded of the relationship between the current value of the shooting parameter and the limit value of the shooting parameter, which is convenient for the user to operate the rotating device, and can be used when the current value of the shooting parameter reaches the limit.
  • stop rotating the rotating device which can prevent damage to the shooting equipment and improve user experience.
  • the mode of controlling the operation of the preset indicator light may be: controlling the operation of the preset indicator light provided on the photographing device; and/or, controlling the operation of the preset indicator light provided on the rotating device to remind the user The relationship between the current value of the shooting parameter and the limit value of the shooting parameter.
  • controlling the operation of the preset indicator light the user can be reminded of the relationship between the current value of the shooting parameter and the limit value of the shooting parameter, which is convenient for the user to operate the rotating device, and can stop rotating the rotating device when the current value of the shooting parameter reaches the limit value. , which can prevent damage to the shooting equipment and improve the user experience.
  • the mode of controlling the operation of the preset indicator light may also be: determining the difference between the current value of the first shooting parameter and the end value of the first preset value range, or the current value of the second shooting parameter and the first shooting parameter.
  • the difference between the end values of the two preset numerical ranges is the feedback control quantity; the target flashing mode of the preset indicator light is determined according to the value range of the feedback control quantity; the preset indicator light is controlled to flash according to the target flashing mode.
  • the mapping relationship between the value range of the feedback control variable and the flashing mode of the preset indicator light can be based on the actual situation set, which is not specifically limited in this embodiment of the present application.
  • the mode of controlling the vibration of the rotating device may be: determining the difference between the current value of the first shooting parameter and the end value of the first preset value range, or the current value of the second shooting parameter and the second preset value.
  • the difference between the end values of the numerical range is used to obtain the feedback control amount; according to the feedback control amount and the preset feedback coefficient, the vibrator in the rotating device is controlled to operate to make the rotating device vibrate, that is, the product of the feedback control amount and the preset feedback coefficient is determined.
  • the product of the feedback control amount and the preset feedback coefficient is used as the operating parameter of the vibrator, and the operation of the vibrator in the rotating device is controlled based on the operating parameter, so that the rotating device vibrates.
  • the feedback control amount is positively correlated with the vibration intensity of the rotating device, that is, the larger the feedback control amount, the stronger the vibration intensity of the rotating device, and the smaller the feedback control amount, the weaker the vibration intensity of the rotating device.
  • the rotation damping of the rotating device is increased. , and control the vibration of the rotating device.
  • the user can be reminded of the relationship between the current value of the shooting parameter and the limit value of the shooting parameter, which is convenient for the user to operate the rotating device, and can be used when the current value of the shooting parameter reaches the limit value. , stop rotating the rotating device, which can prevent damage to the shooting equipment and improve user experience.
  • the operation feedback method of the rotating device provided by the above-mentioned embodiment, by acquiring the current value of the first shooting parameter or the second shooting parameter of the shooting device, if the current value of the first shooting parameter is not within the first preset value range, or the first shooting parameter If the current value of the second shooting parameter is not within the second preset value range, the rotation damping of the rotating device is increased, so that when the user rotates the rotating device, the rotating device can feedback the difference between the current value of the shooting parameter and the limit value. relationship, it is convenient for the user to perceive whether the shooting parameters of the shooting device reach the limit value, which greatly improves the user experience.
  • the embodiment of the present application further provides a control device, the control device is used to control the first motor or the second motor, the initial device identifiers of the first motor and the second motor are the same, and the virtual device identifier set for the second motor is the same as the initial device identifier. Device IDs are different. Please refer to FIG. 6 .
  • FIG. 6 is a schematic structural block diagram of a control apparatus provided by an embodiment of the present application.
  • the control device 300 includes one or more processors 301 and a memory 302, and the one or more processors 301 and the memory 302 are connected through a bus 303, such as an I2C (Inter-integrated Circuit) bus .
  • a bus 303 such as an I2C (Inter-integrated Circuit) bus .
  • processors 301 may be a micro-controller unit (Micro-controller Unit, MCU), a central processing unit (Central Processing Unit, CPU), or a digital signal processor (Digital Signal Processor, DSP), etc.
  • MCU Micro-controller Unit
  • CPU Central Processing Unit
  • DSP Digital Signal Processor
  • the memory 302 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) magnetic disk, an optical disk, a U disk, a mobile hard disk, and the like.
  • ROM Read-Only Memory
  • the memory 302 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) magnetic disk, an optical disk, a U disk, a mobile hard disk, and the like.
  • the processor 301 is used for running the computer program stored in the memory 302, and implements the following steps when executing the computer program:
  • the motor control instruction includes a device identifier, and the device identifier is used to distinguish the recipient of the motor control instruction, and the recipient is the first motor or the second motor;
  • the device identifier in the motor control instruction is the same as the virtual device identifier, modify the device identifier in the motor control instruction to the initial device identifier, so as to update the motor control instruction, and report to the first
  • the second motor sends the updated motor control command.
  • the first motor can be connected to the gimbal device through a first interface
  • the second motor can be connected to the gimbal device through a second interface
  • the sending the motor control command to the first motor includes:
  • the sending the updated motor control instruction to the second motor includes:
  • the motor control instruction is generated based on a user's operation on a rotating device, and the rotating device is connected to the PTZ device in a wired or wireless manner.
  • the rotating device includes a first rotating device or a second rotating device, the first rotating device is used to control the first motor, and the second rotating device is used to control the second motor .
  • the motor control instruction is generated based on a user's operation on the first rotating device, and the device identification in the motor control instruction is the same as the initial device identification.
  • the motor control instruction is generated based on a user's operation on the second rotating device, and the device identifier in the motor control instruction is the same as the virtual device identifier.
  • the one or more processors are further configured to implement the following steps:
  • the one or more processors are further configured to implement the following steps:
  • the rotating device has a first control mode and a second control mode. In the first control mode, the rotating device is used to control the first motor, and in the second control mode Next, the rotating device is used to control the second motor.
  • the motor control instruction is generated based on a user's operation of the rotating device in the first control mode, and the device identifier in the motor control instruction is the same as the initial device identifier.
  • the motor control instruction is generated based on a user's operation on the rotating device in the second control mode, and the device identifier in the motor control instruction is the same as the virtual device identifier.
  • the one or more processors are further configured to implement the following steps:
  • the one or more processors are further configured to implement the following steps:
  • the first motor can be connected to a photographing device to adjust a first photographing parameter of the photographing device
  • the second motor can be connected to the photographing device to adjust a second photographing of the photographing device parameter
  • the one or more processors are further configured to implement the following steps:
  • the first preset value range is related to the minimum value and the maximum value of the first shooting parameter
  • the second preset value range is related to the minimum value and the maximum value of the second shooting parameter. related.
  • FIG. 7 is a schematic structural block diagram of a photographing system provided by an embodiment of the present application.
  • the shooting system 400 includes a pan-tilt device 410 , a shooting device 420 mounted on the pan-tilt device 410 , a rotation device 430 , a control device 440 as provided in any of the descriptions of the present application, and a pan-tilt device 420 .
  • the first motor 450 and the second motor 460 are connected.
  • the first motor 450 can be connected to the photographing device 420 to adjust the first photographing parameters of the photographing device 420
  • the second motor 460 can be connected to the photographing device 420 to adjust the second photographing parameters of the photographing device 420 .
  • the pan-tilt device 410 includes a handle portion, and the rotating device 430 is disposed on the handle portion and is electrically connected to the pan-tilt device 410 . It can be understood that, the rotating device 430 can also be connected to the PTZ device 410 in a wireless manner.
  • the pan/tilt device 410 may be connected to the photographing device 420 through a control line to adjust the photographing parameters of the photographing device 420 mounted on the pan/tilt 102 .
  • the control wire may be a shutter wire, and the type of the shutter wire is not limited here, for example, the shutter wire may be a Universal Serial Bus (Universal Serial Bus, USB).
  • Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program includes program instructions, and the processor executes the program instructions to realize the provision of the above embodiments.
  • the steps of the motor control method are described in detail below.
  • the computer-readable storage medium may be an internal storage unit of the control apparatus or the PTZ device described in any of the foregoing embodiments, for example, a hard disk or memory of the control apparatus or the PTZ device.
  • the computer-readable storage medium may also be an external storage device of the control device or the PTZ device, for example, a plug-in hard disk, a smart memory card (Smart Media Card, SMC) equipped on the control device or the PTZ device. , Secure Digital (SD) card, flash memory card (Flash Card), etc.
  • SD Secure Digital
  • flash memory card Flash Card

Abstract

An electric motor control method, apparatus (300) and system (400), and a computer-readable storage medium. The method comprises: acquiring an electric motor control instruction, wherein the electric motor control instruction comprises a device identifier (S101); if the device identifier is the same as an initial device identifier, sending the electric motor control instruction to a first electric motor (30, 450) (S102); and if the device identifier is the same as a virtual device identifier, modifying the device identifier in the electric motor control instruction to be the initial device identifier, and then sending the electric motor control instruction to a second electric motor (40, 460) (S103).

Description

电机控制方法、装置、系统及计算机可读存储介质Motor control method, apparatus, system, and computer-readable storage medium 技术领域technical field
本申请涉及电机控制技术领域,尤其涉及一种电机控制方法、装置、系统及计算机可读存储介质。The present application relates to the technical field of motor control, and in particular, to a motor control method, device, system, and computer-readable storage medium.
背景技术Background technique
随着人们生活水平的提高,人们经常使用单反相机、数码相机和智能手机等拍摄设备拍摄记录日常生活和旅游过程中的风景等,人们在使用拍摄设备拍摄时,可以通过对拨轮的转动来控制外接于云台设备的电机转动,从而调整搭载于云台设备上的拍摄设备焦距或焦平面距离等拍摄参数。目前,为兼容各代云台设备,每个批次的电机的软硬件都完全相同,因此每个批次的电机都具备完全相同的设备标识,而当多个电机同时外接于云台设备时,云台设备的通信网络中存在多个相同的设备标识。如此,则无法通过相同的设备标识来区分电机,难以满足用户对多个电机的控制需求,用户体验不好。With the improvement of people's living standards, people often use shooting devices such as SLR cameras, digital cameras and smart phones to shoot and record the scenery in daily life and travel. Control the rotation of the motor externally connected to the gimbal device, so as to adjust the shooting parameters such as the focal length or focal plane distance of the shooting device mounted on the gimbal device. At present, in order to be compatible with various generations of gimbal devices, the software and hardware of each batch of motors are identical, so each batch of motors has the exact same device identification, and when multiple motors are connected to the gimbal device at the same time , there are multiple identical device IDs in the communication network of the PTZ device. In this way, it is impossible to distinguish the motors by the same device identification, it is difficult to meet the user's control requirements for multiple motors, and the user experience is not good.
发明内容SUMMARY OF THE INVENTION
基于此,本申请实施例提供了一种电机控制方法、装置、系统及计算机可读存储介质,旨在解决多个电机同时外接于云台设备时,对于通信网络中的其他设备节点,无法通过相同的设备标识来区分电机的问题。Based on this, the embodiments of the present application provide a motor control method, device, system, and computer-readable storage medium, aiming to solve the problem that when multiple motors are externally connected to a PTZ device at the same time, other device nodes in the communication network cannot pass the The same device ID is used to distinguish motor problems.
第一方面,本申请实施例提供了一种电机控制方法,所述电机包括第一电机或第二电机,所述第一电机和所述第二电机的初始设备标识相同,为所述第二电机设置的虚拟设备标识与所述初始设备标识不同,所述方法包括:In a first aspect, an embodiment of the present application provides a motor control method, the motor includes a first motor or a second motor, and the first motor and the second motor have the same initial device identifier, which is the second motor. The virtual device identification set by the motor is different from the initial device identification, and the method includes:
获取电机控制指令,所述电机控制指令包括设备标识,所述设备标识用于区分所述电机控制指令的接收方,所述接收方为所述第一电机或所述第二电机;acquiring a motor control instruction, where the motor control instruction includes a device identifier, and the device identifier is used to distinguish the recipient of the motor control instruction, and the recipient is the first motor or the second motor;
若所述电机控制指令中的设备标识与所述初始设备标识相同,则向所述第一电机发送所述电机控制指令;If the device identifier in the motor control instruction is the same as the initial device identifier, send the motor control instruction to the first motor;
若所述电机控制指令中的设备标识与所述虚拟设备标识相同,则将所述电机控制指令中的设备标识修改为所述初始设备标识,以更新所述电机控制指令,并向所述第二电机发送更新后的所述电机控制指令。If the device identifier in the motor control instruction is the same as the virtual device identifier, modify the device identifier in the motor control instruction to the initial device identifier, so as to update the motor control instruction, and report to the first The second motor sends the updated motor control command.
第二方面,本申请实施例还提供了一种控制装置,所述控制装置用于控制 第一电机或第二电机,所述第一电机和所述第二电机的初始设备标识相同,为所述第二电机设置的虚拟设备标识与所述初始设备标识不同;In a second aspect, an embodiment of the present application further provides a control device, where the control device is used to control a first motor or a second motor, and the first motor and the second motor have the same initial device identification, which is the same as the first motor and the second motor. The virtual device identification set by the second motor is different from the initial device identification;
所述控制装置包括存储器和一个或多个处理器;the control device includes a memory and one or more processors;
所述存储器,用于存储计算机程序;the memory for storing computer programs;
所述一个或多个处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现如本申请实施例提供的任一项所述的电机控制方法的步骤。The one or more processors are configured to execute the computer program, and when executing the computer program, implement the steps of the motor control method according to any one of the embodiments of the present application.
第三方面,本申请实施例还提供了一种拍摄系统,所述拍摄系统包括云台设备、搭载于所述云台设备上的拍摄设备、转动装置、如上所述的控制装置以及与所述云台设备连接的第一电机和第二电机。In a third aspect, an embodiment of the present application further provides a shooting system, the shooting system includes a pan-tilt device, a shooting device mounted on the pan-tilt device, a rotation device, the above-mentioned control device, and the The first motor and the second motor connected to the gimbal device.
第四方面,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如本申请说明书提供的任一项所述的电机控制方法的步骤。In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the method described in the present application. Provide any one of the steps of the motor control method.
本申请实施例提供了一种电机控制方法、装置、系统及计算机可读存储介质,通过获取电机控制指令,如果该电机控制指令中的设备标识与电机的初始设备标识相同,则向第一电机发送电机控制指令,如果该电机控制指令中的设备标识与电机的虚拟设备标识相同,则将电机控制指令中的设备标识修改为初始设备标识,以更新电机控制指令,并向第二电机发送更新后的电机控制指令,从而能够解决多个电机同时外接于云台设备时,对于通信网络中的其他设备节点,无法通过相同的设备标识来区分电机的问题,提高用户体验。The embodiments of the present application provide a motor control method, device, system, and computer-readable storage medium. By acquiring a motor control instruction, if the device identifier in the motor control instruction is the same as the initial device identifier of the motor, the first motor is sent to the first motor. Send a motor control command, if the device ID in the motor control command is the same as the virtual device ID of the motor, modify the device ID in the motor control command to the initial device ID to update the motor control command, and send the update to the second motor Therefore, when multiple motors are connected to the gimbal device at the same time, other device nodes in the communication network cannot be distinguished by the same device ID, which improves the user experience.
应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本申请。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not limiting of the present application.
附图说明Description of drawings
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. For those of ordinary skill, other drawings can also be obtained from these drawings without any creative effort.
图1是实施本申请实施例提供的电机控制方法的云台设备的结构示意图;FIG. 1 is a schematic structural diagram of a pan/tilt device implementing the motor control method provided by an embodiment of the present application;
图2是本申请实施例中云台设备、第一电机、第二电机和转动装置的连接示意图;Fig. 2 is the connection schematic diagram of the pan/tilt device, the first motor, the second motor and the rotating device in the embodiment of the present application;
图3是本申请实施例中云台设备、第一电机、第二电机、第一转动装置和第二转动装置的连接示意图;3 is a schematic diagram of the connection of the pan/tilt device, the first motor, the second motor, the first rotating device and the second rotating device in the embodiment of the present application;
图4是本申请实施例提供的一种电机控制方法的步骤示意流程图;4 is a schematic flowchart of steps of a motor control method provided by an embodiment of the present application;
图5是本申请实施例提供的另一种电机控制方法的步骤示意流程图;5 is a schematic flowchart of steps of another motor control method provided by an embodiment of the present application;
图6是本申请实施例提供的一种控制装置的结构示意性框图;FIG. 6 is a schematic block diagram of the structure of a control device provided by an embodiment of the present application;
图7是本申请实施例提供的一种拍摄系统的结构示意性框图。FIG. 7 is a schematic structural block diagram of a photographing system provided by an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowcharts shown in the figures are for illustration only, and do not necessarily include all contents and operations/steps, nor do they have to be performed in the order described. For example, some operations/steps can also be decomposed, combined or partially combined, so the actual execution order may be changed according to the actual situation.
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Some embodiments of the present application will be described in detail below with reference to the accompanying drawings. The embodiments described below and features in the embodiments may be combined with each other without conflict.
随着人们生活水平的提高,人们经常使用单反相机、数码相机和智能手机等拍摄设备拍摄记录日常生活和旅游过程中的风景等,人们在使用拍摄设备拍摄时,可以通过对拨轮的转动来控制外接于云台设备的电机转动,从而调整搭载于云台设备上的拍摄设备焦距或焦平面距离等拍摄参数。With the improvement of people's living standards, people often use shooting devices such as SLR cameras, digital cameras and smart phones to shoot and record the scenery in daily life and travel. Control the rotation of the motor externally connected to the gimbal device, so as to adjust the shooting parameters such as the focal length or focal plane distance of the shooting device mounted on the gimbal device.
在云台设备的通信网络中,使用设备标识区分接入网络的各个设备,具体可以分为对应于发送方的设备标识和对应于接收方的设备标识。对某一设备而言,其所发送的数据包中的设备标识即为自身的设备标识,且其只接收数据包中设备标识为自身设备标识的数据包。目前,为兼容各代云台设备,每个批次的电机的软硬件都完全相同,因此每个批次的电机都具备完全相同的设备标识,而当多个电机同时外接于云台设备时,云台设备的通信网络中存在多个相同的设备标识,对于通信网络中的其他设备节点,例如拨轮,无法通过相同的设备标识来区分电机,难以满足用户对多个电机的控制需求,用户体验不好。In the communication network of the PTZ device, the device identifiers are used to distinguish each device accessing the network, which can be specifically divided into device identifiers corresponding to the sender and device identifiers corresponding to the receiver. For a certain device, the device identification in the data packet sent by it is its own device identification, and it only receives data packets whose device identification is its own device identification in the data packet. At present, in order to be compatible with various generations of gimbal devices, the software and hardware of each batch of motors are identical, so each batch of motors has the exact same device identification, and when multiple motors are connected to the gimbal device at the same time , there are multiple identical device IDs in the communication network of the PTZ device. For other device nodes in the communication network, such as the dial, the motors cannot be distinguished by the same device IDs, and it is difficult to meet the user's control requirements for multiple motors. Bad user experience.
为解决上述问题,本申请实施例提供一种电机控制方法、装置、系统及计算机可读存储介质,该电机控制方法可以应用于控制装置,该控制装置用于控制与拍摄设备连接的第一电机或第二电机,使得第一电机能够调整拍摄设备的第一拍摄参数,第二电机能够调整拍摄设备的第二拍摄参数,第一电机和第二电机的初始设备标识相同,第一电机和第二电机接入控制装置时,为第二电机 设置虚拟设备标识,且为第二电机设置的虚拟设备标识与初始设备标识不同,使得对于通信网络中的第一转动装置或第二转动装置能够基于初始设备标识和虚拟设备标识区分第一电机和第二电机,便于用户通过第一转动装置或第二转动装置对两个电机的控制,提高用户体验。In order to solve the above problems, embodiments of the present application provide a motor control method, device, system, and computer-readable storage medium. The motor control method can be applied to a control device, and the control device is used to control a first motor connected to a photographing device. Or the second motor, so that the first motor can adjust the first shooting parameters of the shooting device, the second motor can adjust the second shooting parameters of the shooting device, the initial device identifiers of the first motor and the second motor are the same, the first motor and the When the two motors are connected to the control device, a virtual device identifier is set for the second motor, and the virtual device identifier set for the second motor is different from the initial device identifier, so that the first rotating device or the second rotating device in the communication network can be based on The initial device identification and the virtual device identification distinguish the first motor and the second motor, which facilitates the user to control the two motors through the first rotating device or the second rotating device, and improves user experience.
在一实施例中,该控制装置可以应用于云台设备,也可以应用于拍摄设备。请参照图1,图1是实施本申请实施例提供的电机控制方法的云台设备的结构示意图。如图1所示,该云台设备100包括手柄部101和设于手柄部101上的云台102。云台102用于搭载拍摄设备,可以理解的是,拍摄设备可以与云台102一体设置,拍摄设备为智能手机,当然也可以为其他摄像设备,例如单反相机。In one embodiment, the control apparatus may be applied to a pan/tilt device or a photographing device. Please refer to FIG. 1 . FIG. 1 is a schematic structural diagram of a pan/tilt device implementing the motor control method provided by the embodiment of the present application. As shown in FIG. 1 , the pan/tilt device 100 includes a handle portion 101 and a pan/tilt head 102 disposed on the handle portion 101 . The gimbal 102 is used for carrying a photographing device. It can be understood that the photographing device can be integrated with the gimbal 102 , and the photographing device is a smartphone, and of course other photographing devices, such as a single-lens reflex camera.
其中,云台102包括三轴电机,分别为俯仰(pitch)轴电机1021、横滚(roll)轴电机1022和平移(yaw)轴电机1023,用于调整搭载于云台102上的拍摄设备的平衡姿态,以便随时随地拍摄出高精度的稳定画面。The pan/tilt 102 includes three-axis motors, which are a pitch (pitch) axis motor 1021, a roll (roll) axis motor 1022 and a yaw (yaw) axis motor 1023, which are used to adjust the motion of the photographing device mounted on the pan/tilt 102. Balance your stance for high-precision, stable shots anytime, anywhere.
其中,云台102上设置有惯性测量单元(Inertial measurement unit,IMU),例如包括加速度计或陀螺仪中的至少一种,可以用于测量云台102的姿态和加速度等,以便根据姿态调整云台102的姿态。在一实施例中,手柄部101上也设置有惯性测量单元(Inertial measurement unit,IMU),例如包括加速度计或陀螺仪中的至少一种,可以用于测量手柄部101的姿态和加速度等,以便根据手柄部101的姿态和云台102的姿态调整云台102的姿态。Wherein, the PTZ 102 is provided with an inertial measurement unit (Inertial measurement unit, IMU), for example, including at least one of an accelerometer or a gyroscope, which can be used to measure the attitude and acceleration of the PTZ 102, so as to adjust the cloud according to the attitude The attitude of the stage 102 . In one embodiment, the handle portion 101 is also provided with an inertial measurement unit (Inertial measurement unit, IMU), for example including at least one of an accelerometer or a gyroscope, which can be used to measure the attitude and acceleration of the handle portion 101, etc., In order to adjust the posture of the pan/tilt head 102 according to the posture of the handle part 101 and the posture of the pan/tilt head 102 .
其中,手柄部101上还设有操作控键,以便用户操作该操作控键以控制云台102或搭载于云台102上的拍摄设备。该操作控键可例如为按键、扳机、旋钮或者摇杆等,当然也包括其他形式的物理按键。比如,摇杆可以用于控制三个转轴的运动,进而控制云台102的运动。可以理解的是,摇杆也可以用于其他功能,用户通过该操作控键也可以选择转动装置能够调整的拍摄参数,使得后续云台设备能够响应于用户对转动装置的转动操作,以控制拍摄设备对拍摄参数进行调整。The handle portion 101 is further provided with an operation control key, so that the user can operate the operation control key to control the pan/tilt 102 or the photographing device mounted on the pan/tilt 102 . The operation control key may be, for example, a key, a trigger, a knob or a rocker, etc., of course, other forms of physical keys are also included. For example, the joystick can be used to control the movement of the three rotation axes, and then control the movement of the gimbal 102 . It can be understood that the joystick can also be used for other functions, and the user can also select the shooting parameters that can be adjusted by the rotating device through the operation control key, so that the subsequent PTZ device can respond to the user's rotating operation on the rotating device to control the shooting. The device adjusts the shooting parameters.
在一实施例中,云台设备100能够与第一电机、第二电机和转动装置连接,云台设备100与转动装置之间的连接可以为有线连接,也可以为无线连接,该转动装置用于控制与拍摄设备连接的第一电机或第二电机,以调整拍摄设备的第一拍摄参数或第二拍摄参数。例如,第一电机与拍摄设备的变焦环卡合连接,使得第一电机转动时带动变焦环转动以控制该拍摄设备的变焦参数,第二电机与拍摄设备的跟焦环卡合连接,使得第二电机转动时带动跟焦环转动以控制该 拍摄设备的跟焦参数,第一电机或第二电机还可以与拍摄设备的光圈环等卡合连接,以控制设备的其余拍摄参数。In one embodiment, the pan-tilt device 100 can be connected with the first motor, the second motor and the rotating device, and the connection between the pan-tilt device 100 and the rotating device can be wired or wireless. It is used to control the first motor or the second motor connected with the shooting device to adjust the first shooting parameter or the second shooting parameter of the shooting device. For example, the first motor is snap-connected with the zoom ring of the shooting device, so that when the first motor rotates, the zoom ring is driven to rotate to control the zoom parameters of the shooting device, and the second motor is snap-connected with the follow focus ring of the shooting device, so that the first motor rotates When the second motor rotates, it drives the follow focus ring to rotate to control the follow focus parameters of the shooting device. The first motor or the second motor can also be connected with the aperture ring of the shooting device to control other shooting parameters of the device.
可选地,云台设备100可以通过控制线与拍摄设备连接,以调节搭载于云台102上的拍摄设备的拍摄参数。该控制线可以为快门线,此处不限定快门线的种类,例如,该快门线可以是通用串行总线(Universal Serial Bus,USB)。Optionally, the pan-tilt device 100 may be connected to the photographing device through a control line, so as to adjust the shooting parameters of the photographing device mounted on the pan-tilt 102 . The control wire may be a shutter wire, and the type of the shutter wire is not limited here, for example, the shutter wire may be a Universal Serial Bus (Universal Serial Bus, USB).
请参照图2,图2是本申请实施例中云台设备、第一电机、第二电机和转动装置的连接示意图。如图2所示,云台设备包括第一接口10和第二接口20,第一电机30通过第一接口10连接于云台设备100,第二电机40通过第二接口20连接于云台设备100,转动装置50通过有线的方式与云台设备100连接,使得转动装置50能够控制第一电机30调整拍摄设备的第一拍摄参数,或者控制第二电机40调整拍摄设备的第二拍摄参数。Please refer to FIG. 2 . FIG. 2 is a schematic diagram of the connection of the pan/tilt device, the first motor, the second motor and the rotating device in the embodiment of the present application. As shown in FIG. 2 , the PTZ device includes a first interface 10 and a second interface 20 , the first motor 30 is connected to the PTZ device 100 through the first interface 10 , and the second motor 40 is connected to the PTZ device through the second interface 20 . 100. The rotating device 50 is connected to the pan/tilt device 100 by wire, so that the rotating device 50 can control the first motor 30 to adjust the first shooting parameter of the shooting device, or control the second motor 40 to adjust the second shooting parameter of the shooting device.
在一实施例中,转动装置50的控制模式包括第一控制模式和第二控制模式,用户可以自行切换转动装置50的控制模式。当转动装置50处于第一控制模式时,转动装置50用于控制第一电机30整拍摄设备的第一拍摄参数,当转动装置50处于第二控制模式时,转动装置50用于控制第二电机40调整拍摄设备的第二拍摄参数。其中,用户可以通过手柄部101上的操作按键切换转动装置50的控制模式,也可以通过手柄部101上的显示装置切换转动装置50的控制模式。In one embodiment, the control mode of the rotating device 50 includes a first control mode and a second control mode, and the user can switch the control mode of the rotating device 50 by himself. When the rotating device 50 is in the first control mode, the rotating device 50 is used to control the first motor 30 to set the first shooting parameters of the shooting device, and when the rotating device 50 is in the second control mode, the rotating device 50 is used to control the second motor 40 Adjust the second shooting parameter of the shooting device. The user can switch the control mode of the rotating device 50 through the operation buttons on the handle part 101 , and can also switch the control mode of the rotating device 50 through the display device on the handle part 101 .
如图3所示,云台设备100包括第一接口10和第二接口20,第一电机30通过第一接口10连接于云台设备100,第二电机40通过第二接口20连接于云台设备100,第一转动装置51和第二转动装置52通过有线的方式与云台设备100连接,当然第一转动装置51和第二转动装置52也可以通过无线的方式与云台设备100连接,例如,第一转动装置51通过有线的方式与云台设备100连接、第二转动装置52通过无线的方式与云台设备100连接,使得第一转动装置51能够控制第一电机30调整拍摄设备的第一拍摄参数,第二转动装置52能够控制第二电机40调整拍摄设备的第二拍摄参数,或者,使得第一转动装置51能够控制第二电机40调整拍摄设备的第二拍摄参数,第二转动装置52能够控制第一电机30调整拍摄设备的第一拍摄参数。As shown in FIG. 3 , the gimbal device 100 includes a first interface 10 and a second interface 20 , the first motor 30 is connected to the gimbal device 100 through the first interface 10 , and the second motor 40 is connected to the gimbal through the second interface 20 The device 100, the first rotating device 51 and the second rotating device 52 are connected to the pan-tilt device 100 by wired means. Of course, the first rotating device 51 and the second rotating device 52 can also be connected to the pan-tilt device 100 by wireless means. For example, the first rotating device 51 is connected to the pan-tilt device 100 in a wired way, and the second rotating device 52 is connected to the pan-tilt device 100 in a wireless way, so that the first rotating device 51 can control the first motor 30 to adjust the shooting device. For the first shooting parameter, the second rotating device 52 can control the second motor 40 to adjust the second shooting parameter of the shooting device, or the first rotating device 51 can control the second motor 40 to adjust the second shooting parameter of the shooting device. The rotating device 52 can control the first motor 30 to adjust the first shooting parameters of the shooting device.
其中,云台设备100包括处理器,处理器用于对输入的控制指令进行处理,或者收发信号等。处理器可以设置在手柄部101的内部。可选地,该处理器可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(Field- Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。Wherein, the pan-tilt device 100 includes a processor, and the processor is used for processing input control instructions, or sending and receiving signals. The processor may be provided inside the handle portion 101 . Optionally, the processor may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (application specific integrated circuits) circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
可以理解的,图1、图2和图3中的云台设备以及上述对于云台设备各部件的命名仅仅出于标识的目的,并不因此对本申请实施例进行限制。It can be understood that the pan-tilt device in FIG. 1 , FIG. 2 , and FIG. 3 and the above naming of the components of the pan-tilt device are only for the purpose of identification, and therefore do not limit the embodiments of the present application.
请参阅图4,图4是本申请实施例提供的一种电机控制方法的步骤示意流程图。Please refer to FIG. 4 , which is a schematic flowchart of steps of a motor control method provided by an embodiment of the present application.
如图4所示,该电机控制方法包括步骤S101至步骤S103。As shown in FIG. 4 , the motor control method includes steps S101 to S103.
S101、获取电机控制指令,所述电机控制指令包括设备标识,所述设备标识用于区分所述电机控制指令的接收方,所述接收方为所述第一电机或所述第二电机。S101. Acquire a motor control instruction, where the motor control instruction includes a device identifier, and the device identifier is used to distinguish a recipient of the motor control instruction, and the recipient is the first motor or the second motor.
其中,第一电机和第二电机的初始设备标识相同,当第一电机和第二电机与云台设备连接时,为第二电机设置虚拟设备标识,或者为第一电机设置虚拟设备标识,初始设备标识与虚拟设备标识不同,使得与云台设备连接的转动装置能够通过初始设备标识和虚拟设备标识区分第一电机和第二电机,以控制第一电机或者第二电机调整拍摄设备的第一拍摄参数或第二拍摄参数,第一拍摄参数包括跟焦参数、变焦参数和曝光参数中的任一项,第二拍摄参数包括跟焦参数、变焦参数和曝光参数中的任一项。The initial device identifiers of the first motor and the second motor are the same. When the first motor and the second motor are connected to the PTZ device, a virtual device identifier is set for the second motor, or a virtual device identifier is set for the first motor. The device ID is different from the virtual device ID, so that the rotating device connected with the PTZ device can distinguish the first motor and the second motor through the initial device ID and the virtual device ID, so as to control the first motor or the second motor to adjust the first motor of the shooting device. Shooting parameters or second shooting parameters, the first shooting parameters include any one of follow focus parameters, zoom parameters and exposure parameters, and the second shooting parameters include any one of follow focus parameters, zoom parameters and exposure parameters.
例如,第一电机与拍摄设备的变焦环卡合连接,使得第一电机转动时带动变焦环转动以控制该拍摄设备的变焦参数,第二电机与拍摄设备的跟焦环卡合连接,使得第二电机转动时带动跟焦环转动以控制该拍摄设备的跟焦参数。或者,第一电机与拍摄设备的跟焦环卡合连接,使得第一电机转动时带动跟焦环转动以控制该拍摄设备的跟焦参数,第二电机与拍摄设备的变焦环卡合连接,使得第二电机转动时带动变焦环转动以控制该拍摄设备的变焦参数。For example, the first motor is snap-connected with the zoom ring of the shooting device, so that when the first motor rotates, the zoom ring is driven to rotate to control the zoom parameters of the shooting device, and the second motor is snap-connected with the follow focus ring of the shooting device, so that the first motor rotates When the second motor rotates, it drives the follow focus ring to rotate to control the follow focus parameters of the photographing device. Alternatively, the first motor is connected with the follow focus ring of the photographing device, so that when the first motor rotates, the follow focus ring is driven to rotate to control the follow focus parameters of the photographing device, and the second motor is connected with the zoom ring of the photographing device by snap connection, When the second motor rotates, the zoom ring is driven to rotate to control the zoom parameters of the photographing device.
在一实施例中,控制装置响应于用户对转动装置的操作,获取该转动装置的转动信息,并根据该转动信息,生成电机控制指令。或者,转动装置响应于用户的操作,获取该转动装置的转动信息,并根据该转动信息,生成电机控制指令,且将该电机控制指令发送至控制装置,控制装置获取转动装置发送的电机控制指令。其中,转动装置与云台设备通过有线或无线的方式通信连接,该转动装置可以为拨轮、跟焦轮等,该转动信息包括转动装置的转速、位置和角速度,电机控制指令包括设备标识,该设备标识用于区分电机控制指令的接收方,电机控制指令的接收方可以为第一电机,也可以为第二电机。In one embodiment, the control device acquires the rotation information of the rotation device in response to the user's operation on the rotation device, and generates the motor control command according to the rotation information. Or, the rotating device acquires the rotation information of the rotating device in response to the user's operation, generates a motor control command according to the rotation information, and sends the motor control command to the control device, and the control device obtains the motor control command sent by the rotating device . Wherein, the rotating device is connected to the PTZ device through wired or wireless communication, the rotating device can be a dial wheel, a focus wheel, etc., the rotating information includes the rotation speed, position and angular velocity of the rotating device, and the motor control command includes the device identification. The device identifier is used to distinguish the recipient of the motor control instruction, and the recipient of the motor control instruction may be the first motor or the second motor.
在一实施例中,该转动装置具有第一控制模式和第二控制模式,在第一控制模式下,转动装置用于控制第一电机,在第二控制模式下,转动装置用于控制第二电机,电机控制指令可以是在第一控制模式下基于用户对转动装置的操作生成的,电机控制指令中的设备标识与所述初始设备标识相同,该电机控制指令也可以是在第二控制模式下基于用户对转动装置的操作生成的,电机控制指令中的设备标识与虚拟设备标识相同。通过单个的转动装置的控制模式,可以实现单个转动装置控制不同的电机来调整拍摄设备的拍摄参数,不需要新增器件,减少成本。In one embodiment, the rotating device has a first control mode and a second control mode. In the first control mode, the rotating device is used to control the first motor, and in the second control mode, the rotating device is used to control the second motor. The motor, the motor control instruction can be generated based on the user's operation on the rotating device in the first control mode, the device identification in the motor control instruction is the same as the initial device identification, and the motor control instruction can also be in the second control mode. The device ID in the motor control instruction is the same as the virtual device ID, which is generated based on the user's operation on the rotating device. Through the control mode of a single rotating device, a single rotating device can control different motors to adjust the shooting parameters of the shooting equipment, without adding new components and reducing costs.
在一实施例中,在第一控制模式下,转动装置用于控制第二电机,第二控制模式下,转动装置用于控制第一电机,电机控制指令可以是在第一控制模式下基于用户对转动装置的操作生成的,电机控制指令中的设备标识与虚拟设备标识相同,该电机控制指令也可以是在第二控制模式下基于用户对转动装置的操作生成的,电机控制指令中的设备标识与初始设备标识相同。通过单个的转动装置的控制模式,可以实现单个转动装置控制不同的电机来调整拍摄设备的拍摄参数,不需要新增器件,减少成本。In one embodiment, in the first control mode, the rotating device is used to control the second motor, and in the second control mode, the rotating device is used to control the first motor, and the motor control command may be based on the user in the first control mode. Generated by the operation of the rotating device, the device identification in the motor control instruction is the same as the virtual device identification, and the motor control instruction can also be generated based on the user's operation on the rotating device in the second control mode. The identification is the same as the original equipment identification. Through the control mode of a single rotating device, a single rotating device can control different motors to adjust the shooting parameters of the shooting equipment, without adding new components and reducing costs.
在一实施例中,转动装置包括第一转动装置或第二转动装置,第一转动装置用于控制第一电机,第二转动装置用于控制第二电机,该电机控制指令可以是基于用户对第一转动装置的操作生成的,该电机控制指令中的设备标识与初始设备标识相同,该电机控制指令也可以是基于用户对第二转动装置的操作生成的,该电机控制指令中的设备标识与虚拟设备标识相同。通过一个转动装置控制一个电机,另一个转动装置控制另一个电机,不需要来回的切换转动装置的控制模式,便于用户控制电机调整拍摄设备的拍摄参数,极大地提高了用户体验。In one embodiment, the rotating device includes a first rotating device or a second rotating device, the first rotating device is used to control the first motor, and the second rotating device is used to control the second motor, and the motor control command may be based on the user's Generated by the operation of the first rotating device, the device identification in the motor control instruction is the same as the initial device identification, and the motor control instruction can also be generated based on the user's operation on the second rotating device, the device identification in the motor control instruction Same as virtual device ID. One motor is controlled by one rotating device, and another motor is controlled by another rotating device, and there is no need to switch the control mode of the rotating device back and forth, which is convenient for the user to control the motor to adjust the shooting parameters of the shooting device, which greatly improves the user experience.
在一实施例中,第一转动装置用于控制第二电机,第二转动装置用于控制第一电机,该电机控制指令可以是基于用户对第一转动装置的操作生成的,该电机控制指令中的设备标识与虚拟设备标识相同,该电机控制指令也可以是基于用户对第二转动装置的操作生成的,该电机控制指令中的设备标识与初始设备标识相同。通过一个转动装置控制一个电机,另一个转动装置控制另一个电机,不需要来回的切换转动装置的控制模式,便于用户控制电机调整拍摄设备的拍摄参数,极大地提高了用户体验。In one embodiment, the first rotation device is used to control the second motor, the second rotation device is used to control the first motor, the motor control instruction may be generated based on the user's operation on the first rotation device, the motor control instruction The device identifier in the motor control instruction is the same as the virtual device identifier, the motor control instruction may also be generated based on the user's operation on the second rotating device, and the device identifier in the motor control instruction is the same as the initial device identifier. One motor is controlled by one rotating device, and another motor is controlled by another rotating device, and there is no need to switch the control mode of the rotating device back and forth, which is convenient for the user to control the motor to adjust the shooting parameters of the shooting device, which greatly improves the user experience.
S102、若所述电机控制指令中的设备标识与所述初始设备标识相同,则向所述第一电机发送所述电机控制指令。S102. If the device identifier in the motor control instruction is the same as the initial device identifier, send the motor control instruction to the first motor.
S103、若所述电机控制指令中的设备标识与所述虚拟设备标识相同,则将所述电机控制指令中的设备标识修改为所述初始设备标识,以更新所述电机控制指令,并向所述第二电机发送更新后的所述电机控制指令。S103. If the device identifier in the motor control instruction is the same as the virtual device identifier, modify the device identifier in the motor control instruction to the initial device identifier, so as to update the motor control instruction, and report to all The second motor sends the updated motor control command.
在通信网络中,如果给第一电机设置的设备标识为初始设备标识,而给第二电机设置的设备标识为虚拟设备标识,且初始设备标识与虚拟设备标识不同,因此,如果电机控制指令中的设备标识与初始设备标识相同,则向第一电机发送电机控制指令,而如果电机控制指令中的设备标识与虚拟设备标识相同,则将电机控制指令中的设备标识修改为初始设备标识,以更新电机控制指令,并向第二电机发送更新后的电机控制指令。In the communication network, if the device ID set for the first motor is the initial device ID, and the device ID set for the second motor is the virtual device ID, and the initial device ID is different from the virtual device ID, therefore, if the motor control instruction If the device ID of the motor control command is the same as the initial device ID, the motor control command is sent to the first motor, and if the device ID in the motor control command is the same as the virtual device ID, the device ID in the motor control command is modified to the initial device ID, to The motor control command is updated, and the updated motor control command is sent to the second motor.
在一实施例中,如果给第一电机设置的设备标识为虚拟设备标识,而给第二电机设置的设备标识为初始设备标识,且初始设备标识与虚拟设备标识不同,因此,如果电机控制指令中的设备标识与初始设备标识相同,则向第二电机发送电机控制指令,而如果电机控制指令中的设备标识与虚拟设备标识相同,则将电机控制指令中的设备标识修改为初始设备标识,以更新电机控制指令,并向第一电机发送更新后的电机控制指令。In one embodiment, if the equipment identification set for the first motor is a virtual equipment identification, and the equipment identification set for the second motor is an initial equipment identification, and the original equipment identification is different from the virtual equipment identification, therefore, if the motor control instruction If the device ID in the motor control command is the same as the initial device ID, the motor control command is sent to the second motor, and if the device ID in the motor control command is the same as the virtual device ID, the device ID in the motor control command is modified to the initial device ID, to update the motor control command, and send the updated motor control command to the first motor.
在一实施例中,第一电机能够通过第一接口连接于云台设备,第二电机能够第二接口连接于云台设备,因此,可以通过第一接口向第一电机发送电机控制指令,也可以通过第二接口向第二电机发送更新后的电机控制指令。或者,第一电机能够通过第二接口连接于云台设备,第二电机能够通过第一接口连接于云台设备,因此,可以通过第一接口向第二电机发送更新后的电机控制指令,也可以通过第二接口向第一电机发送电机控制指令。In one embodiment, the first motor can be connected to the gimbal device through the first interface, and the second motor can be connected to the gimbal device through the second interface. Therefore, a motor control command can be sent to the first motor through the first interface, and also The updated motor control command may be sent to the second motor through the second interface. Alternatively, the first motor can be connected to the gimbal device through the second interface, and the second motor can be connected to the gimbal device through the first interface. Therefore, the updated motor control command can be sent to the second motor through the first interface, and also Motor control commands may be sent to the first motor through the second interface.
在一实施例中,在转动装置处于第一控制模式时,获取第一电机发送的第一电机推送信息,其中,第一电机推送信息包括初始设备标识;将包括初始设备标识的第一电机推送信息发送给转动装置。其中,当第一电机通过第一接口连接于云台设备时,可以通过第一接口获取第一电机发送的第一电机推送信息,而当第一电机通过第二接口连接于云台设备时,可以通过第二接口获取第一电机发送的第一电机推送信息,第一电机推送信息包括第一电机的初始设备标识和第一电机的当前状态信息。In one embodiment, when the rotating device is in the first control mode, the first motor push information sent by the first motor is obtained, wherein the first motor push information includes the initial equipment identification; the first motor including the initial equipment identification is pushed. The information is sent to the rotating device. Wherein, when the first motor is connected to the gimbal device through the first interface, the first motor push information sent by the first motor can be obtained through the first interface, and when the first motor is connected to the gimbal device through the second interface, The first motor push information sent by the first motor can be acquired through the second interface, where the first motor push information includes the initial device identifier of the first motor and the current state information of the first motor.
在一实施例中,在转动装置处于第二控制模式时,获取第二电机发送的第二电机推送信息,其中,第二电机推送信息包括初始设备标识;将第二电机推送信息中的初始设备标识修改为虚拟设备标识,以更新第二电机推送信息,并向转动装置发送更新后的第二电机推送信息。其中,当第二电机通过第一接口 连接于云台设备时,可以通过第一接口获取第二电机发送的第二电机推送信息,而当第二电机通过第二接口连接于云台设备时,可以通过第二接口获取第二电机发送的第二电机推送信息,第二电机推送信息包括第二电机的初始设备标识和第二电机的当前状态信息。In one embodiment, when the rotating device is in the second control mode, the second motor push information sent by the second motor is acquired, wherein the second motor push information includes the initial device identifier; the initial device in the second motor push information is obtained. The identifier is modified to a virtual device identifier, so as to update the push information of the second motor, and send the updated push information of the second motor to the rotating device. Wherein, when the second motor is connected to the gimbal device through the first interface, the second motor push information sent by the second motor can be obtained through the first interface, and when the second motor is connected to the gimbal device through the second interface, The second motor push information sent by the second motor can be acquired through the second interface, where the second motor push information includes the initial device identifier of the second motor and the current state information of the second motor.
在一实施例中,转动装置包括第一转动装置或第二转动装置,第一转动装置用于控制第一电机,第二转动装置用于控制第二电机,在此基础上,获取第一电机发送的第一电机推送信息,其中,第一电机推送信息包括初始设备标识;将包括初始设备标识的第一电机推送信息发送给第一转动装置。其中,当第一电机通过第一接口连接于云台设备时,可以通过第一接口获取第一电机发送的第一电机推送信息,而当第一电机通过第二接口连接于云台设备时,可以通过第二接口获取第一电机发送的第一电机推送信息,第一电机推送信息包括第一电机的初始设备标识和第一电机的当前状态信息。In one embodiment, the rotating device includes a first rotating device or a second rotating device, the first rotating device is used to control the first motor, and the second rotating device is used to control the second motor, and on this basis, the first motor is obtained. The sent first motor push information, wherein the first motor push information includes the initial device identification; the first motor push information including the initial device identification is sent to the first rotating device. Wherein, when the first motor is connected to the gimbal device through the first interface, the first motor push information sent by the first motor can be obtained through the first interface, and when the first motor is connected to the gimbal device through the second interface, The first motor push information sent by the first motor can be acquired through the second interface, where the first motor push information includes the initial device identifier of the first motor and the current state information of the first motor.
在一实施例中,转动装置包括第一转动装置或第二转动装置,第一转动装置用于控制第一电机,第二转动装置用于控制第二电机,在此基础上,获取第二电机发送的第二电机推送信息,其中,第二电机推送信息包括初始设备标识;将第二电机推送信息中的初始设备标识修改为虚拟设备标识,以更新第二电机推送信息,并向第二转动装置发送更新后的第二电机推送信息。其中,当第二电机通过第一接口连接于云台设备时,可以通过第一接口获取第二电机发送的第二电机推送信息,而当第二电机通过第二接口连接于云台设备时,可以通过第二接口获取第二电机发送的第二电机推送信息,第二电机推送信息包括第二电机的初始设备标识和第二电机的当前状态信息。In one embodiment, the rotating device includes a first rotating device or a second rotating device, the first rotating device is used to control the first motor, the second rotating device is used to control the second motor, and on this basis, the second motor is obtained. The second motor push information sent, wherein the second motor push information includes the initial device identification; the initial device identification in the second motor push information is modified to a virtual device identification to update the second motor push information, and rotate to the second motor The device sends the updated push information of the second motor. Wherein, when the second motor is connected to the gimbal device through the first interface, the second motor push information sent by the second motor can be obtained through the first interface, and when the second motor is connected to the gimbal device through the second interface, The second motor push information sent by the second motor can be acquired through the second interface, where the second motor push information includes the initial device identifier of the second motor and the current state information of the second motor.
在一实施例中,可以根据电机与接口的连接关系设置设备标识,例如,将与第一接口连接的电机对应的设备标识设置为初始设备标识,将与第二接口连接的电机对应的设备标识设置为虚拟设备标识。如此,如果电机控制指令中的设备标识与初始设备标识相同,则通过第一接口向与第一接口连接的电机发送电机控制指令,而如果电机控制指令中的设备标识与虚拟设备标识相同,则将电机控制指令中的设备标识修改为初始设备标识,以更新电机控制指令,并通过第二接口向与第二接口连接的电机发送更新后的电机控制指令。In one embodiment, the device identification can be set according to the connection relationship between the motor and the interface, for example, the device identification corresponding to the motor connected with the first interface is set as the initial device identification, and the device identification corresponding to the motor connected with the second interface is set. Set to the virtual device ID. In this way, if the device identifier in the motor control instruction is the same as the initial device identifier, the motor control instruction is sent to the motor connected to the first interface through the first interface, and if the device identifier in the motor control instruction is the same as the virtual device identifier, then The device identification in the motor control instruction is modified to the initial device identification to update the motor control instruction, and the updated motor control instruction is sent to the motor connected to the second interface through the second interface.
此外,如果云台设备的通信网络中仅有一个转动装置,若通过第一接口获取到电机推送信息,则将电机推送信息发送给转动装置,若通过第二接口获取到电机推送信息,则将电机推送信息中的初始设备标识修改为虚拟设备标识,以更新电机推送信息,并向转动装置发送更新后的第二电机推送信息。如果云 台设备的通信网络中包括两个转动装置,则可以进一步建立接口和转动装置之间的对应关系。例如,将通过第一接口获取到电机推送信息发送给第一转动装置,将通过第二接口获取到的电机推送信息发送给第二转动装置。如此,若通过第一接口获取到电机推送信息,则将电机推送信息发送给第一转动装置,若通过第二接口获取到电机推送信息,则将电机推送信息中的初始设备标识修改为虚拟设备标识,以更新电机推送信息,并向第二转动装置发送更新后的第二电机推送信息。In addition, if there is only one rotating device in the communication network of the PTZ device, if the motor push information is obtained through the first interface, the motor push information is sent to the rotating device, and if the motor push information is obtained through the second interface, the The initial device identifier in the motor push information is modified to a virtual device identifier, so as to update the motor push information, and send the updated second motor push information to the rotating device. If the communication network of the PTZ device includes two rotating devices, the corresponding relationship between the interface and the rotating device can be further established. For example, the motor push information obtained through the first interface is sent to the first rotating device, and the motor push information obtained through the second interface is sent to the second rotating device. In this way, if the motor push information is obtained through the first interface, the motor push information is sent to the first rotating device, and if the motor push information is obtained through the second interface, the initial device identifier in the motor push information is modified to a virtual device identifier to update the motor push information, and send the updated second motor push information to the second rotating device.
当然,也可以将与第一接口连接的电机对应的设备标识设置为虚拟设备标识,将与第二接口连接的电机对应的设备标识设置为初始设备标识。以及,也可以将通过第一接口获取到电机推送信息发送给第二转动装置,将通过第二接口获取到的电机推送信息发送给第一转动装置,在此不再赘述。Of course, the device identifier corresponding to the motor connected to the first interface may also be set as the virtual device identifier, and the device identifier corresponding to the motor connected to the second interface may be set as the initial device identifier. In addition, the motor push information obtained through the first interface may also be sent to the second rotating device, and the motor push information obtained through the second interface may be sent to the first rotating device, which will not be repeated here.
上述实施例提供的电机控制方法,通过获取电机控制指令,如果该电机控制指令中的设备标识与电机的初始设备标识相同,则向第一电机发送电机控制指令,如果该电机控制指令中的设备标识与电机的虚拟设备标识相同,则将电机控制指令中的设备标识修改为初始设备标识,以更新电机控制指令,并向第二电机发送更新后的电机控制指令,从而能够解决多个电机同时外接于云台设备时,对于通信网络中的其他设备节点,无法通过相同的设备标识来区分电机的问题,提高用户体验。The motor control method provided by the above-mentioned embodiment, by acquiring the motor control command, if the device identifier in the motor control command is the same as the initial device ID of the motor, then send the motor control command to the first motor, if the device in the motor control command If the ID is the same as the virtual device ID of the motor, the device ID in the motor control instruction is modified to the initial device ID to update the motor control command, and the updated motor control command is sent to the second motor, so as to solve the problem of multiple motors at the same time. When externally connected to a PTZ device, for other device nodes in the communication network, the motor problem cannot be distinguished by the same device ID, improving user experience.
请参阅图5,图5是本申请实施例提供的另一种电机控制方法的步骤示意流程图。Please refer to FIG. 5 , which is a schematic flowchart of steps of another motor control method provided by an embodiment of the present application.
如图5所示,该电机控制方法包括步骤S201至S202。As shown in FIG. 5 , the motor control method includes steps S201 to S202.
S201、获取所述拍摄设备的第一拍摄参数或第二拍摄参数的当前数值。S201. Acquire the current value of the first shooting parameter or the second shooting parameter of the shooting device.
其中,与云台设备连接的第一电机能够与拍摄设备连接以调整拍摄设备的第一拍摄参数,而与云台设备连接的第二电机能够与拍摄设备连接以调整拍摄设备的第二拍摄参数。Wherein, the first motor connected with the pan-tilt device can be connected with the shooting device to adjust the first shooting parameters of the shooting device, and the second motor connected with the pan-tilt device can be connected with the shooting device to adjust the second shooting parameters of the shooting device .
例如,第一电机与拍摄设备的变焦环卡合连接,使得第一电机转动时带动变焦环转动以控制该拍摄设备的变焦参数,第二电机与拍摄设备的跟焦环卡合连接,使得第二电机转动时带动跟焦环转动以控制该拍摄设备的跟焦参数。或者,第一电机与拍摄设备的跟焦环卡合连接,使得第一电机转动时带动跟焦环转动以控制该拍摄设备的跟焦参数,第二电机与拍摄设备的变焦环卡合连接,使得第二电机转动时带动变焦环转动以控制该拍摄设备的变焦参数。For example, the first motor is snap-connected with the zoom ring of the shooting device, so that when the first motor rotates, the zoom ring is driven to rotate to control the zoom parameters of the shooting device, and the second motor is snap-connected with the follow focus ring of the shooting device, so that the first motor rotates When the second motor rotates, it drives the follow focus ring to rotate to control the follow focus parameters of the photographing device. Alternatively, the first motor is connected with the follow focus ring of the photographing device, so that when the first motor rotates, the follow focus ring is driven to rotate to control the follow focus parameters of the photographing device, and the second motor is connected with the zoom ring of the photographing device by snap connection, When the second motor rotates, the zoom ring is driven to rotate to control the zoom parameters of the photographing device.
在一实施例中,当一个转动装置与云台设备连接时,若转动装置的控制模 式为第一控制模式,则获取拍摄设备的第一拍摄参数的当前数值,而若转动装置的控制模式为第二控制模式,获取拍摄设备的第二拍摄参数的当前数值。或者,当第一转动装置和第二转动装置均与云台设备连接时,获取拍摄设备的第一拍摄参数的当前数值和/或第二拍摄参数的当前数值。In one embodiment, when a rotating device is connected to the pan/tilt device, if the control mode of the rotating device is the first control mode, the current value of the first shooting parameter of the shooting device is obtained, and if the control mode of the rotating device is In the second control mode, the current value of the second shooting parameter of the shooting device is acquired. Alternatively, when both the first rotating device and the second rotating device are connected to the pan/tilt device, the current value of the first shooting parameter and/or the current value of the second shooting parameter of the shooting device is acquired.
S202、若所述第一拍摄参数的当前数值不处于第一预设数值范围内,或者若所述第二拍摄参数的当前数值不处于第二预设数值范围内,则增大所述转动装置的转动阻尼。S202. If the current value of the first shooting parameter is not within the first preset value range, or if the current value of the second shooting parameter is not within the second preset value range, increase the rotation device rotational damping.
其中,第一预设数值范围与第一拍摄参数的极限值,即最小数值和最大数值相关,第二预设数值范围与第二拍摄参数的极限值,即最小数值和最大数值相关,例如,第一预设数值范围的第一端点值大于或等于第一拍摄参数的最小数值,第一预设数值范围的第二端点值小于或等于第一拍摄参数的最大数值,第二预设数值范围的第一端点值大于或等于第二拍摄参数的最小数值,第二预设数值范围的第二端点值小于或等于第二拍摄参数的最大数值。Wherein, the first preset value range is related to the limit value of the first shooting parameter, that is, the minimum value and the maximum value, and the second preset value range is related to the limit value of the second shooting parameter, that is, the minimum value and the maximum value. For example, The first endpoint value of the first preset value range is greater than or equal to the minimum value of the first shooting parameter, the second endpoint value of the first preset value range is less than or equal to the maximum value of the first shooting parameter, and the second preset value The first endpoint value of the range is greater than or equal to the minimum value of the second shooting parameter, and the second endpoint value of the second preset value range is less than or equal to the maximum value of the second shooting parameter.
在一实施例中,当一个转动装置与云台设备连接时,若转动装置的控制模式为第一控制模式,则当第一拍摄参数的当前数值不处于第一预设数值范围内时,增大转动装置的转动阻尼,而若转动装置的控制模式为第二控制模式,则当第二拍摄参数的当前数值不处于第二预设数值范围内时,增大转动装置的转动阻尼。其中,该转动装置与阻尼调节装置连接,因此可以通过控制该阻尼调节装置来增大转动装置的转动阻尼。其中,阻尼调节装置包括抱紧装置和反转电机中的至少一项,该抱紧装置可以设置于转动装置的转动轴或传动齿轮上,使得抱紧装置可以增大转动装置的转动轴或传动齿轮的摩擦力,以增大转动装置的转动阻尼,该反转电机的传动齿轮可以与转动装置的传动齿轮齿合,使得该反转电机能够向转动装置施加反向的阻力,以增大转动装置的转动阻尼。通过控制该阻尼调节装置来增大转动装置的转动阻尼,可以准确地调节转动装置的转动阻尼。In one embodiment, when a rotating device is connected to the pan/tilt device, if the control mode of the rotating device is the first control mode, when the current value of the first shooting parameter is not within the first preset value range, the increase The rotation damping of the rotating device is increased, and if the control mode of the rotating device is the second control mode, when the current value of the second shooting parameter is not within the second preset value range, the rotation damping of the rotating device is increased. Wherein, the rotating device is connected with the damping adjusting device, so the rotational damping of the rotating device can be increased by controlling the damping adjusting device. Wherein, the damping adjustment device includes at least one of a gripping device and a reversing motor, and the gripping device can be arranged on the rotating shaft or the transmission gear of the rotating device, so that the tightening device can increase the rotating shaft or the transmission gear of the rotating device. The frictional force of the gear can increase the rotational damping of the rotating device. The transmission gear of the reversing motor can be engaged with the transmission gear of the rotating device, so that the reversing motor can apply reverse resistance to the rotating device to increase the rotation. Rotational damping of the device. By controlling the damping adjusting device to increase the rotational damping of the rotating device, the rotational damping of the rotating device can be adjusted accurately.
在一实施例中,以间隔预设时间获取拍摄设备的第一拍摄参数或第二拍摄参数的当前数值;若第一拍摄参数的当前数值不处于第一预设数值范围内,或者若第二拍摄参数的当前数值不处于第二预设数值范围内,则增大转动装置的转动阻尼。其中,预设时间可基于实际情况进行设置,本申请实施例对此不做具体限定。通过间隔设定时间获取拍摄参数的当前数值,并在拍摄参数的当前数值不处于设定的数值范围内时,增大转动装置的转动阻尼,便于后续用户转动该转动装置时能够感知到转动阻尼增大,得知拍摄参数的当前数值与极限值 之间的关系,从而在拍摄参数的当前数值达到极限值时,停止对转动装置进行转动,可以防止拍摄设备损坏,提高用户体验。In one embodiment, the current value of the first shooting parameter or the second shooting parameter of the shooting device is obtained at preset time intervals; if the current value of the first shooting parameter is not within the first preset value range, or if the second If the current value of the shooting parameter is not within the second preset value range, the rotation damping of the rotating device is increased. The preset time may be set based on an actual situation, which is not specifically limited in this embodiment of the present application. The current value of the shooting parameter is obtained by setting the interval, and when the current value of the shooting parameter is not within the set value range, the rotation damping of the rotating device is increased, so that the subsequent user can perceive the rotating damping when rotating the rotating device. Increase, the relationship between the current value of the shooting parameter and the limit value is known, so that when the current value of the shooting parameter reaches the limit value, the rotation of the rotating device is stopped, which can prevent damage to the shooting equipment and improve user experience.
在一实施例中,响应于用户对转动装置的转动操作,获取拍摄设备的第一拍摄参数或第二拍摄参数的当前数值;若第一拍摄参数的当前数值不处于第一预设数值范围内,或者若第二拍摄参数的当前数值不处于第二预设数值范围内,则增大转动装置的转动阻尼。通过在用户转动该转动装置的过程中,在拍摄参数的当前数值不处于设定的数值范围内时,增大转动装置的转动阻尼,使得用户能够感知到转动装置的转动阻尼增大,得知拍摄参数的当前数值与极限值之间的关系,从而在拍摄参数的当前数值达到极限值时,停止对转动装置进行转动,可以防止拍摄设备损坏,提高用户体验。In one embodiment, the current value of the first shooting parameter or the second shooting parameter of the shooting device is obtained in response to the user's rotating operation of the rotating device; if the current value of the first shooting parameter is not within the first preset value range , or if the current value of the second shooting parameter is not within the second preset value range, increase the rotation damping of the rotation device. During the process of the user rotating the rotating device, when the current value of the shooting parameter is not within the set value range, the rotational damping of the rotating device is increased, so that the user can perceive the increase in the rotational damping of the rotating device and know that The relationship between the current value of the shooting parameter and the limit value, so that when the current value of the shooting parameter reaches the limit value, the rotation of the rotating device is stopped, which can prevent damage to the shooting equipment and improve user experience.
在一实施例中,该转动装置包括第一转动装置或第二转动装置,若第一拍摄参数的当前数值不处于第一预设数值范围内,则增大第一转动装置的转动阻尼,而若第二拍摄参数的当前数值不处于第二预设数值范围内,则增大第二转动装置的转动阻尼。其中,第一转动装置与第一阻尼调节装置连接,第二转动装置与第二阻尼调节装置连接,因此,可以通过控制第一阻尼调节装置来增大第一转动装置的转动阻尼,控制第二阻尼调节装置来增大第二转动装置的转动阻尼,第一阻尼调节装置包括抱紧装置和反转电机中的至少一项,第二阻尼调节装置包括抱紧装置和反转电机中的至少一项。In one embodiment, the rotation device includes a first rotation device or a second rotation device, and if the current value of the first shooting parameter is not within the first preset value range, the rotation damping of the first rotation device is increased, and If the current value of the second shooting parameter is not within the second preset value range, the rotation damping of the second rotation device is increased. The first rotating device is connected to the first damping adjusting device, and the second rotating device is connected to the second damping adjusting device. Therefore, the rotational damping of the first rotating device can be increased by controlling the first damping adjusting device, and the second rotating device can be controlled. A damping adjusting device is used to increase the rotational damping of the second rotating device, the first damping adjusting device includes at least one of a gripping device and a reversing motor, and the second damping adjusting device includes at least one of a gripping device and a reversing motor item.
在一实施例中,增大转动装置的转动阻尼的方式可以为:确定第一拍摄参数的当前数值与第一预设数值范围的端点值的差值,或者第二拍摄参数的当前数值与第二预设数值范围的端点值的差值,得到反馈控制量;根据反馈控制量和预设反馈系数,增大转动装置的转动阻尼。其中,预设反馈系数与第一拍摄参数或第二拍摄参数的取值范围相关,第一拍摄参数或第二拍摄参数的取值范围越大,则预设反馈系数越小,第一拍摄参数或第二拍摄参数的取值范围越小,则预设反馈系数越大,反馈控制量与转动装置的转动阻尼呈正相关关系,即反馈控制量越大,则转动装置的转动阻尼越大,反馈控制量越小,则转动装置的转动阻尼越小。不同的拍摄设备可能具有不同的拍摄参数的取值范围,通过根据反馈控制量和预设反馈系数,增大转动装置的转动阻尼,可以使得不同的拍摄设备能够对应于归一化的转动装置的操作手感。In one embodiment, the way to increase the rotational damping of the rotating device may be: determining the difference between the current value of the first shooting parameter and the end value of the first preset value range, or the current value of the second shooting parameter and the first shooting parameter. The difference between the end values of the two preset numerical ranges is to obtain the feedback control amount; according to the feedback control amount and the preset feedback coefficient, the rotation damping of the rotating device is increased. The preset feedback coefficient is related to the value range of the first shooting parameter or the second shooting parameter. The larger the value range of the first shooting parameter or the second shooting parameter is, the smaller the preset feedback coefficient is. Or the smaller the value range of the second shooting parameter is, the larger the preset feedback coefficient is, and the feedback control amount has a positive correlation with the rotational damping of the rotating device. The smaller the control amount, the smaller the rotational damping of the rotating device. Different shooting devices may have different value ranges of shooting parameters. By increasing the rotation damping of the rotating device according to the feedback control amount and the preset feedback coefficient, different shooting devices can correspond to the normalized rotating device. Operation feel.
在一实施例中,反馈控制量的确定方式可以为:确定第一拍摄参数的当前数值与第一预设数值范围的第一端点值之间的第一差值,并确定第一拍摄参数的当前数值与第一预设数值范围的第二端点值之间的第二差值;将第一差值的 绝对值和第二差值的绝对值中较小的一个作为反馈控制量。例如,第一拍摄参数的当前数值为80,第一拍摄参数的预设数值范围为20至75,则第一端点值为20,第二端点值为75,因此,第一差值的绝对值为60、第二差值的绝对值为5,则将第二差值的绝对值5作为反馈控制量,又例如,第一拍摄参数的当前数值为15,第一拍摄参数的预设数值范围为20至75,则第一端点值为20,第二端点值为75,因此,第一差值的绝对值为5、第二差值的绝对值为60,则将第一差值的绝对值5作为反馈控制量。In one embodiment, the determination method of the feedback control amount may be: determining the first difference between the current value of the first shooting parameter and the first endpoint value of the first preset value range, and determining the first shooting parameter. The second difference between the current value of , and the second endpoint value of the first preset value range; the smaller one of the absolute value of the first difference and the absolute value of the second difference is used as the feedback control amount. For example, if the current value of the first shooting parameter is 80, and the preset value range of the first shooting parameter is 20 to 75, the first endpoint value is 20, and the second endpoint value is 75. Therefore, the absolute value of the first difference If the value is 60 and the absolute value of the second difference is 5, the absolute value of the second difference is 5 as the feedback control amount. For another example, the current value of the first shooting parameter is 15, and the preset value of the first shooting parameter The range is 20 to 75, then the first endpoint value is 20 and the second endpoint value is 75. Therefore, the absolute value of the first difference value is 5 and the absolute value of the second difference value is 60, then the first difference value is The absolute value of 5 is used as the feedback control amount.
在一实施例中,该转动装置与阻尼调节装置连接,根据反馈控制量和预设反馈系数,增大转动装置的转动阻尼的方式可以为:根据反馈控制量和预设反馈系数,确定该阻尼调节装置的运行参数,即确定反馈控制量和预设反馈系数的乘积,并将反馈控制量和预设反馈系数的乘积作为该阻尼调节装置的运行参数;控制该阻尼调节装置按照该运行参数运行,以增大转动装置的转动阻尼。通过反馈控制量和预设反馈系数可以将反馈控制量转化为阻尼调节装置的运行参数,从而使得阻尼调节装置基于该运行参数运行,以增大转动装置的转动阻尼。In one embodiment, the rotating device is connected to the damping adjusting device, and the way of increasing the rotational damping of the rotating device according to the feedback control amount and the preset feedback coefficient may be: determining the damping according to the feedback control amount and the preset feedback coefficient. Adjust the operating parameters of the device, that is, determine the product of the feedback control amount and the preset feedback coefficient, and use the product of the feedback control amount and the preset feedback coefficient as the operating parameter of the damping adjusting device; control the damping adjusting device to operate according to the operating parameter , to increase the rotational damping of the rotating device. The feedback control amount can be converted into an operating parameter of the damping adjusting device through the feedback control amount and the preset feedback coefficient, so that the damping adjusting device operates based on the operating parameter to increase the rotational damping of the rotating device.
在一实施例中,若第一拍摄参数的当前数值不处于第一预设数值范围内,第一拍摄参数的当前数值未达到第一拍摄参数的极限值,则增大转动装置的转动阻尼。或者若第二拍摄参数的当前数值不处于第二预设数值范围内,且第二拍摄参数的当前数值未达到第二拍摄参数的极限值,则增大转动装置的转动阻尼。通过在拍摄参数的当前数值不处于设定的数值范围内,且拍摄参数的当前数值未达到极限值时,增大转动装置的转动阻尼,以反馈拍摄参数的当前数值与极限值之间的关系,便于用户操作转动装置,能够在拍摄参数的当前数值达到极限值时,停止对转动装置进行转动,可以防止拍摄设备损坏。In one embodiment, if the current value of the first shooting parameter is not within the first preset value range, and the current value of the first shooting parameter does not reach the limit value of the first shooting parameter, the rotation damping of the rotating device is increased. Or if the current value of the second shooting parameter is not within the second preset value range, and the current value of the second shooting parameter does not reach the limit value of the second shooting parameter, the rotation damping of the rotating device is increased. When the current value of the shooting parameter is not within the set value range and the current value of the shooting parameter does not reach the limit value, the rotation damping of the rotating device is increased to feedback the relationship between the current value of the shooting parameter and the limit value , it is convenient for the user to operate the rotating device, and when the current value of the shooting parameters reaches the limit value, the rotating device can be stopped from rotating, which can prevent the damage of the shooting equipment.
在一实施例中,若第一拍摄参数的当前数值不处于第一预设数值范围内,第一拍摄参数的当前数值达到第一拍摄参数的极限值,则锁定转动装置;或者,若第二拍摄参数的当前数值不处于第二预设数值范围内,且第二拍摄参数的当前数值达到第二拍摄参数的极限值,则锁定转动装置。其中,锁定后的转动装置不随着用户的操作而转动。在拍摄参数的当前数值达到拍摄参数的极限值时,锁定转动装置,使得转动装置不随着用户的操作而转动,能够防止拍摄设备损坏,提高用户体验。In one embodiment, if the current value of the first shooting parameter is not within the first preset value range, and the current value of the first shooting parameter reaches the limit value of the first shooting parameter, the rotating device is locked; If the current value of the shooting parameter is not within the second preset value range, and the current value of the second shooting parameter reaches the limit value of the second shooting parameter, the rotating device is locked. Wherein, the locked rotating device does not rotate with the user's operation. When the current value of the shooting parameter reaches the limit value of the shooting parameter, the rotating device is locked so that the rotating device does not rotate with the user's operation, which can prevent damage to the shooting equipment and improve user experience.
在一实施例中,若第一拍摄参数的当前数值不处于第一预设数值范围内,或第二拍摄参数的当前数值不处于第二预设数值范围内,则显示预设反馈提醒 文本、播报预设反馈提醒音、控制预设指示灯运行和/或控制转动装置振动。其中,预设反馈提醒文本和预设反馈提醒音用于提醒用户拍摄参数的当前数值与拍摄参数的极限值之间的关系,预设反馈提醒文本和预设反馈提醒音可基于实际情况进行设置,本申请实施例对此不做具体限定。In one embodiment, if the current value of the first shooting parameter is not within the first preset value range, or the current value of the second shooting parameter is not within the second preset value range, the preset feedback reminder text, Play preset feedback alert tones, control preset indicator light operation, and/or control rotating device vibration. Among them, the preset feedback reminder text and the preset feedback reminder sound are used to remind the user of the relationship between the current value of the shooting parameter and the limit value of the shooting parameter, and the preset feedback reminder text and the preset feedback reminder sound can be set based on the actual situation , which is not specifically limited in the embodiments of the present application.
在一实施例中,显示预设反馈提醒文本的方式可以为:控制拍摄设备显示预设反馈提醒文本;和/或,控制转动装置上的显示屏显示预设反馈提醒文本。通过控制拍摄设备和/或转动装置上的显示屏显示预设反馈提醒文本,能够提醒用户拍摄参数的当前数值与拍摄参数的极限值之间的关系,便于用户操作转动装置,能够在拍摄参数的当前数值达到极限值时,停止对转动装置进行转动,可以防止拍摄设备损坏,提高用户体验。In an embodiment, the manner of displaying the preset feedback reminder text may be: controlling the photographing device to display the preset feedback reminder text; and/or controlling the display screen on the rotating device to display the preset feedback reminder text. By controlling the display screen on the shooting device and/or the rotating device to display the preset feedback reminder text, the user can be reminded of the relationship between the current value of the shooting parameter and the limit value of the shooting parameter, which is convenient for the user to operate the rotating device, and can be used in the shooting parameter. When the current value reaches the limit value, the rotation of the rotating device is stopped, which can prevent damage to the photographing equipment and improve user experience.
在一实施例中,播报预设反馈提醒音的方式可以为:控制拍摄设备播报预设反馈提醒音;和/或,控制转动装置播报预设反馈提醒音。通过控制拍摄设备和/或转动装置播报预设反馈提醒音,能够提醒用户拍摄参数的当前数值与拍摄参数的极限值之间的关系,便于用户操作转动装置,能够在拍摄参数的当前数值达到极限值时,停止对转动装置进行转动,可以防止拍摄设备损坏,提高用户体验。In an embodiment, the manner of broadcasting the preset feedback reminder sound may be: controlling the photographing device to broadcast the preset feedback reminder sound; and/or controlling the rotating device to broadcast the preset feedback reminder sound. By controlling the shooting device and/or the rotating device to broadcast the preset feedback reminder sound, the user can be reminded of the relationship between the current value of the shooting parameter and the limit value of the shooting parameter, which is convenient for the user to operate the rotating device, and can be used when the current value of the shooting parameter reaches the limit. When the value is set, stop rotating the rotating device, which can prevent damage to the shooting equipment and improve user experience.
在一实施例中,控制预设指示灯运行的方式可以为:控制设于拍摄设备上的预设指示灯运行;和/或,控制设于转动装置上的预设指示灯运行,以提醒用户拍摄参数的当前数值与拍摄参数的极限值之间的关系。通过控制预设指示灯运行能够提醒用户拍摄参数的当前数值与拍摄参数的极限值之间的关系,便于用户操作转动装置,能够在拍摄参数的当前数值达到极限值时,停止对转动装置进行转动,可以防止拍摄设备损坏,提高用户体验。In one embodiment, the mode of controlling the operation of the preset indicator light may be: controlling the operation of the preset indicator light provided on the photographing device; and/or, controlling the operation of the preset indicator light provided on the rotating device to remind the user The relationship between the current value of the shooting parameter and the limit value of the shooting parameter. By controlling the operation of the preset indicator light, the user can be reminded of the relationship between the current value of the shooting parameter and the limit value of the shooting parameter, which is convenient for the user to operate the rotating device, and can stop rotating the rotating device when the current value of the shooting parameter reaches the limit value. , which can prevent damage to the shooting equipment and improve the user experience.
在一实施例中,控制预设指示灯运行的方式还可以为:确定第一拍摄参数的当前数值与第一预设数值范围的端点值的差值,或者第二拍摄参数的当前数值与第二预设数值范围的端点值的差值,得到反馈控制量;根据反馈控制量所处的取值范围,确定预设指示灯的目标闪烁方式;控制预设指示灯按照目标闪烁方式进行闪烁。其中,反馈控制量所处的取值范围不同,则预设指示灯的目标闪烁方式不同,反馈控制量所处的取值范围与预设指示灯的闪烁方式之间的映射关系可基于实际情况进行设置,本申请实施例对此不做具体限定。通过以不同的闪烁方式控制预设指示灯闪烁,能够提醒用户拍摄参数的当前数值与拍摄参数的极限值之间的关系,便于用户操作转动装置,能够在拍摄参数的当前数值达到极限值时,停止对转动装置进行转动,可以防止拍摄设备损坏,提高 用户体验。In one embodiment, the mode of controlling the operation of the preset indicator light may also be: determining the difference between the current value of the first shooting parameter and the end value of the first preset value range, or the current value of the second shooting parameter and the first shooting parameter. The difference between the end values of the two preset numerical ranges is the feedback control quantity; the target flashing mode of the preset indicator light is determined according to the value range of the feedback control quantity; the preset indicator light is controlled to flash according to the target flashing mode. Wherein, if the value range of the feedback control variable is different, the target flashing mode of the preset indicator light is different, and the mapping relationship between the value range of the feedback control variable and the flashing mode of the preset indicator light can be based on the actual situation set, which is not specifically limited in this embodiment of the present application. By controlling the flashing of the preset indicator lights in different flashing ways, the user can be reminded of the relationship between the current value of the shooting parameter and the limit value of the shooting parameter, which is convenient for the user to operate the rotating device, and when the current value of the shooting parameter reaches the limit value, Stopping the rotation of the rotating device can prevent damage to the photographing equipment and improve user experience.
在一实施例中,控制转动装置振动的方式可以为:确定第一拍摄参数的当前数值与第一预设数值范围的端点值的差值,或者第二拍摄参数的当前数值与第二预设数值范围的端点值的差值,得到反馈控制量;根据反馈控制量和预设反馈系数,控制转动装置内的振动器运行,使得转动装置振动,即确定反馈控制量和预设反馈系数的乘积,并将该反馈控制量和预设反馈系数的乘积作为振动器的运行参数,且基于该运行参数控制转动装置内的振动器运行,使得转动装置振动。其中,反馈控制量与转动装置的振动强度呈正相关关系,即反馈控制量越大,则转动装置的振动强度越强,而反馈控制量越小,则转动装置的振动强度越弱。通过控制转动装置振动,能够提醒用户拍摄参数的当前数值与拍摄参数的极限值之间的关系,便于用户操作转动装置,能够在拍摄参数的当前数值达到极限值时,停止对转动装置进行转动,可以防止拍摄设备损坏,提高用户体验。In one embodiment, the mode of controlling the vibration of the rotating device may be: determining the difference between the current value of the first shooting parameter and the end value of the first preset value range, or the current value of the second shooting parameter and the second preset value. The difference between the end values of the numerical range is used to obtain the feedback control amount; according to the feedback control amount and the preset feedback coefficient, the vibrator in the rotating device is controlled to operate to make the rotating device vibrate, that is, the product of the feedback control amount and the preset feedback coefficient is determined. , and the product of the feedback control amount and the preset feedback coefficient is used as the operating parameter of the vibrator, and the operation of the vibrator in the rotating device is controlled based on the operating parameter, so that the rotating device vibrates. Among them, the feedback control amount is positively correlated with the vibration intensity of the rotating device, that is, the larger the feedback control amount, the stronger the vibration intensity of the rotating device, and the smaller the feedback control amount, the weaker the vibration intensity of the rotating device. By controlling the vibration of the rotating device, the user can be reminded of the relationship between the current value of the shooting parameter and the limit value of the shooting parameter, which is convenient for the user to operate the rotating device, and can stop rotating the rotating device when the current value of the shooting parameter reaches the limit value. It can prevent damage to the shooting equipment and improve the user experience.
在一实施例中,若第一拍摄参数的当前数值不处于第一预设数值范围内,或第二拍摄参数的当前数值不处于第二预设数值范围内,则增大转动装置的转动阻尼,并控制转动装置振动。通过增大转动装置的转动阻尼,并控制转动装置振动能够提醒用户拍摄参数的当前数值与拍摄参数的极限值之间的关系,便于用户操作转动装置,能够在拍摄参数的当前数值达到极限值时,停止对转动装置进行转动,可以防止拍摄设备损坏,提高用户体验。In one embodiment, if the current value of the first shooting parameter is not within the first preset value range, or the current value of the second shooting parameter is not within the second preset value range, the rotation damping of the rotating device is increased. , and control the vibration of the rotating device. By increasing the rotation damping of the rotating device and controlling the vibration of the rotating device, the user can be reminded of the relationship between the current value of the shooting parameter and the limit value of the shooting parameter, which is convenient for the user to operate the rotating device, and can be used when the current value of the shooting parameter reaches the limit value. , stop rotating the rotating device, which can prevent damage to the shooting equipment and improve user experience.
上述实施例提供的转动装置的操作反馈方法,通过获取拍摄设备的第一拍摄参数或第二拍摄参数的当前数值,若第一拍摄参数的当前数值不处于第一预设数值范围内,或第二拍摄参数的当前数值不处于第二预设数值范围内,则增大转动装置的转动阻尼,使得用户对该转动装置进行转动时,转动装置能够反馈拍摄参数的当前数值与极限值之间的关系,便于用户感知拍摄设备的拍摄参数是否达到极限值,极大地提高了用户体验。The operation feedback method of the rotating device provided by the above-mentioned embodiment, by acquiring the current value of the first shooting parameter or the second shooting parameter of the shooting device, if the current value of the first shooting parameter is not within the first preset value range, or the first shooting parameter If the current value of the second shooting parameter is not within the second preset value range, the rotation damping of the rotating device is increased, so that when the user rotates the rotating device, the rotating device can feedback the difference between the current value of the shooting parameter and the limit value. relationship, it is convenient for the user to perceive whether the shooting parameters of the shooting device reach the limit value, which greatly improves the user experience.
本申请实施例还提供一种控制装置,该控制装置用于控制第一电机或第二电机,第一电机和第二电机的初始设备标识相同,为第二电机设置的虚拟设备标识与该初始设备标识不同。请参阅图6,图6是本申请实施例提供的一种控制装置的结构示意性框图。The embodiment of the present application further provides a control device, the control device is used to control the first motor or the second motor, the initial device identifiers of the first motor and the second motor are the same, and the virtual device identifier set for the second motor is the same as the initial device identifier. Device IDs are different. Please refer to FIG. 6 . FIG. 6 is a schematic structural block diagram of a control apparatus provided by an embodiment of the present application.
如图6所示,该控制装置300包括一个或多个处理器301和存储器302,一个或多个处理器301和存储器302通过总线303连接,该总线303比如为I2C(Inter-integrated Circuit)总线。As shown in FIG. 6 , the control device 300 includes one or more processors 301 and a memory 302, and the one or more processors 301 and the memory 302 are connected through a bus 303, such as an I2C (Inter-integrated Circuit) bus .
具体地,一个或多个处理器301可以是微控制单元(Micro-controller Unit,MCU)、中央处理单元(Central Processing Unit,CPU)或数字信号处理器(Digital Signal Processor,DSP)等。Specifically, one or more processors 301 may be a micro-controller unit (Micro-controller Unit, MCU), a central processing unit (Central Processing Unit, CPU), or a digital signal processor (Digital Signal Processor, DSP), etc.
具体地,存储器302可以是Flash芯片、只读存储器(ROM,Read-Only Memory)磁盘、光盘、U盘或移动硬盘等。Specifically, the memory 302 may be a Flash chip, a read-only memory (ROM, Read-Only Memory) magnetic disk, an optical disk, a U disk, a mobile hard disk, and the like.
其中,所述处理器301用于运行存储在存储器302中的计算机程序,并在执行所述计算机程序时实现如下步骤:Wherein, the processor 301 is used for running the computer program stored in the memory 302, and implements the following steps when executing the computer program:
获取电机控制指令,所述电机控制指令包括设备标识,所述设备标识用于区分所述电机控制指令的接收方,所述接收方为所述第一电机或所述第二电机;acquiring a motor control instruction, where the motor control instruction includes a device identifier, and the device identifier is used to distinguish the recipient of the motor control instruction, and the recipient is the first motor or the second motor;
若所述电机控制指令中的设备标识与所述初始设备标识相同,则向所述第一电机发送所述电机控制指令;If the device identifier in the motor control instruction is the same as the initial device identifier, send the motor control instruction to the first motor;
若所述电机控制指令中的设备标识与所述虚拟设备标识相同,则将所述电机控制指令中的设备标识修改为所述初始设备标识,以更新所述电机控制指令,并向所述第二电机发送更新后的所述电机控制指令。If the device identifier in the motor control instruction is the same as the virtual device identifier, modify the device identifier in the motor control instruction to the initial device identifier, so as to update the motor control instruction, and report to the first The second motor sends the updated motor control command.
在一实施例中,所述第一电机能够通过第一接口连接于云台设备,所述第二电机能够通过第二接口连接于所述云台设备。In one embodiment, the first motor can be connected to the gimbal device through a first interface, and the second motor can be connected to the gimbal device through a second interface.
在一实施例中,所述向所述第一电机发送所述电机控制指令,包括:In one embodiment, the sending the motor control command to the first motor includes:
通过所述第一接口向所述第一电机发送所述电机控制指令;Send the motor control command to the first motor through the first interface;
所述向所述第二电机发送更新后的所述电机控制指令,包括:The sending the updated motor control instruction to the second motor includes:
通过所述第二接口向所述第二电机发送更新后的所述电机控制指令。Send the updated motor control command to the second motor through the second interface.
在一实施例中,所述电机控制指令是基于用户对转动装置的操作生成的,所述转动装置与云台设备通过有线或无线的方式通信连接。In one embodiment, the motor control instruction is generated based on a user's operation on a rotating device, and the rotating device is connected to the PTZ device in a wired or wireless manner.
在一实施例中,所述转动装置包括第一转动装置或第二转动装置,所述第一转动装置用于控制所述第一电机,所述第二转动装置用于控制所述第二电机。In one embodiment, the rotating device includes a first rotating device or a second rotating device, the first rotating device is used to control the first motor, and the second rotating device is used to control the second motor .
在一实施例中,所述电机控制指令是基于用户对所述第一转动装置的操作生成的,所述电机控制指令中的设备标识与所述初始设备标识相同。In an embodiment, the motor control instruction is generated based on a user's operation on the first rotating device, and the device identification in the motor control instruction is the same as the initial device identification.
在一实施例中,所述电机控制指令是基于用户对所述第二转动装置的操作生成的,所述电机控制指令中的设备标识与所述虚拟设备标识相同。In an embodiment, the motor control instruction is generated based on a user's operation on the second rotating device, and the device identifier in the motor control instruction is the same as the virtual device identifier.
在一实施例中,所述一个或多个处理器还用于实现以下步骤:In one embodiment, the one or more processors are further configured to implement the following steps:
获取所述第一电机发送的第一电机推送信息,所述第一电机推送消息包括所述初始设备标识;acquiring first motor push information sent by the first motor, where the first motor push message includes the initial device identifier;
将所述第一电机推送信息发送给所述第一转动装置。Sending the first motor push information to the first rotating device.
在一实施例中,所述一个或多个处理器还用于实现以下步骤:In one embodiment, the one or more processors are further configured to implement the following steps:
获取所述第二电机发送的第二电机推送信息,所述第二电机推送信息包括所述初始设备标识;acquiring second motor push information sent by the second motor, where the second motor push information includes the initial device identifier;
将所述第二电机推送信息中的所述初始设备标识修改为所述虚拟设备标识,以更新所述第二电机推送信息,并向所述第二转动装置发送更新后的所述第二电机推送信息。Modify the initial device identification in the second motor push information to the virtual device identification to update the second motor push information, and send the updated second motor to the second rotating device Push information.
在一实施例中,所述转动装置具有第一控制模式和第二控制模式,在所述第一控制模式下,所述转动装置用于控制所述第一电机,在所述第二控制模式下,所述转动装置用于控制所述第二电机。In one embodiment, the rotating device has a first control mode and a second control mode. In the first control mode, the rotating device is used to control the first motor, and in the second control mode Next, the rotating device is used to control the second motor.
在一实施例中,所述电机控制指令是在所述第一控制模式下基于用户对所述转动装置的操作生成的,所述电机控制指令中的设备标识与所述初始设备标识相同。In an embodiment, the motor control instruction is generated based on a user's operation of the rotating device in the first control mode, and the device identifier in the motor control instruction is the same as the initial device identifier.
在一实施例中,所述电机控制指令是在所述第二控制模式下基于用户对所述转动装置的操作生成的,所述电机控制指令中的设备标识与所述虚拟设备标识相同。In an embodiment, the motor control instruction is generated based on a user's operation on the rotating device in the second control mode, and the device identifier in the motor control instruction is the same as the virtual device identifier.
在一实施例中,所述一个或多个处理器还用于实现以下步骤:In one embodiment, the one or more processors are further configured to implement the following steps:
获取所述第一电机发送的第一电机推送信息,所述第一电机推送消息包括所述初始设备标识;acquiring first motor push information sent by the first motor, where the first motor push message includes the initial device identifier;
将所述第一电机推送信息发送给所述转动装置。Sending the first motor push information to the rotating device.
在一实施例中,所述一个或多个处理器还用于实现以下步骤:In one embodiment, the one or more processors are further configured to implement the following steps:
获取所述第二电机发送的第二电机推送信息,所述第二电机推送信息包括所述初始设备标识;acquiring second motor push information sent by the second motor, where the second motor push information includes the initial device identifier;
将所述第二电机推送信息中的所述初始设备标识修改为所述虚拟设备标识,以更新所述第二电机推送信息,并向所述转动装置发送更新后的所述第二电机推送信息。Modify the initial device identification in the second motor push information to the virtual device identification to update the second motor push information, and send the updated second motor push information to the rotating device .
在一实施例中,所述第一电机能够与拍摄设备连接以调整所述拍摄设备的第一拍摄参数,所述第二电机能够与所述拍摄设备连接以调整所述拍摄设备的第二拍摄参数。In one embodiment, the first motor can be connected to a photographing device to adjust a first photographing parameter of the photographing device, and the second motor can be connected to the photographing device to adjust a second photographing of the photographing device parameter.
在一实施例中,所述一个或多个处理器还用于实现以下步骤:In one embodiment, the one or more processors are further configured to implement the following steps:
获取所述拍摄设备的第一拍摄参数或第二拍摄参数的当前数值;obtaining the current value of the first shooting parameter or the second shooting parameter of the shooting device;
若所述第一拍摄参数的当前数值不处于第一预设数值范围内,或者若所述第二拍摄参数的当前数值不处于第二预设数值范围内,则增大所述转动装置的 转动阻尼。If the current value of the first shooting parameter is not within the first preset value range, or if the current value of the second shooting parameter is not within the second preset value range, increase the rotation of the rotating device damping.
在一实施例中,所述第一预设数值范围与所述第一拍摄参数的最小数值和最大数值相关,所述第二预设数值范围与所述第二拍摄参数的最小数值和最大数值相关。In one embodiment, the first preset value range is related to the minimum value and the maximum value of the first shooting parameter, and the second preset value range is related to the minimum value and the maximum value of the second shooting parameter. related.
需要说明的是,所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的控制装置的具体工作过程,可以参考前述电机控制方法实施例中的对应过程,在此不再赘述。It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of description, for the specific working process of the control device described above, reference may be made to the corresponding process in the foregoing motor control method embodiment, which is not repeated here. Repeat.
请参阅图7,图7是本申请实施例提供的一种拍摄系统的结构示意性框图。Please refer to FIG. 7 . FIG. 7 is a schematic structural block diagram of a photographing system provided by an embodiment of the present application.
如图7所示,拍摄系统400包括云台设备410、搭载于云台设备410上的拍摄设备420、转动装置430、如本申请说明书提供的任一项的控制装置440以及与云台设备420连接的第一电机450和第二电机460。其中,第一电机450能够与拍摄设备420连接以调整拍摄设备420的第一拍摄参数,第二电机460能够与拍摄设备420连接以调整拍摄设备420的第二拍摄参数。As shown in FIG. 7 , the shooting system 400 includes a pan-tilt device 410 , a shooting device 420 mounted on the pan-tilt device 410 , a rotation device 430 , a control device 440 as provided in any of the descriptions of the present application, and a pan-tilt device 420 . The first motor 450 and the second motor 460 are connected. The first motor 450 can be connected to the photographing device 420 to adjust the first photographing parameters of the photographing device 420 , and the second motor 460 can be connected to the photographing device 420 to adjust the second photographing parameters of the photographing device 420 .
在一实施例中,云台设备410包括手柄部,转动装置430设置于手柄部并与云台设备410电连接。可以理解的是,转动装置430也可以通过无线的方式与云台设备410连接。In one embodiment, the pan-tilt device 410 includes a handle portion, and the rotating device 430 is disposed on the handle portion and is electrically connected to the pan-tilt device 410 . It can be understood that, the rotating device 430 can also be connected to the PTZ device 410 in a wireless manner.
可选地,云台设备410可以通过控制线与拍摄设备420连接,以调节搭载于云台102上的拍摄设备420的拍摄参数。该控制线可以为快门线,此处不限定快门线的种类,例如,该快门线可以是通用串行总线(Universal Serial Bus,USB)。Optionally, the pan/tilt device 410 may be connected to the photographing device 420 through a control line to adjust the photographing parameters of the photographing device 420 mounted on the pan/tilt 102 . The control wire may be a shutter wire, and the type of the shutter wire is not limited here, for example, the shutter wire may be a Universal Serial Bus (Universal Serial Bus, USB).
需要说明的是,所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,上述描述的拍摄系统的具体工作过程,可以参考前述电机控制方法实施例中的对应过程,在此不再赘述。It should be noted that those skilled in the art can clearly understand that, for the convenience and brevity of the description, for the specific working process of the shooting system described above, reference may be made to the corresponding process in the foregoing motor control method embodiment, which is not repeated here. Repeat.
本申请实施例还提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序中包括程序指令,所述处理器执行所述程序指令,实现上述实施例提供的电机控制方法的步骤。Embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and the computer program includes program instructions, and the processor executes the program instructions to realize the provision of the above embodiments. The steps of the motor control method.
其中,所述计算机可读存储介质可以是前述任一实施例所述的控制装置或云台设备的内部存储单元,例如所述控制装置或云台设备的硬盘或内存。所述计算机可读存储介质也可以是所述控制装置或云台设备的外部存储设备,例如所述控制装置或云台设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。The computer-readable storage medium may be an internal storage unit of the control apparatus or the PTZ device described in any of the foregoing embodiments, for example, a hard disk or memory of the control apparatus or the PTZ device. The computer-readable storage medium may also be an external storage device of the control device or the PTZ device, for example, a plug-in hard disk, a smart memory card (Smart Media Card, SMC) equipped on the control device or the PTZ device. , Secure Digital (SD) card, flash memory card (Flash Card), etc.
应当理解,在此本申请说明书中所使用的术语仅仅是出于描述特定实施例 的目的而并不意在限制本申请。如在本申请说明书和所附权利要求书中所使用的那样,除非上下文清楚地指明其它情况,否则单数形式的“一”、“一个”及“该”意在包括复数形式。It should be understood that the terms used in the specification of the present application herein are for the purpose of describing particular embodiments only and are not intended to limit the present application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural unless the context clearly dictates otherwise.
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。It will also be understood that, as used in this specification and the appended claims, the term "and/or" refers to and including any and all possible combinations of one or more of the associated listed items.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of various equivalents within the technical scope disclosed in the present application. Modifications or substitutions shall be covered by the protection scope of this application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (36)

  1. 一种电机控制方法,其特征在于,所述电机包括第一电机或第二电机,所述第一电机和所述第二电机的初始设备标识相同,为所述第二电机设置的虚拟设备标识与所述初始设备标识不同,所述方法包括:A motor control method, characterized in that the motor includes a first motor or a second motor, the initial device identifiers of the first motor and the second motor are the same, and the virtual device identifier set for the second motor Unlike the initial equipment identification, the method includes:
    获取电机控制指令,所述电机控制指令包括设备标识,所述设备标识用于区分所述电机控制指令的接收方,所述接收方为所述第一电机或所述第二电机;acquiring a motor control instruction, where the motor control instruction includes a device identifier, and the device identifier is used to distinguish the recipient of the motor control instruction, and the recipient is the first motor or the second motor;
    若所述电机控制指令中的设备标识与所述初始设备标识相同,则向所述第一电机发送所述电机控制指令;If the device identifier in the motor control instruction is the same as the initial device identifier, send the motor control instruction to the first motor;
    若所述电机控制指令中的设备标识与所述虚拟设备标识相同,则将所述电机控制指令中的设备标识修改为所述初始设备标识,以更新所述电机控制指令,并向所述第二电机发送更新后的所述电机控制指令。If the device identifier in the motor control instruction is the same as the virtual device identifier, modify the device identifier in the motor control instruction to the initial device identifier, so as to update the motor control instruction, and report to the first The second motor sends the updated motor control command.
  2. 根据权利要求1所述的电机控制方法,其特征在于,所述第一电机能够通过第一接口连接于云台设备,所述第二电机能够通过第二接口连接于所述云台设备。The motor control method according to claim 1, wherein the first motor can be connected to the pan-tilt device through a first interface, and the second motor can be connected to the pan-tilt device through a second interface.
  3. 根据权利要求2所述的电机控制方法,其特征在于,所述向所述第一电机发送所述电机控制指令,包括:The motor control method according to claim 2, wherein the sending the motor control command to the first motor comprises:
    通过所述第一接口向所述第一电机发送所述电机控制指令;Send the motor control command to the first motor through the first interface;
    所述向所述第二电机发送更新后的所述电机控制指令,包括:The sending the updated motor control instruction to the second motor includes:
    通过所述第二接口向所述第二电机发送更新后的所述电机控制指令。Send the updated motor control command to the second motor through the second interface.
  4. 根据权利要求1所述的电机控制方法,其特征在于,所述电机控制指令是基于用户对转动装置的操作生成的,所述转动装置与云台设备通过有线或无线的方式通信连接。The motor control method according to claim 1, wherein the motor control instruction is generated based on a user's operation on a rotating device, and the rotating device is connected to the PTZ device through wired or wireless communication.
  5. 根据权利要求4所述的电机控制方法,其特征在于,所述转动装置包括第一转动装置或第二转动装置,所述第一转动装置用于控制所述第一电机,所述第二转动装置用于控制所述第二电机。The motor control method according to claim 4, wherein the rotating device comprises a first rotating device or a second rotating device, the first rotating device is used to control the first motor, and the second rotating device is used for controlling the first motor. Means are used to control the second motor.
  6. 根据权利要求5所述的电机控制方法,其特征在于,所述电机控制指令是基于用户对所述第一转动装置的操作生成的,所述电机控制指令中的设备标识与所述初始设备标识相同。The motor control method according to claim 5, wherein the motor control instruction is generated based on a user's operation on the first rotating device, and the device identifier in the motor control instruction is the same as the initial device identifier. same.
  7. 根据权利要求5所述的电机控制方法,其特征在于,所述电机控制指令是基于用户对所述第二转动装置的操作生成的,所述电机控制指令中的设备标 识与所述虚拟设备标识相同。The motor control method according to claim 5, wherein the motor control instruction is generated based on a user's operation on the second rotating device, and the device identifier in the motor control instruction is the same as the virtual device identifier. same.
  8. 根据权利要求5所述的电机控制方法,其特征在于,所述方法还包括:The motor control method according to claim 5, wherein the method further comprises:
    获取所述第一电机发送的第一电机推送信息,所述第一电机推送消息包括所述初始设备标识;acquiring first motor push information sent by the first motor, where the first motor push message includes the initial device identifier;
    将所述第一电机推送信息发送给所述第一转动装置。Sending the first motor push information to the first rotating device.
  9. 根据权利要求5所述的电机控制方法,其特征在于,所述方法还包括:The motor control method according to claim 5, wherein the method further comprises:
    获取所述第二电机发送的第二电机推送信息,所述第二电机推送信息包括所述初始设备标识;acquiring second motor push information sent by the second motor, where the second motor push information includes the initial device identifier;
    将所述第二电机推送信息中的所述初始设备标识修改为所述虚拟设备标识,以更新所述第二电机推送信息,并向所述第二转动装置发送更新后的所述第二电机推送信息。Modify the initial device identification in the second motor push information to the virtual device identification to update the second motor push information, and send the updated second motor to the second rotating device Push information.
  10. 根据权利要求4所述的电机控制方法,其特征在于,所述转动装置具有第一控制模式和第二控制模式,在所述第一控制模式下,所述转动装置用于控制所述第一电机,在所述第二控制模式下,所述转动装置用于控制所述第二电机。The motor control method according to claim 4, wherein the rotating device has a first control mode and a second control mode, and in the first control mode, the rotating device is used to control the first control mode. a motor, and in the second control mode, the rotating device is used to control the second motor.
  11. 根据权利要求10所述的电机控制方法,其特征在于,所述电机控制指令是在所述第一控制模式下基于用户对所述转动装置的操作生成的,所述电机控制指令中的设备标识与所述初始设备标识相同。The motor control method according to claim 10, wherein the motor control instruction is generated based on a user's operation on the rotating device in the first control mode, and the device identifier in the motor control instruction Same as the initial equipment identification.
  12. 根据权利要求10所述的电机控制方法,其特征在于,所述电机控制指令是在所述第二控制模式下基于用户对所述转动装置的操作生成的,所述电机控制指令中的设备标识与所述虚拟设备标识相同。The motor control method according to claim 10, wherein the motor control instruction is generated based on a user's operation on the rotating device in the second control mode, and the device identifier in the motor control instruction The same as the virtual device ID.
  13. 根据权利要求10所述的电机控制方法,其特征在于,所述方法还包括:The motor control method according to claim 10, wherein the method further comprises:
    获取所述第一电机发送的第一电机推送信息,所述第一电机推送消息包括所述初始设备标识;acquiring first motor push information sent by the first motor, where the first motor push message includes the initial device identifier;
    将所述第一电机推送信息发送给所述转动装置。Sending the first motor push information to the rotating device.
  14. 根据权利要求10所述的电机控制方法,其特征在于,所述方法还包括:The motor control method according to claim 10, wherein the method further comprises:
    获取所述第二电机发送的第二电机推送信息,所述第二电机推送信息包括所述初始设备标识;acquiring second motor push information sent by the second motor, where the second motor push information includes the initial device identifier;
    将所述第二电机推送信息中的所述初始设备标识修改为所述虚拟设备标识,以更新所述第二电机推送信息,并向所述转动装置发送更新后的所述第二电机推送信息。Modify the initial device identification in the second motor push information to the virtual device identification to update the second motor push information, and send the updated second motor push information to the rotating device .
  15. 根据权利要求4-14中任一项所述的电机控制方法,其特征在于,所述 第一电机能够与拍摄设备连接以调整所述拍摄设备的第一拍摄参数,所述第二电机能够与所述拍摄设备连接以调整所述拍摄设备的第二拍摄参数。The motor control method according to any one of claims 4-14, wherein the first motor can be connected with a photographing device to adjust the first photographing parameter of the photographing device, and the second motor can be connected with a photographing device. The photographing device is connected to adjust a second photographing parameter of the photographing device.
  16. 根据权利要求15所述的电机控制方法,其特征在于,所述方法还包括:The motor control method according to claim 15, wherein the method further comprises:
    获取所述拍摄设备的第一拍摄参数或第二拍摄参数的当前数值;obtaining the current value of the first shooting parameter or the second shooting parameter of the shooting device;
    若所述第一拍摄参数的当前数值不处于第一预设数值范围内,或者若所述第二拍摄参数的当前数值不处于第二预设数值范围内,则增大所述转动装置的转动阻尼。If the current value of the first shooting parameter is not within the first preset value range, or if the current value of the second shooting parameter is not within the second preset value range, increase the rotation of the rotating device damping.
  17. 根据权利要求16所述的电机控制方法,其特征在于,所述第一预设数值范围与所述第一拍摄参数的最小数值和最大数值相关,所述第二预设数值范围与所述第二拍摄参数的最小数值和最大数值相关。The motor control method according to claim 16, wherein the first preset value range is related to a minimum value and a maximum value of the first shooting parameter, and the second preset value range is related to the first shooting parameter. The minimum value and the maximum value of the two shooting parameters are related.
  18. 一种控制装置,其特征在于,所述控制装置用于控制第一电机或第二电机,所述第一电机和所述第二电机的初始设备标识相同,为所述第二电机设置的虚拟设备标识与所述初始设备标识不同;A control device, characterized in that the control device is used to control a first motor or a second motor, the first motor and the second motor have the same initial device identification, and the virtual device set for the second motor The device identification is different from the initial device identification;
    所述控制装置包括存储器和一个或多个处理器;the control device includes a memory and one or more processors;
    所述存储器,用于存储计算机程序;the memory for storing computer programs;
    所述一个或多个处理器,用于执行所述计算机程序并在执行所述计算机程序时,实现如下步骤:The one or more processors are configured to execute the computer program and implement the following steps when executing the computer program:
    获取电机控制指令,所述电机控制指令包括设备标识,所述设备标识用于区分所述电机控制指令的接收方,所述接收方为所述第一电机或所述第二电机;acquiring a motor control instruction, where the motor control instruction includes a device identifier, and the device identifier is used to distinguish the recipient of the motor control instruction, and the recipient is the first motor or the second motor;
    若所述电机控制指令中的设备标识与所述初始设备标识相同,则向所述第一电机发送所述电机控制指令;If the device identifier in the motor control instruction is the same as the initial device identifier, send the motor control instruction to the first motor;
    若所述电机控制指令中的设备标识与所述虚拟设备标识相同,则将所述电机控制指令中的设备标识修改为所述初始设备标识,以更新所述电机控制指令,并向所述第二电机发送更新后的所述电机控制指令。If the device identifier in the motor control instruction is the same as the virtual device identifier, modify the device identifier in the motor control instruction to the initial device identifier, so as to update the motor control instruction, and report to the first The second motor sends the updated motor control command.
  19. 根据权利要求18所述的控制装置,其特征在于,所述第一电机能够通过第一接口连接于云台设备,所述第二电机能够通过第二接口连接于所述云台设备。The control device according to claim 18, wherein the first motor can be connected to the PTZ device through a first interface, and the second motor can be connected to the PTZ device through a second interface.
  20. 根据权利要求19所述的控制装置,其特征在于,所述向所述第一电机发送所述电机控制指令,包括:The control device according to claim 19, wherein the sending the motor control command to the first motor comprises:
    通过所述第一接口向所述第一电机发送所述电机控制指令;Send the motor control command to the first motor through the first interface;
    所述向所述第二电机发送更新后的所述电机控制指令,包括:The sending the updated motor control instruction to the second motor includes:
    通过所述第二接口向所述第二电机发送更新后的所述电机控制指令。Send the updated motor control command to the second motor through the second interface.
  21. 根据权利要求18所述的控制装置,其特征在于,所述电机控制指令是基于用户对转动装置的操作生成的,所述转动装置与云台设备通过有线或无线的方式通信连接。The control device according to claim 18, wherein the motor control instruction is generated based on a user's operation on a rotating device, and the rotating device is connected to the pan/tilt device through wired or wireless communication.
  22. 根据权利要求21所述的控制装置,其特征在于,所述转动装置包括第一转动装置或第二转动装置,所述第一转动装置用于控制所述第一电机,所述第二转动装置用于控制所述第二电机。The control device according to claim 21, wherein the rotating device comprises a first rotating device or a second rotating device, the first rotating device is used to control the first motor, and the second rotating device for controlling the second motor.
  23. 根据权利要求22所述的控制装置,其特征在于,所述电机控制指令是基于用户对所述第一转动装置的操作生成的,所述电机控制指令中的设备标识与所述初始设备标识相同。The control device according to claim 22, wherein the motor control instruction is generated based on a user's operation on the first rotating device, and the device identification in the motor control instruction is the same as the initial device identification .
  24. 根据权利要求22所述的控制装置,其特征在于,所述电机控制指令是基于用户对所述第二转动装置的操作生成的,所述电机控制指令中的设备标识与所述虚拟设备标识相同。The control device according to claim 22, wherein the motor control instruction is generated based on a user's operation on the second rotating device, and the device identification in the motor control instruction is the same as the virtual device identification .
  25. 根据权利要求22所述的控制装置,其特征在于,所述一个或多个处理器还用于实现以下步骤:The control device of claim 22, wherein the one or more processors are further configured to implement the following steps:
    获取所述第一电机发送的第一电机推送信息,所述第一电机推送消息包括所述初始设备标识;acquiring first motor push information sent by the first motor, where the first motor push message includes the initial device identifier;
    将所述第一电机推送信息发送给所述第一转动装置。Sending the first motor push information to the first rotating device.
  26. 根据权利要求22所述的控制装置,其特征在于,所述一个或多个处理器还用于实现以下步骤:The control device of claim 22, wherein the one or more processors are further configured to implement the following steps:
    获取所述第二电机发送的第二电机推送信息,所述第二电机推送信息包括所述初始设备标识;acquiring second motor push information sent by the second motor, where the second motor push information includes the initial device identifier;
    将所述第二电机推送信息中的所述初始设备标识修改为所述虚拟设备标识,以更新所述第二电机推送信息,并向所述第二转动装置发送更新后的所述第二电机推送信息。Modify the initial device identification in the second motor push information to the virtual device identification to update the second motor push information, and send the updated second motor to the second rotating device Push information.
  27. 根据权利要求21所述的控制装置,其特征在于,所述转动装置具有第一控制模式和第二控制模式,在所述第一控制模式下,所述转动装置用于控制所述第一电机,在所述第二控制模式下,所述转动装置用于控制所述第二电机。The control device according to claim 21, wherein the rotating device has a first control mode and a second control mode, and in the first control mode, the rotating device is used to control the first motor , in the second control mode, the rotating device is used to control the second motor.
  28. 根据权利要求27所述的控制装置,其特征在于,所述电机控制指令是在所述第一控制模式下基于用户对所述转动装置的操作生成的,所述电机控制指令中的设备标识与所述初始设备标识相同。The control device according to claim 27, wherein the motor control command is generated based on a user's operation on the rotating device in the first control mode, and the device identifier in the motor control command is the same as the one in the motor control command. The initial equipment identifiers are the same.
  29. 根据权利要求27所述的控制装置,其特征在于,所述电机控制指令是在所述第二控制模式下基于用户对所述转动装置的操作生成的,所述电机控制 指令中的设备标识与所述虚拟设备标识相同。The control device according to claim 27, wherein the motor control command is generated based on a user's operation on the rotating device in the second control mode, and the device identifier in the motor control command is the same as the The virtual device identifiers are the same.
  30. 根据权利要求27所述的控制装置,其特征在于,所述一个或多个处理器还用于实现以下步骤:The control device of claim 27, wherein the one or more processors are further configured to implement the following steps:
    获取所述第一电机发送的第一电机推送信息,所述第一电机推送消息包括所述初始设备标识;acquiring first motor push information sent by the first motor, where the first motor push message includes the initial device identifier;
    将所述第一电机推送信息发送给所述转动装置。Sending the first motor push information to the rotating device.
  31. 根据权利要求27所述的控制装置,其特征在于,所述一个或多个处理器还用于实现以下步骤:The control device of claim 27, wherein the one or more processors are further configured to implement the following steps:
    获取所述第二电机发送的第二电机推送信息,所述第二电机推送信息包括所述初始设备标识;acquiring second motor push information sent by the second motor, where the second motor push information includes the initial device identifier;
    将所述第二电机推送信息中的所述初始设备标识修改为所述虚拟设备标识,以更新所述第二电机推送信息,并向所述转动装置发送更新后的所述第二电机推送信息。Modify the initial device identification in the second motor push information to the virtual device identification to update the second motor push information, and send the updated second motor push information to the rotating device .
  32. 根据权利要求21-31中任一项所述的控制装置,其特征在于,所述第一电机能够与拍摄设备连接以调整所述拍摄设备的第一拍摄参数,所述第二电机能够与所述拍摄设备连接以调整所述拍摄设备的第二拍摄参数。The control device according to any one of claims 21-31, wherein the first motor can be connected with a photographing device to adjust the first photographing parameter of the photographing device, and the second motor can be connected with the photographing device. The photographing device is connected to adjust the second photographing parameter of the photographing device.
  33. 根据权利要求32所述的控制装置,其特征在于,所述一个或多个处理器还用于实现以下步骤:The control device of claim 32, wherein the one or more processors are further configured to implement the following steps:
    获取所述拍摄设备的第一拍摄参数或第二拍摄参数的当前数值;obtaining the current value of the first shooting parameter or the second shooting parameter of the shooting device;
    若所述第一拍摄参数的当前数值不处于第一预设数值范围内,或者若所述第二拍摄参数的当前数值不处于第二预设数值范围内,则增大所述转动装置的转动阻尼。If the current value of the first shooting parameter is not within the first preset value range, or if the current value of the second shooting parameter is not within the second preset value range, increase the rotation of the rotating device damping.
  34. 根据权利要求33所述的控制装置,其特征在于,所述第一预设数值范围与所述第一拍摄参数的最小数值和最大数值相关,所述第二预设数值范围与所述第二拍摄参数的最小数值和最大数值相关。The control device according to claim 33, wherein the first preset value range is related to a minimum value and a maximum value of the first shooting parameter, and the second preset value range is related to the second preset value range. The minimum and maximum values of the shooting parameters are related.
  35. 一种拍摄系统,其特征在于,所述拍摄系统包括云台设备、搭载于所述云台设备上的拍摄设备、转动装置、如权利要求18-34中任一项所述的控制装置以及与所述云台设备连接的第一电机和第二电机。A photographing system, characterized in that the photographing system comprises a PTZ device, a PTZ device mounted on the PTZ device, a rotating device, the control device according to any one of claims 18-34, and a The first motor and the second motor connected to the PTZ device.
  36. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时使所述处理器实现如权利要求1-17中任一项所述的电机控制方法的步骤。A computer-readable storage medium, characterized in that, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the processor implements the method described in any one of claims 1-17. The steps of the motor control method described above.
PCT/CN2020/106394 2020-07-31 2020-07-31 Electric motor control method, apparatus and system, and computer-readable storage medium WO2022021416A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2020/106394 WO2022021416A1 (en) 2020-07-31 2020-07-31 Electric motor control method, apparatus and system, and computer-readable storage medium
CN202080007151.3A CN113228618A (en) 2020-07-31 2020-07-31 Motor control method, device and system and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/106394 WO2022021416A1 (en) 2020-07-31 2020-07-31 Electric motor control method, apparatus and system, and computer-readable storage medium

Publications (1)

Publication Number Publication Date
WO2022021416A1 true WO2022021416A1 (en) 2022-02-03

Family

ID=77086026

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/106394 WO2022021416A1 (en) 2020-07-31 2020-07-31 Electric motor control method, apparatus and system, and computer-readable storage medium

Country Status (2)

Country Link
CN (1) CN113228618A (en)
WO (1) WO2022021416A1 (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0457039A (en) * 1990-06-27 1992-02-24 Minolta Camera Co Ltd Pulse encoder signal processing circuit
CN1530784A (en) * 2003-03-17 2004-09-22 发那科株式会社 Numerical value controller
CN103472844A (en) * 2013-09-24 2013-12-25 慈溪迈思特电子科技有限公司 Mobile platform positioning system based on electronic tag automatic correcting
CN104995575A (en) * 2014-07-21 2015-10-21 深圳市大疆创新科技有限公司 Method and device of data processing and aircraft
CN205910596U (en) * 2016-06-23 2017-01-25 零度智控(北京)智能科技有限公司 Tripod head control circuit , system and unmanned aerial vehicle
CN210128227U (en) * 2019-06-27 2020-03-06 深圳市大疆创新科技有限公司 Hand-held cloud platform
CN111324150A (en) * 2018-12-14 2020-06-23 浙江宇视科技有限公司 Automatic motor identification method and device and camera equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005033670A (en) * 2003-07-10 2005-02-03 Yaskawa Electric Corp Field network system, its device id setting method, setting tool, and motor drive
KR100781510B1 (en) * 2005-05-10 2007-12-03 삼성전자주식회사 Apparatus, system and method for generating of identification information about A/V device on the A/V network
CN109725540B (en) * 2018-12-10 2022-09-09 深圳绿米联创科技有限公司 Equipment control method and device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0457039A (en) * 1990-06-27 1992-02-24 Minolta Camera Co Ltd Pulse encoder signal processing circuit
CN1530784A (en) * 2003-03-17 2004-09-22 发那科株式会社 Numerical value controller
CN103472844A (en) * 2013-09-24 2013-12-25 慈溪迈思特电子科技有限公司 Mobile platform positioning system based on electronic tag automatic correcting
CN104995575A (en) * 2014-07-21 2015-10-21 深圳市大疆创新科技有限公司 Method and device of data processing and aircraft
CN205910596U (en) * 2016-06-23 2017-01-25 零度智控(北京)智能科技有限公司 Tripod head control circuit , system and unmanned aerial vehicle
CN111324150A (en) * 2018-12-14 2020-06-23 浙江宇视科技有限公司 Automatic motor identification method and device and camera equipment
CN210128227U (en) * 2019-06-27 2020-03-06 深圳市大疆创新科技有限公司 Hand-held cloud platform

Also Published As

Publication number Publication date
CN113228618A (en) 2021-08-06

Similar Documents

Publication Publication Date Title
US10605250B2 (en) Fan and method and device for controlling the fan
US10638046B2 (en) Wearable device, control apparatus, photographing control method and automatic imaging apparatus
US9363428B2 (en) Image processing apparatus and method
WO2022061537A1 (en) Control method, handheld gimbal, system, and computer-readable storage medium
US8908916B2 (en) Control apparatus, control method, and program to search for a subject and automatically perform image-recording
WO2021026752A1 (en) Tripod head control method, tripod head, and computer-readable storage medium
JP2006509460A (en) Digital camera with removable display that can be used as a remote control
WO2013170834A2 (en) Photographing method, device and terminal
TW201904264A (en) Focusing method, device, computer readable storage medium, and terminal
WO2021026789A1 (en) Photographing method based on handheld gimbal, and handheld gimbal and storage medium
CN109076101B (en) Holder control method, device and computer readable storage medium
JP2023539800A (en) Stabilizer for photography equipment
EP3751837A1 (en) Method and apparatus for controlling handheld gimbal, and handheld gimbal
WO2021026764A1 (en) Photographing terminal control method and system, and handheld gimbal and readable storage medium
WO2014169598A1 (en) Photography method and device, and mobile terminal
WO2022021416A1 (en) Electric motor control method, apparatus and system, and computer-readable storage medium
WO2021134644A1 (en) Gimbal control method and gimbal
WO2020000423A1 (en) Control method for gimbal, gimbal, aerial vehicle, and computer-readable storage medium
JP2019114049A (en) Processor, display system, and program
JP6950793B2 (en) Electronics and programs
WO2022021415A1 (en) Operation feedback method of rotating apparatus, control apparatus, photographing system, and storage medium
JP2020013086A (en) Interchangeable lens and method of transmitting data
WO2021026784A1 (en) Tracking photography method, gimbal control method, photographic apparatus, handheld gimbal and photographic system
WO2022061540A1 (en) Control method, focus control method, apparatus, handheld platform and storage medium
WO2021258308A1 (en) Zoom control method and apparatus, and handheld gimbal and computer-readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20947137

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20947137

Country of ref document: EP

Kind code of ref document: A1