#define MOTOR_DRIVE_VERSION 6 ↓ #define MOTOR_DRIVE_VERSION 5 TIMEOUT_VALUE 1.0f ↓ TIMEOUT_VALUE 10.0f ↓
Dependencies: mbed can_network_definition_2022 bitCommunication_Ver2 motorDrive_LAP PID QEI_hw LPC1549QEI LPC1549_EEPROM motorDrive_SMB MedianFilter2020 buzzer USBDevice
Diff: definition.h
- Revision:
- 8:f6851c48f94b
- Parent:
- 4:6e88615c830b
- Child:
- 9:c1dc00ede75d
diff -r b91354ec59bd -r f6851c48f94b definition.h --- a/definition.h Sun Oct 17 07:45:45 2021 +0000 +++ b/definition.h Sun Aug 07 02:46:15 2022 +0000 @@ -13,7 +13,7 @@ enum parameter_number { KP , KI , KD , ACCELERATION ,PARAMETER_NUMBER}; namespace communication_baud { - const int CAN = 500000; //CAN通信の通信速度(Hz) + const int CAN = 1000000; //CAN通信の通信速度(Hz) const int PC = 460800; //Serial通信の通信速度(bps) }; @@ -54,7 +54,7 @@ //MD_ver 6.0 const PinName CAN_PIN[CAN_PIN_NUMNBER] = {P0_18,P0_13}; //{CAN_TD,CAN_RD} const PinName ENCODER_PIN[ENCODER_PIN_NUMBER] = {P0_3,P0_2}; //{Encoder_Apulse,Encoder_Bpulse} -const PinName LED_PIN[LED_PIN_NUMBER] = {P0_14,P0_12,P0_28}; //{CW,CCW,Free} +const PinName LED_PIN[LED_PIN_NUMBER] = {P0_14,P0_9,P0_28}; //{CW,CCW,Free} const PinName A3921_PIN[A3921_PIN_NUMBER] = {P0_20,P0_29}; //{PWMH,PHASE} const PinName SERIAL_PIN[SERIAL_PIN_NUMBER] = {P0_12,P0_11}; //{Serial TX,Serial RX} const PinName ID_PIN[SWITCH_PIN_NUMBER] = {P0_5,P0_8,P0_7,P0_6}; //{Switch pin}