Hello,
afanofosc wrote:My ramp down to limit option is Not Yet Implemented. I apologize for the confusion. Don't bother trying to use/test it.
Oh. OK, thank you for this hint. Found some code in firmware to support this feature so I thought it should be there... Sometimes it works...
I played again with firmware: When setting up PWM frequency to 16 kHz the motors are still well powered - and silent. Why are the PWMs of those systems often run with audible frequencies? I know if a pwm is set up to too high frequencies the the motors will get inefficient and the minimum power to run will get higher. This has to do with magnetic effects. But I cannot see this effects at 16 kHz.
I don't understand these questions:
How to check the RUNSTATE when using more than one motor? I only get "0" when reeding this one. The same question for the counters... Should we give nbc a try?
You can read counters and runstate or any of each motor output's fields using the Motor* functions which read only a single motor's values
Yes I know. When I setup my programs I use constants like MOTOR_DRIVE (OUT_CB) to abstract the real outputs. Or I use variables. All of those variants may directly be used with SetOutput - but neither of it with any of the Motor* functions. I have read NXTdefs.h so as I understand you put some code there to decide what to do at the setting functions. The idea is to make the same on the input (motor*) functions. I do not think this can be done in the compiler because the exact behavior is dependent on the robot setup. Not sure my idea is right...
RAMPDOWN works fine except when you turn on OUT_REGMODE_SPEED
OK, this may get a very philosophic discussion. To cut a long story short I will try NXT-G at some time and cross check. Will post this later on - I work with linux so I have to reboot for win...
Edit: Cross check with NXT-G: You can select this combination in the motor blocks but with regulation activated it does not work really. The system behaves unreliable and a bit unpredictable. When regulation switched off the it gets better but it seems the motor sometimes does not reach the position it should.
So it stands to reason that with this regulation mode turned on that the rampdown function would not work.
This is why I meant it may get philosophic
You are right. The ramp down is a method to get smooth to an angle without overshooting. In my eyes speed regulation and ramp down are not like fire and ice. Technically spoken they are but when this is best practice - why not accept this conflict?
I'll be back in a few minutes...
Bye marvin