mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_AHRS: add and use AP_CUSTOMROTATIONS_ENABLED
also add to build_options.py
This commit is contained in:
parent
73afd26465
commit
a836bd8583
@ -256,7 +256,7 @@ void AP_AHRS::init()
|
|||||||
external.init();
|
external.init();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !APM_BUILD_TYPE(APM_BUILD_AP_Periph)
|
#if AP_CUSTOMROTATIONS_ENABLED
|
||||||
// convert to new custom rotation
|
// convert to new custom rotation
|
||||||
// PARAMETER_CONVERSION - Added: Nov-2021
|
// PARAMETER_CONVERSION - Added: Nov-2021
|
||||||
if (_board_orientation == ROTATION_CUSTOM_OLD) {
|
if (_board_orientation == ROTATION_CUSTOM_OLD) {
|
||||||
@ -274,7 +274,7 @@ void AP_AHRS::init()
|
|||||||
AP::custom_rotations().convert(ROTATION_CUSTOM_1, rpy[0], rpy[1], rpy[2]);
|
AP::custom_rotations().convert(ROTATION_CUSTOM_1, rpy[0], rpy[1], rpy[2]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // !APM_BUILD_TYPE(APM_BUILD_AP_Periph)
|
#endif // AP_CUSTOMROTATIONS_ENABLED
|
||||||
}
|
}
|
||||||
|
|
||||||
// updates matrices responsible for rotating vectors from vehicle body
|
// updates matrices responsible for rotating vectors from vehicle body
|
||||||
|
Loading…
Reference in New Issue
Block a user