usb実装中

Dependencies:   mbed MPU6050_2 HMC5883L_2 SDFileSystem3

Files at this revision

API Documentation at this revision

Comitter:
HARUKIDELTA
Date:
Fri Feb 08 09:11:27 2019 +0000
Parent:
4:67f705d42f1e
Child:
6:166746820555
Commit message:
a

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Fri Feb 08 07:28:48 2019 +0000
+++ b/main.cpp	Fri Feb 08 09:11:27 2019 +0000
@@ -47,11 +47,26 @@
 
 Timer t;
 
+//PWM pin宣言
+PwmOut servoR(PC_6);           //TIM3_CH1
+PwmOut servoL(PC_7);           //TIM3_CH2
+PwmOut servoTurnTable(PB_0);   //TIM3_CH3 カメラ台回転Servo
+PwmOut servoCameradeg(PB_1);   //TIM3_CH4 カメラ角度調節Servo
+PwmOut servoCameraPinto(PB_6); //TIM4_CH1 カメラピント合わせ
+PwmOut servoCameramount(PA_6); //skipperウラ カメラマウント起動
+PwmOut servoGetUP(PC_8);       //skipperウラ 起き上がり動作
+PwmOut servoParachute(PA_11);  //skipper USB端子より パラシュート切り離し
 
-PwmOut servoR(PC_6);
-//pc6:TIM3_CH1
-PwmOut servoL(PC_7);
-//pc7:TIM3_CH2
+/*通信用のpinは
+  PA_3(UART2_Rx)   skipperウラ
+  PA_12(UART6_Rx)  skipperオモテ USB端子より
+  PB_7 (UART1_Rx)  skipperオモテ 6番目 TIM4_CH2
+*/
+
+/*超音波はRaspberryPiに積む*/
+
+//外付けコンパス
+//HMC5983 compass(PB_8, PB_9);    //コンパスセンサー TIM4_CH3とCH4
 
 RawSerial pc(PA_2,PA_3,115200); //uart2
 //pa2:UART2_TX,pa3:UART2_RX