A distance measuring device executes a collection process that includes driving a MEMS mirror in each of a plurality of sensors and collecting a drive voltage of the MEMS mirror satisfying a given condition, executes a drive frequency determination process that includes determining a drive frequency of the MEMS mirror when measuring distances by the plurality of sensors based on the drive voltage of the MEMS mirror, and executes a control signal generation process that includes generating and transmitting a control signal to the plurality of sensors, the control signal including configuration information specifying the drive frequency as a drive frequency of the MEMS mirror in each of the plurality of sensors, the configuration information including the drive frequency determined by the drive frequency determination process.
展开▼