Browse Source

AP_Mount: Change from division to multiplication

apm_2208
murata 3 years ago committed by Andrew Tridgell
parent
commit
4eca7383b8
  1. 2
      libraries/AP_Mount/AP_Mount_Alexmos.cpp

2
libraries/AP_Mount/AP_Mount_Alexmos.cpp

@ -212,7 +212,7 @@ void AP_Mount_Alexmos::parse_body() @@ -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);

Loading…
Cancel
Save