Browse Source

HAL_ChibiOS: fixes from LGTM errors

master
Andrew Tridgell 5 years ago
parent
commit
850892c3d9
  1. 2
      libraries/AP_HAL_ChibiOS/hwdef/scripts/STM32F767xx.py
  2. 2
      libraries/AP_InertialSensor/examples/coning.py

2
libraries/AP_HAL_ChibiOS/hwdef/scripts/STM32F767xx.py

@ -544,7 +544,7 @@ AltFunction_map = { @@ -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,

2
libraries/AP_InertialSensor/examples/coning.py

@ -207,7 +207,7 @@ def filter2p_1khz_30hz(sample, key): @@ -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

Loading…
Cancel
Save