mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
gyro_calibration uses simpler common bord indentity api
This commit is contained in:
committed by
Lorenz Meier
parent
7600aa51f7
commit
473c211eb0
@@ -450,11 +450,11 @@ int do_gyro_calibration(orb_advert_t *mavlink_log_pub)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* store board ID */
|
/* store board ID */
|
||||||
raw_uuid_uint32_t mcu_id;
|
uuid_uint32_t mcu_id;
|
||||||
board_get_uuid_raw32(mcu_id, NULL);
|
board_get_uuid32(mcu_id);
|
||||||
|
|
||||||
/* store last 32bit number - not unique, but unique in a given set */
|
/* store last 32bit number - not unique, but unique in a given set */
|
||||||
(void)param_set(param_find("CAL_BOARD_ID"), &mcu_id[2]);
|
(void)param_set(param_find("CAL_BOARD_ID"), &mcu_id[PX4_CPU_UUID_WORD32_UNIQUE_H]);
|
||||||
|
|
||||||
if (res == PX4_OK) {
|
if (res == PX4_OK) {
|
||||||
/* auto-save to EEPROM */
|
/* auto-save to EEPROM */
|
||||||
|
|||||||
Reference in New Issue
Block a user