实例介绍
【实例简介】
张飞无人机代码
【实例截图】
void atititude_Outer_loop_control(void){
/*pitch 俯仰角PID的控制 */
pitch_out = pid_angle_control(&Pitch,Expect.pitch,Eur.pitch);
/*roll 翻滚角PID的控制 */
roll_out = pid_angle_control(&Roll,Expect.roll,Eur.roll);
}
【核心代码】
void atititude_Outer_loop_control(void){
/*pitch 俯仰角PID的控制 */pitch_out = pid_angle_control(&Pitch,Expect.pitch,Eur.pitch);
/*roll 翻滚角PID的控制 */
roll_out = pid_angle_control(&Roll,Expect.roll,Eur.roll);
}
【文件目录】
无人机视频代码/FLY_V0(1)
├── FLY_V0.0(原始)
│ └── 讲课文件夹
│ ├── APP
│ │ ├── board_define.h
│ │ ├── initialize.c
│ │ ├── initialize.h
│ │ ├── main.c
│ │ ├── stm32f37x_conf.h
│ │ ├── stm32f37x_it.c
│ │ ├── stm32f37x_it.h
│ │ ├── var_global.c
│ │ └── var_global.h
│ ├── BSP
│ │ ├── Maths
│ │ │ ├── atititude_calculation.c
│ │ │ ├── atititude_calculation.h
│ │ │ ├── filter.c
│ │ │ ├── filter.h
│ │ │ ├── maths.c
│ │ │ └── maths.h
│ │ ├── Mcu_Driver
│ │ │ ├── GPIO.c
│ │ │ ├── GPIO.h
│ │ │ ├── adc.c
│ │ │ ├── adc.h
│ │ │ ├── i2c.c
│ │ │ ├── i2c.h
│ │ │ ├── pwm.c
│ │ │ ├── pwm.h
│ │ │ ├── systick.c
│ │ │ ├── systick.h
│ │ │ ├── uart.c
│ │ │ └── uart.h
│ │ ├── Periph_Driver
│ │ │ ├── led.c
│ │ │ ├── led.h
│ │ │ ├── motor_driver.c
│ │ │ ├── motor_driver.h
│ │ │ ├── mpu6500.c
│ │ │ ├── mpu6500.h
│ │ │ ├── nrf51822.c
│ │ │ └── nrf51822.h
│ │ └── sys_control
│ │ ├── pid.c
│ │ ├── pid.h
│ │ ├── system_control.c
│ │ └── system_control.h
│ ├── Doc
│ │ ├── 111
│ │ └── readme.txt
│ ├── Libraries
│ │ ├── CMSIS
│ │ │ ├── Coresupport
│ │ │ │ ├── arm_common_tables.h
│ │ │ │ ├── arm_math.h
│ │ │ │ ├── core_cm0.h
│ │ │ │ ├── core_cm3.h
│ │ │ │ ├── core_cm4.h
│ │ │ │ ├── core_cm4_simd.h
│ │ │ │ ├── core_cmFunc.h
│ │ │ │ ├── core_cmInstr.h
│ │ │ │ ├── core_sc000.h
│ │ │ │ └── core_sc300.h
│ │ │ └── Devicsupport
│ │ │ ├── Startup
│ │ │ │ └── startup_stm32f37x.s
│ │ │ ├── stm32f37x.h
│ │ │ ├── system_stm32f37x.c
│ │ │ └── system_stm32f37x.h
│ │ └── STM32F37X_Stdperiph_Driver
│ │ ├── inc
│ │ │ ├── stm32f37x_adc.h
│ │ │ ├── stm32f37x_can.h
│ │ │ ├── stm32f37x_cec.h
│ │ │ ├── stm32f37x_comp.h
│ │ │ ├── stm32f37x_crc.h
│ │ │ ├── stm32f37x_dac.h
│ │ │ ├── stm32f37x_dbgmcu.h
│ │ │ ├── stm32f37x_dma.h
│ │ │ ├── stm32f37x_exti.h
│ │ │ ├── stm32f37x_flash.h
│ │ │ ├── stm32f37x_gpio.h
│ │ │ ├── stm32f37x_i2c.h
│ │ │ ├── stm32f37x_iwdg.h
│ │ │ ├── stm32f37x_misc.h
│ │ │ ├── stm32f37x_pwr.h
│ │ │ ├── stm32f37x_rcc.h
│ │ │ ├── stm32f37x_rtc.h
│ │ │ ├── stm32f37x_sdadc.h
│ │ │ ├── stm32f37x_spi.h
│ │ │ ├── stm32f37x_syscfg.h
│ │ │ ├── stm32f37x_tim.h
│ │ │ ├── stm32f37x_usart.h
│ │ │ └── stm32f37x_wwdg.h
│ │ └── src
│ │ ├── stm32f37x_adc.c
│ │ ├── stm32f37x_can.c
│ │ ├── stm32f37x_cec.c
│ │ ├── stm32f37x_comp.c
│ │ ├── stm32f37x_crc.c
│ │ ├── stm32f37x_dac.c
│ │ ├── stm32f37x_dbgmcu.c
│ │ ├── stm32f37x_dma.c
│ │ ├── stm32f37x_exti.c
│ │ ├── stm32f37x_flash.c
│ │ ├── stm32f37x_gpio.c
│ │ ├── stm32f37x_i2c.c
│ │ ├── stm32f37x_iwdg.c
│ │ ├── stm32f37x_misc.c
│ │ ├── stm32f37x_pwr.c
│ │ ├── stm32f37x_rcc.c
│ │ ├── stm32f37x_rtc.c
│ │ ├── stm32f37x_sdadc.c
│ │ ├── stm32f37x_spi.c
│ │ ├── stm32f37x_syscfg.c
│ │ ├── stm32f37x_tim.c
│ │ ├── stm32f37x_usart.c
│ │ └── stm32f37x_wwdg.c
│ └── Project
│ ├── DebugConfig
│ │ ├── FLY_V1.0_STM32F373CCTx.dbgconf
│ │ └── Target_1_STM32F373CCTx.dbgconf
│ ├── EventRecorderStub.scvd
│ ├── FLY_V1.0.uvguix.zhang
│ ├── FLY_V1.0.uvguix.松山归人
│ ├── FLY_V1.0.uvoptx
│ ├── FLY_V1.0.uvprojx
│ ├── Listings
│ │ ├── FLY_V1.map
│ │ └── startup_stm32f37x.lst
│ └── Objects
│ ├── ExtDll.iex
│ ├── FLY_V1.0
│ ├── FLY_V1.0_FLY_V1.0.dep
│ ├── FLY_V1.build_log.htm
│ ├── FLY_V1.hex
│ ├── FLY_V1.htm
│ ├── FLY_V1.lnp
│ ├── FLY_V1.sct
│ ├── adc.crf
│ ├── adc.d
│ ├── adc.o
│ ├── atititude_calculation.crf
│ ├── atititude_calculation.d
│ ├── atititude_calculation.o
│ ├── filter.crf
│ ├── filter.d
│ ├── filter.o
│ ├── gpio.crf
│ ├── gpio.d
│ ├── gpio.o
│ ├── i2c.crf
│ ├── i2c.d
│ ├── i2c.o
│ ├── initialize.crf
│ ├── initialize.d
│ ├── initialize.o
│ ├── led.crf
│ ├── led.d
│ ├── led.o
│ ├── main.crf
│ ├── main.d
│ ├── main.o
│ ├── maths.crf
│ ├── maths.d
│ ├── maths.o
│ ├── motor_driver.crf
│ ├── motor_driver.d
│ ├── motor_driver.o
│ ├── mpu6500.crf
│ ├── mpu6500.d
│ ├── mpu6500.o
│ ├── nrf51822.crf
│ ├── nrf51822.d
│ ├── nrf51822.o
│ ├── pid.crf
│ ├── pid.d
│ ├── pid.o
│ ├── pwm.crf
│ ├── pwm.d
│ ├── pwm.o
│ ├── startup_stm32f37x.d
│ ├── startup_stm32f37x.o
│ ├── stm32f37x_adc.crf
│ ├── stm32f37x_adc.d
│ ├── stm32f37x_adc.o
│ ├── stm32f37x_can.crf
│ ├── stm32f37x_can.d
│ ├── stm32f37x_can.o
│ ├── stm32f37x_cec.crf
│ ├── stm32f37x_cec.d
│ ├── stm32f37x_cec.o
│ ├── stm32f37x_comp.crf
│ ├── stm32f37x_comp.d
│ ├── stm32f37x_comp.o
│ ├── stm32f37x_crc.crf
│ ├── stm32f37x_crc.d
│ ├── stm32f37x_crc.o
│ ├── stm32f37x_dac.crf
│ ├── stm32f37x_dac.d
│ ├── stm32f37x_dac.o
│ ├── stm32f37x_dbgmcu.crf
│ ├── stm32f37x_dbgmcu.d
│ ├── stm32f37x_dbgmcu.o
│ ├── stm32f37x_dma.crf
│ ├── stm32f37x_dma.d
│ ├── stm32f37x_dma.o
│ ├── stm32f37x_exti.crf
│ ├── stm32f37x_exti.d
│ ├── stm32f37x_exti.o
│ ├── stm32f37x_flash.crf
│ ├── stm32f37x_flash.d
│ ├── stm32f37x_flash.o
│ ├── stm32f37x_gpio.crf
│ ├── stm32f37x_gpio.d
│ ├── stm32f37x_gpio.o
│ ├── stm32f37x_i2c.crf
│ ├── stm32f37x_i2c.d
│ ├── stm32f37x_i2c.o
│ ├── stm32f37x_it.crf
│ ├── stm32f37x_it.d
│ ├── stm32f37x_it.o
│ ├── stm32f37x_iwdg.crf
│ ├── stm32f37x_iwdg.d
│ ├── stm32f37x_iwdg.o
│ ├── stm32f37x_misc.crf
│ ├── stm32f37x_misc.d
│ ├── stm32f37x_misc.o
│ ├── stm32f37x_pwr.crf
│ ├── stm32f37x_pwr.d
│ ├── stm32f37x_pwr.o
│ ├── stm32f37x_rcc.crf
│ ├── stm32f37x_rcc.d
│ ├── stm32f37x_rcc.o
│ ├── stm32f37x_rtc.crf
│ ├── stm32f37x_rtc.d
│ ├── stm32f37x_rtc.o
│ ├── stm32f37x_sdadc.crf
│ ├── stm32f37x_sdadc.d
│ ├── stm32f37x_sdadc.o
│ ├── stm32f37x_spi.crf
│ ├── stm32f37x_spi.d
│ ├── stm32f37x_spi.o
│ ├── stm32f37x_syscfg.crf
│ ├── stm32f37x_syscfg.d
│ ├── stm32f37x_syscfg.o
│ ├── stm32f37x_tim.crf
│ ├── stm32f37x_tim.d
│ ├── stm32f37x_tim.o
│ ├── stm32f37x_usart.crf
│ ├── stm32f37x_usart.d
│ ├── stm32f37x_usart.o
│ ├── stm32f37x_wwdg.crf
│ ├── stm32f37x_wwdg.d
│ ├── stm32f37x_wwdg.o
│ ├── system_control.crf
│ ├── system_control.d
│ ├── system_control.o
│ ├── system_stm32f37x.crf
│ ├── system_stm32f37x.d
│ ├── system_stm32f37x.o
│ ├── systick.crf
│ ├── systick.d
│ ├── systick.o
│ ├── uart.crf
│ ├── uart.d
│ ├── uart.o
│ ├── var_global.crf
│ ├── var_global.d
│ └── var_global.o
└── FLY_V0.1(修改)
└── 讲课文件夹
├── APP
│ ├── board_define.h
│ ├── initialize.c
│ ├── initialize.h
│ ├── main.c
│ ├── stm32f37x_conf.h
│ ├── stm32f37x_it.c
│ ├── stm32f37x_it.h
│ ├── var_global.c
│ └── var_global.h
├── BSP
│ ├── Maths
│ │ ├── atititude_calculation.c
│ │ ├── atititude_calculation.h
│ │ ├── filter.c
│ │ ├── filter.h
│ │ ├── maths.c
│ │ └── maths.h
│ ├── Mcu_Driver
│ │ ├── GPIO.c
│ │ ├── GPIO.h
│ │ ├── adc.c
│ │ ├── adc.h
│ │ ├── i2c.c
│ │ ├── i2c.h
│ │ ├── pwm.c
│ │ ├── pwm.h
│ │ ├── systick.c
│ │ ├── systick.h
│ │ ├── uart.c
│ │ └── uart.h
│ ├── Periph_Driver
│ │ ├── led.c
│ │ ├── led.h
│ │ ├── motor_driver.c
│ │ ├── motor_driver.h
│ │ ├── mpu6500.c
│ │ ├── mpu6500.h
│ │ ├── nrf51822.c
│ │ └── nrf51822.h
│ └── sys_control
│ ├── pid.c
│ ├── pid.h
│ ├── system_control.c
│ └── system_control.h
├── Doc
│ ├── 111
│ └── readme.txt
├── Libraries
│ ├── CMSIS
│ │ ├── Coresupport
│ │ │ ├── arm_common_tables.h
│ │ │ ├── arm_math.h
│ │ │ ├── core_cm0.h
│ │ │ ├── core_cm3.h
│ │ │ ├── core_cm4.h
│ │ │ ├── core_cm4_simd.h
│ │ │ ├── core_cmFunc.h
│ │ │ ├── core_cmInstr.h
│ │ │ ├── core_sc000.h
│ │ │ └── core_sc300.h
│ │ └── Devicsupport
│ │ ├── Startup
│ │ │ └── startup_stm32f37x.s
│ │ ├── stm32f37x.h
│ │ ├── system_stm32f37x.c
│ │ └── system_stm32f37x.h
│ └── STM32F37X_Stdperiph_Driver
│ ├── inc
│ │ ├── stm32f37x_adc.h
│ │ ├── stm32f37x_can.h
│ │ ├── stm32f37x_cec.h
│ │ ├── stm32f37x_comp.h
│ │ ├── stm32f37x_crc.h
│ │ ├── stm32f37x_dac.h
│ │ ├── stm32f37x_dbgmcu.h
│ │ ├── stm32f37x_dma.h
│ │ ├── stm32f37x_exti.h
│ │ ├── stm32f37x_flash.h
│ │ ├── stm32f37x_gpio.h
│ │ ├── stm32f37x_i2c.h
│ │ ├── stm32f37x_iwdg.h
│ │ ├── stm32f37x_misc.h
│ │ ├── stm32f37x_pwr.h
│ │ ├── stm32f37x_rcc.h
│ │ ├── stm32f37x_rtc.h
│ │ ├── stm32f37x_sdadc.h
│ │ ├── stm32f37x_spi.h
│ │ ├── stm32f37x_syscfg.h
│ │ ├── stm32f37x_tim.h
│ │ ├── stm32f37x_usart.h
│ │ └── stm32f37x_wwdg.h
│ └── src
│ ├── stm32f37x_adc.c
│ ├── stm32f37x_can.c
│ ├── stm32f37x_cec.c
│ ├── stm32f37x_comp.c
│ ├── stm32f37x_crc.c
│ ├── stm32f37x_dac.c
│ ├── stm32f37x_dbgmcu.c
│ ├── stm32f37x_dma.c
│ ├── stm32f37x_exti.c
│ ├── stm32f37x_flash.c
│ ├── stm32f37x_gpio.c
│ ├── stm32f37x_i2c.c
│ ├── stm32f37x_iwdg.c
│ ├── stm32f37x_misc.c
│ ├── stm32f37x_pwr.c
│ ├── stm32f37x_rcc.c
│ ├── stm32f37x_rtc.c
│ ├── stm32f37x_sdadc.c
│ ├── stm32f37x_spi.c
│ ├── stm32f37x_syscfg.c
│ ├── stm32f37x_tim.c
│ ├── stm32f37x_usart.c
│ └── stm32f37x_wwdg.c
└── Project
├── DebugConfig
│ ├── FLY_V1.0_STM32F373CCTx.dbgconf
│ └── Target_1_STM32F373CCTx.dbgconf
├── EventRecorderStub.scvd
├── FLY_V1.0.uvguix.zhang
├── FLY_V1.0.uvguix.松山归人
├── FLY_V1.0.uvoptx
├── FLY_V1.0.uvprojx
├── Listings
│ ├── FLY_V1.map
│ └── startup_stm32f37x.lst
└── Objects
├── ExtDll.iex
├── FLY_V1.0
├── FLY_V1.0_FLY_V1.0.dep
├── FLY_V1.build_log.htm
├── FLY_V1.hex
├── FLY_V1.htm
├── FLY_V1.lnp
├── FLY_V1.sct
├── adc.crf
├── adc.d
├── adc.o
├── atititude_calculation.crf
├── atititude_calculation.d
├── atititude_calculation.o
├── filter.crf
├── filter.d
├── filter.o
├── gpio.crf
├── gpio.d
├── gpio.o
├── i2c.crf
├── i2c.d
├── i2c.o
├── initialize.crf
├── initialize.d
├── initialize.o
├── led.crf
├── led.d
├── led.o
├── main.crf
├── main.d
├── main.o
├── maths.crf
├── maths.d
├── maths.o
├── motor_driver.crf
├── motor_driver.d
├── motor_driver.o
├── mpu6500.crf
├── mpu6500.d
├── mpu6500.o
├── nrf51822.crf
├── nrf51822.d
├── nrf51822.o
├── pid.crf
├── pid.d
├── pid.o
├── pwm.crf
├── pwm.d
├── pwm.o
├── startup_stm32f37x.d
├── startup_stm32f37x.o
├── stm32f37x_adc.crf
├── stm32f37x_adc.d
├── stm32f37x_adc.o
├── stm32f37x_can.crf
├── stm32f37x_can.d
├── stm32f37x_can.o
├── stm32f37x_cec.crf
├── stm32f37x_cec.d
├── stm32f37x_cec.o
├── stm32f37x_comp.crf
├── stm32f37x_comp.d
├── stm32f37x_comp.o
├── stm32f37x_crc.crf
├── stm32f37x_crc.d
├── stm32f37x_crc.o
├── stm32f37x_dac.crf
├── stm32f37x_dac.d
├── stm32f37x_dac.o
├── stm32f37x_dbgmcu.crf
├── stm32f37x_dbgmcu.d
├── stm32f37x_dbgmcu.o
├── stm32f37x_dma.crf
├── stm32f37x_dma.d
├── stm32f37x_dma.o
├── stm32f37x_exti.crf
├── stm32f37x_exti.d
├── stm32f37x_exti.o
├── stm32f37x_flash.crf
├── stm32f37x_flash.d
├── stm32f37x_flash.o
├── stm32f37x_gpio.crf
├── stm32f37x_gpio.d
├── stm32f37x_gpio.o
├── stm32f37x_i2c.crf
├── stm32f37x_i2c.d
├── stm32f37x_i2c.o
├── stm32f37x_it.crf
├── stm32f37x_it.d
├── stm32f37x_it.o
├── stm32f37x_iwdg.crf
├── stm32f37x_iwdg.d
├── stm32f37x_iwdg.o
├── stm32f37x_misc.crf
├── stm32f37x_misc.d
├── stm32f37x_misc.o
├── stm32f37x_pwr.crf
├── stm32f37x_pwr.d
├── stm32f37x_pwr.o
├── stm32f37x_rcc.crf
├── stm32f37x_rcc.d
├── stm32f37x_rcc.o
├── stm32f37x_rtc.crf
├── stm32f37x_rtc.d
├── stm32f37x_rtc.o
├── stm32f37x_sdadc.crf
├── stm32f37x_sdadc.d
├── stm32f37x_sdadc.o
├── stm32f37x_spi.crf
├── stm32f37x_spi.d
├── stm32f37x_spi.o
├── stm32f37x_syscfg.crf
├── stm32f37x_syscfg.d
├── stm32f37x_syscfg.o
├── stm32f37x_tim.crf
├── stm32f37x_tim.d
├── stm32f37x_tim.o
├── stm32f37x_usart.crf
├── stm32f37x_usart.d
├── stm32f37x_usart.o
├── stm32f37x_wwdg.crf
├── stm32f37x_wwdg.d
├── stm32f37x_wwdg.o
├── system_control.crf
├── system_control.d
├── system_control.o
├── system_stm32f37x.crf
├── system_stm32f37x.d
├── system_stm32f37x.o
├── systick.crf
├── systick.d
├── systick.o
├── uart.crf
├── uart.d
├── uart.o
├── var_global.crf
├── var_global.d
└── var_global.o
42 directories, 498 files
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论