Hello all!
Well, we have APM2 Purple Board on a Turnigy quadcopter frame. The problem is when I try to pull an analog output LOW, instead of LOW it gives SQUARE wave; but I don't have a problem with pulling the pin high. This problem is occurred with all of the analog pins. I didn't see any other problem with the software or hardware. Everything works like charm; autonomous flight is stable and smooth, and remote controlled flight is perfect.
My code in ArduCopter Userhook is here:
void userhook_init()
{
}
void userhook_50Hz()
{
if(motors.armed())
{
digitalWrite(COPTER_LED_4, HIGH);
}
else
{
digitalWrite(COPTER_LED_4, LOW);
}
}
When I ARM the copter, it gives solid high with no problem; but in DISARMED mode it gives square wave instead of LOW.
Here is the DISARMED photo:
And here is the ARMED photo:
We are using latest software (ArduCopter 2.7.1 on the board and AC2_GCS on computer). Our setup includes an XBEE for communication with computer, a Turnigy receiver with a Turnigy transmitter for remote control.
Replies are closed for this discussion.
My guess is that somewhere else in the code it is pulling those same pins high so you've got a little fight going on. I think there is a parameter called LED_MODE...maybe set that to zero to disable the LEDs...not sure but will likely work.
I like your scope!
Permalink Reply by Umur Ozhan SENGUL on December 18, 2012 at 3:40am Yep It worked! Thanks.
Yeah I love this scope too :)
Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.24 members
1298 members
47 members
87 members
183 members
© 2013 Created by Chris Anderson.
Powered by
