Hi,

I hope someone will be able to help me here :-) i have postet this yesterday in the airframe design, maybe wrong categorie..

Since i'm not happy with the Stock frame setup (doesn't fit to my frame) i decided to start making my own Motor Layout.

here the frame3691016148?profile=original

The Box in the middle is the APM and the CG.

here the defaults for the V-Frame

}else if( _frame_orientation == AP_MOTORS_V_FRAME ) {
add_motor(AP_MOTORS_MOT_1, 45, 0.7981, 1);
add_motor(AP_MOTORS_MOT_2, -135, 1.0000, 3);
add_motor(AP_MOTORS_MOT_3, -45, -0.7981, 4);
add_motor(AP_MOTORS_MOT_4, 135, -1.0000, 2);

here my suggestion

}else if( _frame_orientation == AP_MOTORS_V_FRAME ) {
add_motor(AP_MOTORS_MOT_1, 61, 0.9272, 1);
add_motor(AP_MOTORS_MOT_2, -144, 1.0000, 3);
add_motor(AP_MOTORS_MOT_3, -61, -0.9272, 4);
add_motor(AP_MOTORS_MOT_4, 144, -1.0000, 2);

is this correct ?

Thanks in advance !

Thomas

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Developer

    }else if( _frame_orientation == AP_MOTORS_V_FRAME ) {
    add_motor(AP_MOTORS_MOT_1, 45, 0.72391, 1);
    add_motor(AP_MOTORS_MOT_2, -135, 1.0000, 3);
    add_motor(AP_MOTORS_MOT_3, -45, -0.72391, 4);
    add_motor(AP_MOTORS_MOT_4, 135, -1.0000, 2);

    or

    }else if( _frame_orientation == AP_MOTORS_V_FRAME ) {
    add_motor(AP_MOTORS_MOT_1, 61, 0.72391, 1);
    add_motor(AP_MOTORS_MOT_2, -144, 1.0000, 3);
    add_motor(AP_MOTORS_MOT_3, -61, -0.72391, 4);
    add_motor(AP_MOTORS_MOT_4, 144, -1.0000, 2);

    the motor angles has more to do with the inertial of the frame in each direction versus the toque of the roll and pitch axis.

    The most important thing you must do is make sure the CG is at the center of lift CL. Currently the code assumes this and it can't be adjusted. In this case it is 80mm further back than you have drawn your origin.

  • Developer

    Instead of changing the angles in the AP_Motors library you can just change the Roll and Pitch Rate PID values.  That will actually have the same effect.

    As for the yaw factors, I'm less sure.  If you get the number right then you won't notice any roll or pitch effect when you yaw.  I actually don't know exactly how that yaw factor was calculated for the V.  For that you'd need to ask Leonard Hall.

  • How did it fly?  It looks like you did all of the math correctly.  

  • nobody :-(

    just tested it 

    Video

This reply was deleted.

Activity

DIY Robocars via Twitter
RT @chr1sa: Donkeycar 4.4 released with tons of new features, including path learning (useful with GPS outdoors), better Web and Lidar supp…
19 hours ago
DIY Robocars via Twitter
RT @NXP: We are already biting our nails in anticipation of the #NXPCupEMEA challenge! 😉 Did you know there are great cash prizes to be won…
Friday
DIY Robocars via Twitter
RT @gclue_akira: レースまであと3日。今回のコースは激ムズかも。あと一歩 #jetracer https://t.co/GKcEjImQ3t
Friday
DIY Robocars via Twitter
UC Berkeley's DIY robocar program https://roar.berkeley.edu/
Friday
DIY Robocars via Twitter
RT @chr1sa: The next @DIYRobocars autonomous car race at @circuitlaunch will be on Sat, Dec 10. Thrills, spills and a Brazilian BBQ. Fun…
Friday
DIY Robocars via Twitter
RT @arthiak_tc: Donkey car platform ... Still training uses behavioral cloning #TCXpo #diyrobocar @OttawaAVGroup https://t.co/PHBYwlFlnE
Nov 20
DIY Robocars via Twitter
RT @emurmur77: Points for style. @donkeycar racing in @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/Y2hMyj1…
Nov 20
DIY Robocars via Twitter
RT @SmallpixelCar: Going to @diyrobocars race at @UCSDJacobs https://t.co/Rrf9vDJ8TJ
Nov 8
DIY Robocars via Twitter
RT @SmallpixelCar: Race @diyrobocars at @UCSDJacobs thanks @chr1sa for taking the video. https://t.co/kK686Hb9Ej
Nov 8
DIY Robocars via Twitter
RT @PiWarsRobotics: Presenting: the Hacky Racers Robotic Racing Series in collaboration with #PiWars. Find out more and register your inter…
Oct 23
DIY Robocars via Twitter
RT @Hacky_Racers: There will be three classes at this event: A4, A2, and Hacky Racer! A4 and A2 are based around UK paper sizing and existi…
Oct 23
DIY Robocars via Twitter
Oct 23
DIY Robocars via Twitter
Oct 19
DIY Robocars via Twitter
Oct 18
DIY Robocars via Twitter
RT @NeaveEng: Calling all UK based folks interested in @diyrobocars, @f1tenth, @donkey_car, and similar robot racing competitions! @hacky_r…
Oct 13
DIY Robocars via Twitter
RT @araffin2: 🏎️ After hours of video editing, I'm happy to share a best of my Twitch videos on learning to race with RL. 🏎️ Each part is…
Oct 13
More…