|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Analog Breakout trouble-shooting
If I use AnalogChannel(1), and plug the PWM into the pins closest to the PD supply connector, I get the same result.
I've checked that the PWM cable is ok - the PWM inputs into the AB board are what they should be. The other thing that happens that's kinda strange is when I disable the 'bot, the While loop keeps going - I actually have a counter in that loop that prints out at the same time as the Voltage is being printed out. |
|
#2
|
|||||
|
|||||
|
Re: Analog Breakout trouble-shooting
Does that include the "Attempting to reuse an allocated resource" error message? Look to see what else might be configured to use Analog Input 1 (the gyro, for example). You might need to choose Channel 7, for example.
|
|
#3
|
|||
|
|||
|
Re: Analog Breakout trouble-shooting
where are the allocated channels listed? does just the gyro and the battery voltage have allocated channels? Gyro is channel 1
|
|
#4
|
|||
|
|||
|
Re: Analog Breakout trouble-shooting
Alan,
thank you! 10 hours + later.... now onto the pot |
|
#5
|
|||||
|
|||||
|
Re: Analog Breakout trouble-shooting
Channel 8 is pre-assigned to the battery voltage monitoring. Other than that, only the analog channels your program actually opens will be allocated. So the answer is that they are listed in your source code.
It looks like it was just your bad luck to choose the two channels that already had things connected to them. The error message is pretty specific, though. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|