i can't calibrate MAG with v2.2

This forum is dedicated to all issues and questions related to your individual setups and configurations
Post Reply
stststst2013
Posts: 7
Joined: Wed Mar 20, 2013 1:47 pm
Location: China

i can't calibrate MAG with v2.2

Post by stststst2013 »

i can calibrate MAG with v2.1,but I can't do it with v2.2 .when i hit CALIB_MAG about in 5 second ,the roll will stop in one point . I rotate my FC,the model does not respond ,and the pitch and yaw work well,only roll,so i can't use the GPS hold and headfree in v2.2.!!!!!!!!!!!!!!!!!!!!!!!!

now ,i have change the part of code(sensors.ino) :" // I2C Compass common function" use the part of 2.1 replace the part of 2.2
use "#if defined(HMC5843) || defined(HMC5883)" and " global_conf" and "magGain" but the problem can't be solved,how can i do! help me!!!!!

PatrikE
Posts: 1976
Joined: Tue Apr 12, 2011 6:35 pm
Location: Sweden
Contact:

Re: i can't calibrate MAG with v2.2

Post by PatrikE »

When you switch to V2.2 you may have to wipe the Eeprom first.
Use the Eeprom clear example in Arduino Gui.

stststst2013
Posts: 7
Joined: Wed Mar 20, 2013 1:47 pm
Location: China

Re: i can't calibrate MAG with v2.2

Post by stststst2013 »

I have done it,but............ :(

"wipe the Eeprom " ---reset ?!! have hit it...

stststst2013
Posts: 7
Joined: Wed Mar 20, 2013 1:47 pm
Location: China

Re: i can't calibrate MAG with v2.2

Post by stststst2013 »

PatrikE thank u!
can you teach me how to Adjust the PID ? i can only use the V2.1,but ,the default PIO is not fit me well

stststst2013
Posts: 7
Joined: Wed Mar 20, 2013 1:47 pm
Location: China

Re: i can't calibrate MAG with v2.2

Post by stststst2013 »

中文
i have replace the code copy part of 2.1 to 2.2,but i can't resole it, the problem may be in Eeprom.who can help me!

scrat
Posts: 925
Joined: Mon Oct 15, 2012 9:47 am
Location: Slovenia

Re: i can't calibrate MAG with v2.2

Post by scrat »

stststst2013 wrote:中文
i have replace the code copy part of 2.1 to 2.2,but i can't resole it, the problem may be in Eeprom.who can help me!


Did you do eeprom_clear with Arduino IDE?

stststst2013
Posts: 7
Joined: Wed Mar 20, 2013 1:47 pm
Location: China

Re: i can't calibrate MAG with v2.2

Post by stststst2013 »

do eeprom_clear with Arduino IDE? I hit reset button in GUI ,but no use

Szychor
Posts: 21
Joined: Sun Mar 24, 2013 3:14 pm

Re: i can't calibrate MAG with v2.2

Post by Szychor »

No reset button , he mean's a sketch from Arduino IDE, open FIle --> Examples -->EEprom-->eeprom_clear and flsh it . After that Flash fresh multiwii firmware and try to calibrate mag now.

stststst2013
Posts: 7
Joined: Wed Mar 20, 2013 1:47 pm
Location: China

Re: i can't calibrate MAG with v2.2

Post by stststst2013 »

open FIle --> Examples -->EEprom-->eeprom_clear and flsh it

i can't find it!!!! it's not a command ,it's a file ---Arduino Source Code ----- eeprom_clear.ino

Szychor
Posts: 21
Joined: Sun Mar 24, 2013 3:14 pm

Re: i can't calibrate MAG with v2.2

Post by Szychor »

You must do that from arduino software not from multiwiiconf. Its same as you want to flash new multiwii firmware but u select eeprom_clear , send it to board, wait 30 sec then flash again multiwii 2.1 .

scrat
Posts: 925
Joined: Mon Oct 15, 2012 9:47 am
Location: Slovenia

Re: i can't calibrate MAG with v2.2

Post by scrat »

stststst2013 wrote:open FIle --> Examples -->EEprom-->eeprom_clear and flsh it

i can't find it!!!! it's not a command ,it's a file ---Arduino Source Code ----- eeprom_clear.ino



Do it like Szychor said. Open Arduino program the chose FIle --> Examples -->EEprom-->eeprom_clear and load it to your flight controller wait for flashing to be done and then load multiwii v2.2 on FC.

stststst2013
Posts: 7
Joined: Wed Mar 20, 2013 1:47 pm
Location: China

Re: i can't calibrate MAG with v2.2

Post by stststst2013 »

maybe MWC 2.2 6050 module's transmit function have lost! !!!!!!!!!!!!!!! how i can do?

scrat
Posts: 925
Joined: Mon Oct 15, 2012 9:47 am
Location: Slovenia

Re: i can't calibrate MAG with v2.2

Post by scrat »

stststst2013 wrote:maybe MWC 2.2 6050 module's transmit function have lost! !!!!!!!!!!!!!!! how i can do?


Image

Post Reply