|
|
|
|
|
|
|
|
|
Latest blog entry: Quick Stick
|
|
|
|
|
|
||
|
Joined Jun 2010
56 Posts
|
Quote:
![]() Rcvertt, Thank you for the code information. I'll dive into it tonight. I went to the field today ready for forward flight. I had problems with my board. It just didn't act right. The motors didn't run up correctly. The variable thrust didn't work and the motors didn't smoothly power up. They came to half speed and then suddenly full power without my increasing the throttle. I couldn't see anything wrong but the other day a wire came loose from the board. I think I need to glue the wires to the board to take the strain off the solder joints. |
|
|
||
|
|
||
|
|
Quote:
|
|
|
||
|
|
|
|
|
Flown and crashed like a BOSS!
It's good to get that new plane smell off it quick so you don't mind crashing it some more as the development continues. Get a car inverter. It'll let you plug your glue gun and soldering iron into your car lighter port. I always have to glue my plane together at least 10 times before I get it all working smoothly. Attached is new code that should let you use servo 1 and servo 2 on A0 and A1. Test it on the ground to make sure it works. I has the following new section where you can access the motor and servo commands. Change signs to reverse movement and use axisPID instead of rcCommand if you want the servo to respond to gyro movement. Code:
///////////////////////////QTR Motor and Servo commands./////////////////////////////
void forwardFlightMotorCommands()
{
motor[0] = rcCommand[THROTTLE] +YAW_DIRECTION * rcCommand[YAW]; //REAR_R ForwardFlight motor command.
motor[1] = rcCommand[THROTTLE] +YAW_DIRECTION * rcCommand[YAW]; //FRONT_R ForwardFlight motor command.
motor[2] = rcCommand[THROTTLE] -YAW_DIRECTION * rcCommand[YAW]; //REAR_L ForwardFlight motor command.
motor[3] = rcCommand[THROTTLE] -YAW_DIRECTION * rcCommand[YAW]; //FRONT_L ForwardFlight motor command.
}
void hoverMotorCommands()
{
motor[0] = rcCommand[THROTTLE] -axisPID[ROLL] +axisPID[PITCH] -YAW_DIRECTION * axisPID[YAW]; //REAR_R //QTR- Motor 9 Hover motor command.
motor[1] = rcCommand[THROTTLE] -axisPID[ROLL] -axisPID[PITCH] +YAW_DIRECTION * axisPID[YAW]; //FRONT_R //QTR- Motor 10 Hover motor command.
motor[2] = rcCommand[THROTTLE] +axisPID[ROLL] +axisPID[PITCH] +YAW_DIRECTION * axisPID[YAW]; //REAR_L //QTR- Motor 11 Hover motor command.
motor[3] = rcCommand[THROTTLE] +axisPID[ROLL] -axisPID[PITCH] -YAW_DIRECTION * axisPID[YAW]; //FRONT_L //QTR- Motor 3 Hover motor command.
}
void servoCommands()
{
servo[1] = constrain(1500 +rcCommand[ROLL] +rcCommand[PITCH], 1020, 2000);
servo[2] = constrain(1500 +rcCommand[ROLL] +rcCommand[PITCH], 1020, 2000);
}
///////////////////////////QTR Motor and Servo commands./////////////////////////////
|
|
|
|
|
Joined Jun 2010
56 Posts
|
Yep! KFC, I guess you would recognize the field at Rodards, KY. You have after all, flown all kinds of odds and ends there. I wish you would join us more often.
RCvertt, thanks for the code. I went gym flying today and I'm heading to E-fest tomorrow. I'll have the QTR repaired and going again in a day or two. I was really pleased with forward flight. I had taken off and landed two or three times prior to the crash. The battery was a little low and when I lost speed in the turn I didn't have enough power or throw to land smoothly. I still haven't figured out why it won't hover. I'm using the same motors as F&T and my airframe is 75% the size as per Birdofplay's plans. I know the weight has to be less. Mine is right at 2 lbs. with battery. When I get it back together I'm going to start cutting out foam from under the props to allow more air flow. |
|
|
|
|
||
|
Joined Mar 2013
2 Posts
|
Quote:
|
|
|
||
|
| Thread Tools | |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Build Log Quad Tilt Rotor - Build Log (Comments & Suggestions Welcome) | maxvtol | VTOLs | 251 | Feb 12, 2013 08:25 AM |
| Discussion QTD- Quad Tilt Duino (Arduino- Tilt Rotor) | RCvertt | VTOLs | 100 | Jun 28, 2012 12:15 AM |
| Discussion Help selecting receivers and transmitters for quad rotor | oscioscia | Multirotor Talk | 5 | Sep 06, 2011 01:43 PM |
| Discussion mcx 5in1 Unit for Roll Tilt Compensation on Quad | nicnaimless | Multirotor Talk | 0 | Aug 11, 2010 01:17 PM |
| Cool WOW!!!! Iphone controlled quad with vid link to iphone, tilt controlled!! | helifrek | Multirotor Talk | 8 | Jan 18, 2010 09:23 AM |