Search found 220 matches

by alll
Fri Jan 04, 2013 6:30 pm
Forum: Ideas
Topic: rx stick calibration
Replies: 5
Views: 3028

Re: rx stick calibration

Thanks for your input, We assume the transmitter as a reference for rx signal lengths. This suppose that transmitter has all values by default, so we will "never" exceed the "1000" msec range! So for example throttle reads 1020, pitch/roll/yaw averaged 1530 => diff=510 (if the di...
by alll
Fri Jan 04, 2013 4:15 pm
Forum: Ideas
Topic: rx stick calibration
Replies: 5
Views: 3028

rx stick calibration

Happy new year! Idea is to avoid setting the endpoints of transmitter to "1000" ... "2000" in the gui. We “assume” then throttle(1000)-pitch(1500)=500 msec, read the real values, make the ratio... To do so, a transmitter calibration has to be done once. During calibration, thrott...
by alll
Sun Dec 16, 2012 10:16 pm
Forum: Software development
Topic: Use serial port 3 in MEGA too...
Replies: 29
Views: 10781

Re: Use serial port 3 in MEGA too...

Yeahiii!, its working ;)
Thanks a lot!
manu
by alll
Sun Dec 16, 2012 10:15 am
Forum: Software development
Topic: Use serial port 3 in MEGA too...
Replies: 29
Views: 10781

Re: Use serial port 3 in MEGA too...

Is there a release based on v2.1 that make the serial work on a atmega32u4 board (drofly)?
Could i use this one?
http://code.google.com/p/multiwii/sourc ... Wii_shared

thanks,
manu
by alll
Wed Dec 12, 2012 11:52 pm
Forum: Ideas
Topic: Gyro calibration (zeroing), movement detection
Replies: 33
Views: 11788

Re: Gyro calibration (zeroing), movement detection

Hi, I tested Mis code and mine regarding the supposed temperature drift problem with the GYROCALIBRATIONFAILSAFE option (heat gun while power up). Both do calibrate well without problems. Invensense gyro MPU6050. I don't think many people still do use piezo gyro's, these were really temp sensitive, ...
by alll
Tue Dec 11, 2012 9:39 pm
Forum: Ideas
Topic: Gyro calibration (zeroing), movement detection
Replies: 33
Views: 11788

Re: Gyro calibration (zeroing), movement detection

Since temperature will affect gyroZero values, we could store the gyro temp after a successful calibration, if the temp changes a warning should tell us to do a manual recalibration... or if there a magic formula that compensates the gyroZero values base on temp changes after calibration... Is there...
by alll
Tue Dec 11, 2012 9:27 pm
Forum: Ideas
Topic: Gyro calibration (zeroing), movement detection
Replies: 33
Views: 11788

Re: Gyro calibration (zeroing), movement detection

(by the way the line after #if defined(GYROCALIBRATIONFAILSAFE) “previousGyroADC[axis] = gyroADC[axis];” should not be there…) This statement set initial value of previousGyroADC at start of calibration (if calibratingG == 400). Without this, if the copter is stable at startup, the first attempt to...
by alll
Tue Dec 11, 2012 3:36 pm
Forum: Ideas
Topic: Gyro calibration (zeroing), movement detection
Replies: 33
Views: 11788

Re: Gyro calibration (zeroing), movement detection

Could you come to a conclusion here? Is the code i posted in the beginning a valid option? ALWAYS do a manual gyro calibration before takeoff (for the gurus) OR Automatically calibrate after power up, with correct working code (for the Mormons that expect code logic could do it for them) thanks, manu
by alll
Tue Dec 11, 2012 12:36 pm
Forum: Ideas
Topic: Gyro calibration (zeroing), movement detection
Replies: 33
Views: 11788

Re: Gyro calibration (zeroing), movement detection

The way you do the calibration is different from mine! If I get it correct, you check every 10 samples (out of the 400) the difference of current gyroADC with previousgyroADC(10 samples before) for the 3 axis. If there is a difference you reset calibrating=1000 (not 400?) to start over. (by the way ...
by alll
Mon Dec 10, 2012 11:47 pm
Forum: Ideas
Topic: Gyro calibration (zeroing), movement detection
Replies: 33
Views: 11788

Re: Gyro calibration (zeroing), movement detection

Again, the way i do the calibration (movement detection) is to do 2 calibrations after each other, compare, if == it means no movement and the gyroZero's are correct! Even if temperature affects gyro, it should settle at a certain point, and the 2 calibrations will be identical. Am i missing somethi...
by alll
Mon Dec 10, 2012 11:13 pm
Forum: Ideas
Topic: Gyro calibration (zeroing), movement detection
Replies: 33
Views: 11788

Re: Gyro calibration (zeroing), movement detection

No!
The code i posted is called only in setup, and only on power up as long as you don't keep the copter still, it loops calibrating.

I fly like this now and this is the way it should be imho. You can still calibrate via sticks after if you want.

manu
by alll
Mon Dec 10, 2012 9:31 pm
Forum: Ideas
Topic: Gyro calibration (zeroing), movement detection
Replies: 33
Views: 11788

Re: Gyro calibration (zeroing), movement detection

i don't find GYROCALIBRATIONFAILSAFE in v2.1 ?
by alll
Mon Dec 10, 2012 7:23 am
Forum: Ideas
Topic: Gyro calibration (zeroing), movement detection
Replies: 33
Views: 11788

Re: Gyro calibration (zeroing), movement detection

Good! But i can't imagine doing a gyro zero calibration without this movement check! Why is it not enabled by default ?
Thanksmanu
by alll
Sun Dec 09, 2012 10:15 pm
Forum: Ideas
Topic: Gyro calibration (zeroing), movement detection
Replies: 33
Views: 11788

Re: Gyro calibration (zeroing), movement detection

So, i came up with this: Goal, when board is powered up, and the board moves, continue trying to find gyro zero's (gyro calibration) Alex, or some other developer, can you tell me if this could be written using less variables. Is the the right place to do it? manu In void setup() at line // calibrat...
by alll
Sun Dec 09, 2012 6:51 pm
Forum: Ideas
Topic: Gyro calibration (zeroing), movement detection
Replies: 33
Views: 11788

Gyro calibration (zeroing), movement detection

Hi, I have had weird behaviors when starting motors after power up the copter. So if i hold the copter upsidedown and move it while powering the board, arm and start, sometimes, not all motors start at the same time. If after power up, i do a gyro cal. all is smooth! So, for now i always do a manual...
by alll
Sat Dec 08, 2012 10:47 pm
Forum: Software development
Topic: disabling all sensors except 1 axis gyro
Replies: 9
Views: 3152

Re: disabling all sensors except 1 axis gyro

Yep, its X4 ;)
With the changes posted above, its working for the sensors. Rx are still all active, but that's ok.
This method of tuning pid is the best imho.
manu
by alll
Fri Dec 07, 2012 12:15 pm
Forum: Software development
Topic: disabling all sensors except 1 axis gyro
Replies: 9
Views: 3152

Re: disabling all sensors except 1 axis gyro

Just take the props off the motors you don't want to have an effect on the airframe, would that work? or disconnect the motors all togeather No, you don't get it. I hang the copter left and right wit a rope. My goal is to only PID tune 1 axis (pitch), and roll & yaw should be off (sensor : this...
by alll
Fri Dec 07, 2012 11:57 am
Forum: Software development
Topic: disabling all sensors except 1 axis gyro
Replies: 9
Views: 3152

Re: disabling all sensors except 1 axis gyro

Still have to disable Rx commands for roll & yaw ...
by alll
Fri Dec 07, 2012 11:33 am
Forum: Software development
Topic: disabling all sensors except 1 axis gyro
Replies: 9
Views: 3152

Re: disabling all sensors except 1 axis gyro

It is for tuning the PID on a test bank, between 2 ropes (not flying), and i don't want to get influences from the other axis. //in config.h #define PITCHAXISONLY 1 // in main loop at the end ... //**** PITCH & ROLL & YAW PID **** for(axis=0;axis<3;axis++) { ... axisPID[axis] = PTerm + ITerm...
by alll
Fri Dec 07, 2012 10:00 am
Forum: Software development
Topic: disabling all sensors except 1 axis gyro
Replies: 9
Views: 3152

disabling all sensors except 1 axis gyro

Hello, (my first post here) I want to tune the PID settings for gyro. What is the easiest way of having only 1 axis (pitch for example) active, all other axis are off. I tried setting PID of roll & yaw to 0 (zero) but ideally the rx should also be turned off. So the goal here is that only the pi...