Recent content by nklvodoi

  1. N

    [RYA2013] MicroMouse SourceCode

    bạn coi lại file startup_ccs.c! chắc có lỗi ở file này nên nó ko khởi động được
  2. N

    [RYA2013] MicroMouse SourceCode

    ý bạn là sao? Followsel = FOLLOW_LEFT là khác FOLLOW_DISABLE rùi đó! :(
  3. N

    [RYA2013] MicroMouse SourceCode

    //Select one: FollowSel = FOLLOW_LEFT; //Enable follow left wall //PIDSpeedSet(&PIDVerLeft, 50); //Set left-motor speed at 50 //PIDPositionSet(&PIDPosRight, 2000); // //Move (3000, 5000); //Move forward: left-motor 3000 pulses - right-motor 5000 pulses...
  4. N

    [RYA2013] MicroMouse SourceCode

    sao mình dùng TurnLeft(300,200,100,200) với ki,kp,kd=1 thì ko thấy hiện tượng j hết vậy? với lại EncTemp = PosLeftCount; thì abs(PosLeftCount - EncTemp) lúc nào cũng =0 mà! Có thể chỉ mình biết để sử dụng đc các hàm TurnLeft, TurnRight thì ngoài xác định PID còn j nữa ko? sao dùng PWM thì chạy...
  5. N

    [RYA2013] MicroMouse SourceCode

    EncTemp = PosLeftCount; while(abs(PosLeftCount - EncTemp) < DeltaEnc) { avrSpeed = ((abs(DeltaEnc + EncTemp - PosLeftCount) / (DeltaEnc / avrSpeedtemp)) / 2) + (abs(SpeedLeft) + abs(SpeedRight)) / 2; } avrSpeed = avrSpeedtemp; CalcPosition(Direction...
  6. N

    [RYA2013] MicroMouse SourceCode

    Team support có thể post 1 đoạn code mẫu đơn giản như cho xe chạy thẳng hay rẻ để mọi ng bik cách vận dụng các hàm trong sourecode đc ko?
  7. N

    Interrupt!

    // Interrupt PORT A int32_t i32Val; // GPIOIntRegister(GPIO_PORTA_BASE, PortAIntHandler); GPIOPinTypeGPIOInput(GPIO_PORTA_BASE, GPIO_PIN_5); GPIOIntTypeSet(GPIO_PORTA_BASE, GPIO_PIN_5, GPIO_HIGH_LEVEL); i32Val = GPIOPinRead(GPIO_PORTA_BASE,GPIO_PIN_5)...
  8. N

    output 74hc595

    GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_2,0x00); GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_2,4); GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_2,0x00); GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_1,2); GPIOPinWrite(GPIO_PORTF_BASE, GPIO_PIN_3,0); SysCtlDelay(20000000); GPIOPinWrite(GPIO_PORTF_BASE...
  9. N

    output 74hc595

    //2death's note: CODE nên để trong thẻ CODE để bài viết gọn gàng, dễ xem. #include <stdint.h> #include <stdbool.h> #include "inc/hw_memmap.h" #include "inc/hw_types.h" #include "driverlib/sysctl.h" #include "driverlib/gpio.h" uint8_t ui8PinData=2,i; int main(void) {...
  10. N

    Lỗi build Project!

    đã thử mọi cách đều ko đc! :( mà code ko có ROM.h cũng vậy!
  11. N

    Lỗi build Project!

    http://www.mediafire.com/?ae9h2ui34hm1faz em ko post hình lên forum dc
  12. N

    Lỗi build Project!

    Sao em build project nào cũng bị lỗi #10010 errors encountered during linking; "blinky.out" not built #10234-D</a> unresolved symbols remain ! down file main GPIO ví dụ của a về build thử cũng bị lun!
  13. N

    Nguồn 5v/3A!

    Cho em hỏi nếu cần nguồn ra 5v/3A thì dùng tuyến tính (78xx) hay nguồn xung(LM2576) thì đỡ nóng hơn?
Top