Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
eX-Robot. New Ideas and Solutions for Self Balancing Robot
06-12-2015, 05:17 PM
Post: #4
RE: eX-Robot. New Ideas and Solutions for Self Balancing Robot
(06-11-2015 07:34 PM)KomX Wrote:  Replace the code in the procedure setMotorSpeedM1(int16_t tspeed)
Code:
OCR1A = timer_period;  
  // Check  if we need to reset the timer...
  if (TCNT1 > OCR1A)
    TCNT1 = 0;

in the code
Code:
period_M1 = timer_period;


Do you mean change these 4 lines to this 1 line or something different?? I tried make these changes, but unsuccefull Sad Please post full sketch code.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: eX-Robot. New Ideas and Solutions for Self Balancing Robot - sasa999 - 06-12-2015 05:17 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)