AP_Mount: Change from division to multiplication

This commit is contained in:
murata 2022-03-12 02:36:59 +09:00 committed by Andrew Tridgell
parent db7fe2ba4e
commit 4eca7383b8

View File

@ -212,7 +212,7 @@ void AP_Mount_Alexmos::parse_body()
switch (_command_id ) {
case CMD_BOARD_INFO:
_board_version = _buffer.version._board_version/ 10;
_current_firmware_version = _buffer.version._firmware_version / 1000.0f ;
_current_firmware_version = _buffer.version._firmware_version * 0.001f ;
_firmware_beta_version = _buffer.version._firmware_version % 10 ;
_gimbal_3axis = (_buffer.version._board_features & 0x1);
_gimbal_bat_monitoring = (_buffer.version._board_features & 0x2);