航空研究会 / Mbed 2 deprecated sahaquiel_brushless_tset

Dependencies:   mbed MPU6050_2 HMC5883L_4 SDFileSystem3

Committer:
imanomadao
Date:
Tue Jan 07 11:29:44 2020 +0000
Revision:
42:eadf30b9ecd2
Parent:
41:d142afd3c2f7
a

Who changed what in which revision?

UserRevisionLine numberNew contents of line
HARUKIDELTA 0:84ddd6d354e1 1 #include "mbed.h"
Skykon 3:c18342e4fddd 2 #include "MPU6050_DMP6.h"
taknokolat 6:166746820555 3 #include "HMC5883L.h"
taknokolat 12:083662bca47d 4 #include "SDFileSystem.h"
taknokolat 12:083662bca47d 5 #include "SkipperSv2.h"
taknokolat 12:083662bca47d 6 #include "falfalla.h"
Skykon 3:c18342e4fddd 7
imanomadao 42:eadf30b9ecd2 8 RawSerial pc(USBTX,USBRX,115200); //pa2:UART2_TX,pa3:UART2_RX
Skykon 3:c18342e4fddd 9
imanomadao 42:eadf30b9ecd2 10 PwmOut brushless_R(PC_6);
Skykon 3:c18342e4fddd 11
imanomadao 42:eadf30b9ecd2 12 int main(){
imanomadao 42:eadf30b9ecd2 13 int a_=500;
imanomadao 42:eadf30b9ecd2 14 while(1){
imanomadao 42:eadf30b9ecd2 15 for (int i=0;i<50;i++){
imanomadao 42:eadf30b9ecd2 16 brushless_R.pulsewidth_us(a_);
imanomadao 42:eadf30b9ecd2 17 a_ += 10;
imanomadao 42:eadf30b9ecd2 18 pc.printf("a=%d\r\n",a_);
imanomadao 42:eadf30b9ecd2 19 wait(0.25);
taknokolat 38:7c323abc62fb 20 }
imanomadao 42:eadf30b9ecd2 21 }
taknokolat 1:290e621741fd 22 }