HobbyKing.com New Products Flash Sale
R/C Groups.com   RCCars Crack Roll Flying Giants RC Power The E Zone Lift Zone Our Sponsors
R/C Groups.com


Go Back   RC Groups > Aircraft - Exotic and Special Interest > UAV - Unmanned Aerial Vehicles

Reply Post New Thread  Previous Thread Next Thread
 
Thread Tools
Old Mar 18, 2009, 02:37 PM   #61
Plane Insane RC.com
 
chicken hawk's Avatar
 
Join Date: Mar 2005
Location: Spanish Fork Utah
Posts: 569
Quote:
Originally Posted by zlite
Stick with 13. We're getting some funky serial behavior in 14, and until we figure out what's causing it, you're safer with 13.
Ah Nuts! It took me an hour to download and unzip 14 last night but thanks for the work your doing on this and also for letting me know about the serial problems. I'll try to get 13 tonight.
chicken hawk is offline Find More Posts by chicken hawk   Reply With Quote
Old Mar 18, 2009, 07:49 PM   #62
Plane Insane RC.com
 
chicken hawk's Avatar
 
Join Date: Mar 2005
Location: Spanish Fork Utah
Posts: 569
Hey, New question. I searched around and cant find anything (usually means it's right under my nose). My sensor seems to be backwards, when the elevator should go up, it goes down. Where do I fix that in the code?
Thanks
Ryan
chicken hawk is offline Find More Posts by chicken hawk   Reply With Quote
Old Mar 18, 2009, 10:30 PM   #63
Registered User
 
13brv3's Avatar
 
Join Date: Mar 2002
Location: Navarre, FL
Posts: 1,985
Quote:
Originally Posted by chicken hawk
Hey, New question. I searched around and cant find anything (usually means it's right under my nose). My sensor seems to be backwards, when the elevator should go up, it goes down. Where do I fix that in the code?
Thanks
Ryan

Hi Ryan,

If I'm not mistaken, on the servo tab, look for the code shown below. Change "90+pitch" to "90-pitch", and I believe it will reverse your direction of throw from the AP.

Rusty (anything I say about code is dangerous)



/************************************************** ***********************
You must change this if you have another kind of aircraft...
************************************************** ***********************/
void pulse_servos(int roll, int pitch) //Normal mode
{
pulse_servo_1(90+roll);
pulse_servo_2(90+pitch); //invert sign if you want to reverse the servo...
}
13brv3 is offline Find More Posts by 13brv3   Reply With Quote
Old Mar 18, 2009, 11:26 PM   #64
Plane Insane RC.com
 
chicken hawk's Avatar
 
Join Date: Mar 2005
Location: Spanish Fork Utah
Posts: 569
Thanks Rusty I'll give it a try.
Ryan
chicken hawk is offline Find More Posts by chicken hawk   Reply With Quote
Old Mar 18, 2009, 11:54 PM   #65
Plane Insane RC.com
 
chicken hawk's Avatar
 
Join Date: Mar 2005
Location: Spanish Fork Utah
Posts: 569
Yup! That did it! The bench test looks good now. I'll test fly it again tomorrow. Thanks again Rusty
chicken hawk is offline Find More Posts by chicken hawk   Reply With Quote
Old Mar 19, 2009, 01:06 AM   #66
Registered User
 
chancesAU's Avatar
 
Join Date: Apr 2008
Location: Australia
Posts: 694
Hi all,
Didnt really want to post any problems here yet as its most likely something silly ive done (and I dont want to sound dumb hehe) but hopefully someone will reply by the time I get home today

Ok so ardu arrived and I hastefully soldered up the breakaway pins to it.
Connected the sparkfun FTDI to upload the code (v13 of audrino) & it was failing (only power light showing), anyway went through the debugging page at diy - nothing worked.

I left it connected for 5 min & when I looked down at the ardu heaps of lights were going crazy?? anyway tried to upload the code and I noticed the tx/rx lights on the FTDI were going off - cool!
It uploaded fine apparently so I made up some cables to hook up the RX to the ardu and took it outside to get the sat lock....

Ok here is where I found some problems, first the 3 way toggle on ch5 does nothing to any lights on the ardu, checked the servo against the switch on my transmitter (9CAP) and it seems to be working fine.
Also no matter which way the toggle switch is on my transmitter I dont seem to have normal control of my elevator or ailerons/rudder, the lights on the ardu seem to turn on and off as I move the stick... hmm maybe ardu thinks my elevator is the toggle switch?... The elevator surface sorta does its own thing, If I move the elevator all the way up on my TX it does nothing then suddenly goes to full throw, when I move the elevator stick down the control surface stays still and the MUX light seem to turn off when its about 75% down.

Does any of this sound weird to anyone?
Im going to re-flash the ardu when I get home incase something went weird & check everything but im pretty sure I followed the instructions perfectly and im using all the recommended hardware.

Thanks,
Max
Attached Thumbnails
  • Name: P1000567_sm.jpg
Views: 182
Size: 70.4 KB
Description: 70.4 KB · Views: 182

chancesAU is offline Find More Posts by chancesAU   Reply With Quote
Old Mar 19, 2009, 01:23 AM   #67
Chris Anderson
 
Join Date: Mar 2007
Location: San Francisco/Bay Area
Posts: 670
Quote:
Originally Posted by chancesAU
Hi all,
Ok here is where I found some problems, first the 3 way toggle on ch5 does nothing to any lights on the ardu, checked the servo against the switch on my transmitter (9CAP) and it seems to be working fine.
Also no matter which way the toggle switch is on my transmitter I dont seem to have normal control of my elevator or ailerons/rudder, the lights on the ardu seem to turn on and off as I move the stick... hmm maybe ardu thinks my elevator is the toggle switch?... The elevator surface sorta does its own thing, If I move the elevator all the way up on my TX it does nothing then suddenly goes to full throw, when I move the elevator stick down the control surface stays still and the MUX light seem to turn off when its about 75% down.
Two questions: are you powering the board independently when you've got the FTDI cable connected? (You can't power the board with that cable).

And are you absolutely sure you've got your gear connected EXACTLY like the diagram below?
Attached Thumbnails
  • Name: ardupilot2.png
Views: 195
Size: 30.7 KB
Description: 30.7 KB · Views: 195

zlite is offline Find More Posts by zlite   Reply With Quote
Old Mar 19, 2009, 03:51 AM   #68
Graham Dyer
 
pardus's Avatar
 
Join Date: Jul 2003
Location: Johannesburg, South Africa
Posts: 294
Which switch have you assigned to CH5? Normally on the 9CAP CH5 is assigned to switch G, the only 3 way switches on the 9CAP or 9CHP are switch C and switch E. If you haven't changed it you may have to re-assign the switch.
pardus is offline Find More Posts by pardus   Reply With Quote
Old Mar 19, 2009, 04:44 AM   #69
Registered User
 
chancesAU's Avatar
 
Join Date: Apr 2008
Location: Australia
Posts: 694
Quote:
Originally Posted by pardus
Which switch have you assigned to CH5? Normally on the 9CAP CH5 is assigned to switch G, the only 3 way switches on the 9CAP or 9CHP are switch C and switch E. If you haven't changed it you may have to re-assign the switch.
Hi,
Well I was using ch5&6 for pan/tilt so I assigned ch8 to switch E (and connected to ctrl on ardu).
When this didnt work I removed the pan and tilt and just had the basics connected, ch1 rudder, ch2 elevator, ch3 ESC & ch5 ctrl.
when I looked at the transmitters servo menu channel 5&8 now move with the 3 way switch so I dont think thats the problem.
Im just about to pack it all in the car and play with it some more...

The wiring diagram above is the exact same one I used to connect everything but im just going to start again from scratch and see how I go.

Ill let you know how I go in a few hours

Thanks for all the responses!

Max
chancesAU is offline Find More Posts by chancesAU   Reply With Quote
Old Mar 19, 2009, 06:16 PM   #70
Plane Insane RC.com
 
chicken hawk's Avatar
 
Join Date: Mar 2005
Location: Spanish Fork Utah
Posts: 569
Sorry but I have another question. I flew a Slow Stick today with the 2.0 code. It was all over the place. It almost looked like it was swimming in the sky. I think the sensitivity for the FMA sensor was too high. Is there a way to adjust it in flight? Does anyone know were to adjust it in the code?
Ryan
chicken hawk is offline Find More Posts by chicken hawk   Reply With Quote
Old Mar 19, 2009, 10:07 PM   #71
Plane Insane RC.com
 
chicken hawk's Avatar
 
Join Date: Mar 2005
Location: Spanish Fork Utah
Posts: 569
I found it. I played around with it for a few flights. Still not very consitant but I'll keep playing with it.
chicken hawk is offline Find More Posts by chicken hawk   Reply With Quote
Old Mar 19, 2009, 10:11 PM   #72
Chris Anderson
 
Join Date: Mar 2007
Location: San Francisco/Bay Area
Posts: 670
Quote:
Originally Posted by chicken hawk
Sorry but I have another question. I flew a Slow Stick today with the 2.0 code. It was all over the place. It almost looked like it was swimming in the sky. I think the sensitivity for the FMA sensor was too high. Is there a way to adjust it in flight? Does anyone know were to adjust it in the code?
Ryan
That code is optimized for the EasyStar--you will definitely have to tweak the settings for your plane. They're in the first tab, and look like this:

Code:
#define roll_abs .2 //Set point absolute proportional... I don't know how to explain it...
#define roll_P .8 //roll PID proportional
#define roll_I 1.5 //roll PID integrator
#define roll_min -55 //PID output limit in servo degrees
#define roll_max  55 //PID output limit in servo degrees

#define pitch_P .6 
#define pitch_I .5
#define pitch_min -70
#define pitch_max  70
Tweak these for your plane.
zlite is offline Find More Posts by zlite   Reply With Quote
Old Mar 20, 2009, 03:51 AM   #73
Registered User
 
Join Date: Dec 2005
Posts: 26
Aurdupilot + waypoint task

Hello i am new in UAV world and looking to get a ardupilot to try. but I have a small question Is ardupilot able to make a waypoint task (eg to take a photo or releasing Payload) when it comes to a selected waypiont?
is anyone have any examples of what i mean?
I am fairly new to c + + so I would like some help.

thanks in advance
skygizmo is offline Find More Posts by skygizmo   Reply With Quote
Old Mar 20, 2009, 03:08 PM   #74
Registered User
 
brakar's Avatar
 
Join Date: Feb 2009
Location: Asker, Oslo, Norway
Posts: 157
Received the ArduPilot today. Now just waiting for the sensors and FMA-stuff to arrive.

Meanwhile, I have a few questions:
- will the hardware-setup be the same for software release 2.1 as for 1.0 and 2.0? (additional Z-sensor)
- will it pay off to wait for the 2.1 software to arrive before setting up the board
- is there modified and tested code for a 4 servo trainer available anywhere? (like SIG Kadet LT40, AviaStar, HobbiStar etc.)


brakar
brakar is offline Find More Posts by brakar   Reply With Quote
Old Mar 20, 2009, 07:16 PM   #75
Chris Anderson
 
Join Date: Mar 2007
Location: San Francisco/Bay Area
Posts: 670
Quote:
Originally Posted by brakar
Received the ArduPilot today. Now just waiting for the sensors and FMA-stuff to arrive.

Meanwhile, I have a few questions:
- will the hardware-setup be the same for software release 2.1 as for 1.0 and 2.0? (additional Z-sensor)
- will it pay off to wait for the 2.1 software to arrive before setting up the board
- is there modified and tested code for a 4 servo trainer available anywhere? (like SIG Kadet LT40, AviaStar, HobbiStar etc.)
--The hardware is the same. You just solder on three more connectors for the Z sensor.
--Not really. The only difference between the 2.0 and 2.1 code is the in-field calibration process.
--Right now the code is optimized for the EasyStar, but you can use it on other airframes by tweaking the roll and pitch gains appropriately. This is true for all autopilots--each has to be tweaked to suit the aircraft it's flying one. ArduPilot 2.0 does not use the rudder in a 4-channel plane.
zlite is offline Find More Posts by zlite   Reply With Quote
Reply Post New Thread  Previous Thread Next Thread

Castle Creations      DRIVE / FLY / SUPPORT  

Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Discussion willhaney released 2.0 willhaney 2.1 Site Chat 1 Jan 22, 2009 08:45 PM
DXF2DAT 3.0 Professional Released (cnc foam cutting software) djmrozinski Electric Plane Talk 2 Feb 17, 2008 05:24 AM
Question what news in mpx evo software V.2.0 ? vidhawas Radios 18 Aug 02, 2007 07:35 AM
Download SmartPropoPlus 2.2.0 released - better usability shaul_ei Simulators 0 Feb 27, 2006 09:20 AM
FMS 2.0 Beta Mark Fitz Beginner Training Area (Aircraft-Electric) 13 Jun 07, 2001 09:57 AM




All RCGroups content copyright 1996 - 2009 by RCGroups.com and Jim Bourke except where otherwise indicated.
Terry the transmitter, the RCGroups name and logo, The E Zone, Lift Zone, and RC Power are all trademarks of RCGroups and Jim Bourke. Please report any misuse of our trademarks using the contact form. Thank you.

Bored? Want to fight?
Join the RCGroups clan!

Powered by vBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.