diff --git a/libraries/AP_HAL_ChibiOS/hwdef/scripts/STM32F767xx.py b/libraries/AP_HAL_ChibiOS/hwdef/scripts/STM32F767xx.py index 8b53402d9a..8158b665a9 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/scripts/STM32F767xx.py +++ b/libraries/AP_HAL_ChibiOS/hwdef/scripts/STM32F767xx.py @@ -544,7 +544,7 @@ AltFunction_map = { "PC6:USART6_TX" : 8, "PC6:DFSDM1_CKIN3" : 7, "PC6:FMC_NWAIT" : 9, - "PC6:SDMMC_D6" : 10, + "PC6:SDMMC2_D6" : 10, "PC7:DCMI_D1" : 13, "PC7:EVENTOUT" : 15, "PC7:I2S3_MCK" : 6, diff --git a/libraries/AP_InertialSensor/examples/coning.py b/libraries/AP_InertialSensor/examples/coning.py index 40721fc97a..cd3bc0e857 100755 --- a/libraries/AP_InertialSensor/examples/coning.py +++ b/libraries/AP_InertialSensor/examples/coning.py @@ -207,7 +207,7 @@ def filter2p_1khz_30hz(sample, key): (delay_element_1, delay_element_2) = filter2p_1khz_30hz_data[key] sample_freq = 1000 cutoff_freq = 30 - fr = sample_freq/cutoff_freq + fr = sample_freq // cutoff_freq ohm = tan(pi/fr) c = 1.0+2.0*cos(pi/4.0)*ohm + ohm**2 b0 = ohm**2/c