|
Page 1 of 1
|
[ 4 posts ] |
|
Author |
Message |
RobotLego
Rookie
Joined: Sun Dec 27, 2015 7:50 pm Posts: 11
|
 Reading motor PID values
Is there a way to read the Proportional (in the PID controller) value on a standard NXT servo motor? I'm trying to write a code that detects when a motor is undergoing a certain amount of stress. Is there a way to do that? Likewise, is there a way to read the PID or "output" value for a motor? I found that "motorPowerSigned[motorA]" will read the "assigned" power, I just need to know the actual "output" value. Then I can compare the assigned and actual powers to determine the amount of stress.
Thanks in advance.
|
Sun Jan 03, 2016 12:33 am |
|
 |
RobotLego
Rookie
Joined: Sun Dec 27, 2015 7:50 pm Posts: 11
|
 Re: Reading motor PID values
Bumping, as I got no answer for a while.
|
Sun Jan 10, 2016 1:53 am |
|
 |
RobotLego
Rookie
Joined: Sun Dec 27, 2015 7:50 pm Posts: 11
|
 Re: Reading motor PID values
I've been waiting for over three weeks, and still got no answer. Can anyone please answer my questions?
|
Wed Jan 20, 2016 6:24 pm |
|
 |
mightor
Site Admin
Joined: Wed Mar 05, 2008 8:14 am Posts: 3654 Location: Rotterdam, The Netherlands
|
 Re: Reading motor PID values
Hi there,
I have no experience with this, but there's a property called "motorPWMLevel[motorIndex]" for the NXT, which returns the current PWM value pushed to the motor. I am not sure the PID values can be read from inside the ROBOTC program. I know the debugger can read this data, but they're internal values.
= Xander
_________________| Professional Conduit of Reasonableness| (Title bestowed upon on the 8th day of November, 2013) | My Blog: I'd Rather Be Building Robots| ROBOTC 3rd Party Driver Suite: [ Project Page]
|
Thu Jan 21, 2016 1:35 am |
|
|
|
Page 1 of 1
|
[ 4 posts ] |
|
Who is online |
Users browsing this forum: No registered users and 2 guests |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|