mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_ChibiOS: provide mcu defaults in betaflight conversion
This commit is contained in:
parent
2160a1afb4
commit
194f555c7b
|
@ -45,6 +45,7 @@ alignment = {
|
||||||
"CW90FLIP" : "ROTATION_ROLL_180",
|
"CW90FLIP" : "ROTATION_ROLL_180",
|
||||||
"CW180FLIP" : "ROTATION_ROLL_180_YAW_90",
|
"CW180FLIP" : "ROTATION_ROLL_180_YAW_90",
|
||||||
"CW270FLIP" : "ROTATION_PITCH_180",
|
"CW270FLIP" : "ROTATION_PITCH_180",
|
||||||
|
"DEFAULT" : "ROTATION_NONE",
|
||||||
}
|
}
|
||||||
|
|
||||||
parser = argparse.ArgumentParser("convert_betaflight_unified.py")
|
parser = argparse.ArgumentParser("convert_betaflight_unified.py")
|
||||||
|
@ -156,6 +157,11 @@ def convert_file(fname, board_id):
|
||||||
reserve_start = 96
|
reserve_start = 96
|
||||||
elif mcuclass == "H7":
|
elif mcuclass == "H7":
|
||||||
reserve_start = 384
|
reserve_start = 384
|
||||||
|
else:
|
||||||
|
mcuclass = "F4"
|
||||||
|
mcu = "F405"
|
||||||
|
flash_size = 1024
|
||||||
|
reserve_start = 48
|
||||||
|
|
||||||
# preamble
|
# preamble
|
||||||
|
|
||||||
|
@ -454,6 +460,11 @@ def convert_bootloader(fname, board_id):
|
||||||
reserve_start = 96
|
reserve_start = 96
|
||||||
elif mcuclass == "H7":
|
elif mcuclass == "H7":
|
||||||
reserve_start = 384
|
reserve_start = 384
|
||||||
|
else:
|
||||||
|
mcuclass = "F4"
|
||||||
|
mcu = "F405"
|
||||||
|
flash_size = 1024
|
||||||
|
reserve_start = 48
|
||||||
|
|
||||||
# preamble
|
# preamble
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue