mobiDrone nano arduino OSD for MultiWii with PID config

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
ankimo
Posts: 30
Joined: Fri Jan 20, 2012 7:31 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by ankimo »

Hi Mr.MichalM_sk

In the following combination, serial communication is impossible.
-mobiDrone_2.3_pre6
-multiwii_2.0 for mobiDrone_2.3_pre6
-CRIUS SE

In the following combination, it is satisfactory.
-mobiDrone_2.3_pre5_sensitivity FIX
-multiwii_2.0 for mobiDrone_2.3_pre5
-CRIUS SE

What is the cause considered?

Kazz

Y.Mita
Posts: 46
Joined: Thu Sep 15, 2011 11:25 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by Y.Mita »

Mr.MichalM_sk,
Thank you mobiDroneOSD! Its cheap but powerfull OSD!

I'm still waiting your implementation, but I think I finished implementation mobiDroneOSD to Mr.EOSbandi's GPS integration.
Also I fix some bugs of compass and radar.

Here is some my sample source of mobiDroneOSD with MultiWii GPS integrarion.

The attached files are based on Mr.EOSBandi's GPS integration R33.
http://www.multiwii.com/forum/viewtopic.php?f=8&t=649&start=730
http://code.google.com/p/i2c-gps-nav/downloads/detail?name=I2C_GPS_NAV-MultiwiiDev-NAVr33.rar&can=2&q=
But cut off MultiWiiConf and I2C_GPS_NAV directory. If you want it, download from original.

And attached file include mobiDroneOSD for R33 which based on Mr.MichalM_sk's mobiDroneOSD v2.3 PRE RELEASE 6.
https://code.google.com/p/mobidrone/downloads/detail?name=mobiDroneOSD%20v2.3%20PRE%20RELEASE%206.rar&can=2&q=

I only implement PID setting of GPS position hold (POS) and position hold rate (PSR), Navigation rate (NVR), and delete some old PID and RATE.

I fixed 2 bugs below. But this two bugs are debug on desktop only.
1.Compass moving and direction is wrong. Bug is heading north, turn right seems heading west, and W mark coming from left side.
2.Radar moving counter clock wise when copter turning clock wise.

The attach files was only tested at my copter, which controller was Flyduino Mega, DroTek DOF10 MS, MTK3329 10Hz serial connection GPS, Hexa copter.


If you only have interesting of bug fix, please modify mobiDroneOSD file only.

compass bug, modify around line number 4798
Original

Code: Select all

//print compass data 
static void printCompass(int16_t heading){

  int8_t deg = (heading / 15) + 5;
  if(heading <= - 173 || heading >= 173)
     deg = 17;
 
  for(uint8_t i = 0; i < 11; i++){

    buffering(COMPASSBAR_START, i, 63);

    if(deg == i)   
      buffering(COMPASSBAR_START, i, 'N' - 54);

    if((deg - 6 >= 0) && (deg - 6 == i))
      buffering(COMPASSBAR_START, i, 'W' - 54);

    if((deg + 6 < 11) && (deg + 6 == i))
      buffering(COMPASSBAR_START, i, 'E' - 54);

    if((deg + 12 < 11) && (deg + 12 == i))
      buffering(COMPASSBAR_START, i, 'S' - 54);

    if((deg - 12 >= 0) && (deg - 12 == i))
      buffering(COMPASSBAR_START, i, 'S' - 54); 
  }
}


bug fix (including my modified comment)

Code: Select all

//print compass data 
static void printCompass(int16_t heading){

  int8_t deg = (heading / 15) + 5;
  if(heading <= - 173 || heading >= 173)
     deg = 17;
 
  for(uint8_t i = 0; i < 11; i++){

//    buffering(COMPASSBAR_START, i, 63);            // 2012.05.27 Y.Mita compass bug fix start
    buffering(COMPASSBAR_START, 10-i, 63);

    if(deg == i)   
//      buffering(COMPASSBAR_START, i, 'N' - 54);
      buffering(COMPASSBAR_START, 10-i, 'N' - 54);

    if((deg - 6 >= 0) && (deg - 6 == i))
//      buffering(COMPASSBAR_START, i, 'W' - 54);
      buffering(COMPASSBAR_START, 10-i, 'E' - 54);

    if((deg + 6 < 11) && (deg + 6 == i))
//      buffering(COMPASSBAR_START, i, 'E' - 54);
      buffering(COMPASSBAR_START, 10-i, 'W' - 54);

    if((deg + 12 < 11) && (deg + 12 == i))
//      buffering(COMPASSBAR_START, i, 'S' - 54);
      buffering(COMPASSBAR_START, 10-i, 'S' - 54);

    if((deg - 12 >= 0) && (deg - 12 == i))
//      buffering(COMPASSBAR_START, i, 'S' - 54); 
      buffering(COMPASSBAR_START, 10-i, 'S' - 54); 
                                                     // 2012.05.27 Y.Mita compass bug fix end
  }
}


radar bug, modify line number 4165
Original

Code: Select all

    rad = -(readedHeading*0.0174533f);   //N - S, E - W


bug fix (including my modified comment)

Code: Select all

//    rad = -(readedHeading*0.0174533f);   //N - S, E - W
    rad = (readedHeading*0.0174533f);   //N - S, E - W //2012.05.28 Y.Mita


MultiWiiR33WithmobiDroneOSD2.3_pre6.rar
(130.66 KiB) Downloaded 441 times

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by copterrichie »

Y.Mita, Just added and tested your bug fix and it works great. Thank you.

MichalM_sk
Posts: 89
Joined: Wed Jun 15, 2011 5:04 pm
Location: Slovakia

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by MichalM_sk »

ankimo wrote:Hi Mr.MichalM_sk

In the following combination, serial communication is impossible.
-mobiDrone_2.3_pre6
-multiwii_2.0 for mobiDrone_2.3_pre6
-CRIUS SE

In the following combination, it is satisfactory.
-mobiDrone_2.3_pre5_sensitivity FIX
-multiwii_2.0 for mobiDrone_2.3_pre5
-CRIUS SE

What is the cause considered?

Kazz


Hi, could you try disable telemetry and other stuff in multiwii and try it again? Thanks. I will check it.

Y.Mita wrote:Mr.MichalM_sk,
Thank you mobiDroneOSD! Its cheap but powerfull OSD!

I'm still waiting your implementation, but I think I finished implementation mobiDroneOSD to Mr.EOSbandi's GPS integration.
Also I fix some bugs of compass and radar.

Here is some my sample source of mobiDroneOSD with MultiWii GPS integrarion.

The attached files are based on Mr.EOSBandi's GPS integration R33.
http://www.multiwii.com/forum/viewtopic.php?f=8&t=649&start=730
http://code.google.com/p/i2c-gps-nav/downloads/detail?name=I2C_GPS_NAV-MultiwiiDev-NAVr33.rar&can=2&q=
But cut off MultiWiiConf and I2C_GPS_NAV directory. If you want it, download from original.

And attached file include mobiDroneOSD for R33 which based on Mr.MichalM_sk's mobiDroneOSD v2.3 PRE RELEASE 6.
https://code.google.com/p/mobidrone/downloads/detail?name=mobiDroneOSD%20v2.3%20PRE%20RELEASE%206.rar&can=2&q=

I only implement PID setting of GPS position hold (POS) and position hold rate (PSR), Navigation rate (NVR), and delete some old PID and RATE.

I fixed 2 bugs below. But this two bugs are debug on desktop only.
1.Compass moving and direction is wrong. Bug is heading north, turn right seems heading west, and W mark coming from left side.
2.Radar moving counter clock wise when copter turning clock wise.

The attach files was only tested at my copter, which controller was Flyduino Mega, DroTek DOF10 MS, MTK3329 10Hz serial connection GPS, Hexa copter.


If you only have interesting of bug fix, please modify mobiDroneOSD file only.

compass bug, modify around line number 4798
Original

Code: Select all

//print compass data 
static void printCompass(int16_t heading){

  int8_t deg = (heading / 15) + 5;
  if(heading <= - 173 || heading >= 173)
     deg = 17;
 
  for(uint8_t i = 0; i < 11; i++){

    buffering(COMPASSBAR_START, i, 63);

    if(deg == i)   
      buffering(COMPASSBAR_START, i, 'N' - 54);

    if((deg - 6 >= 0) && (deg - 6 == i))
      buffering(COMPASSBAR_START, i, 'W' - 54);

    if((deg + 6 < 11) && (deg + 6 == i))
      buffering(COMPASSBAR_START, i, 'E' - 54);

    if((deg + 12 < 11) && (deg + 12 == i))
      buffering(COMPASSBAR_START, i, 'S' - 54);

    if((deg - 12 >= 0) && (deg - 12 == i))
      buffering(COMPASSBAR_START, i, 'S' - 54); 
  }
}


bug fix (including my modified comment)

Code: Select all

//print compass data 
static void printCompass(int16_t heading){

  int8_t deg = (heading / 15) + 5;
  if(heading <= - 173 || heading >= 173)
     deg = 17;
 
  for(uint8_t i = 0; i < 11; i++){

//    buffering(COMPASSBAR_START, i, 63);            // 2012.05.27 Y.Mita compass bug fix start
    buffering(COMPASSBAR_START, 10-i, 63);

    if(deg == i)   
//      buffering(COMPASSBAR_START, i, 'N' - 54);
      buffering(COMPASSBAR_START, 10-i, 'N' - 54);

    if((deg - 6 >= 0) && (deg - 6 == i))
//      buffering(COMPASSBAR_START, i, 'W' - 54);
      buffering(COMPASSBAR_START, 10-i, 'E' - 54);

    if((deg + 6 < 11) && (deg + 6 == i))
//      buffering(COMPASSBAR_START, i, 'E' - 54);
      buffering(COMPASSBAR_START, 10-i, 'W' - 54);

    if((deg + 12 < 11) && (deg + 12 == i))
//      buffering(COMPASSBAR_START, i, 'S' - 54);
      buffering(COMPASSBAR_START, 10-i, 'S' - 54);

    if((deg - 12 >= 0) && (deg - 12 == i))
//      buffering(COMPASSBAR_START, i, 'S' - 54); 
      buffering(COMPASSBAR_START, 10-i, 'S' - 54); 
                                                     // 2012.05.27 Y.Mita compass bug fix end
  }
}


radar bug, modify line number 4165
Original

Code: Select all

    rad = -(readedHeading*0.0174533f);   //N - S, E - W


bug fix (including my modified comment)

Code: Select all

//    rad = -(readedHeading*0.0174533f);   //N - S, E - W
    rad = (readedHeading*0.0174533f);   //N - S, E - W //2012.05.28 Y.Mita


MultiWiiR33WithmobiDroneOSD2.3_pre6.rar


Thank you for your cooperation in mobidrone osd project. I am still working on version pre7 but I have very little time these days. (exams and master degree examinations :( ) so it goes slower.

BR
Michal M.

nhadrian
Posts: 421
Joined: Tue Oct 25, 2011 9:25 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by nhadrian »

Dear Y.Mita!

Could you please tell the instructions for modifying the latest dev 20120528 for Mobidrone?

Br
Adrian

Y.Mita
Posts: 46
Joined: Thu Sep 15, 2011 11:25 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by Y.Mita »

nhadrian wrote:Dear Y.Mita!

Could you please tell the instructions for modifying the latest dev 20120528 for Mobidrone?

Br
Adrian


Mr. Adrain and Mr.Kazz,

Thank you for waiting!

Now I release sample files of mobiDroneOSD for MultiWii_dev_20120528 with some bug fix.

This time, you don't need to install libraries.

Attached file only include MultiWii_dev_20120528 for mobiDroneOSD, and mobiDroneOSD based 2.3_pre6.
You must flash MultiWii and mobiDroneOSD.
If you want to use GUI, download original MultiWii_dev_20120528 and use MultiWiiConf_dev_20120528.

Bug fix below
1.Can't save parameter change after 2.3_pre6. It's very hard job to fix!
2.Can't calibrate Acc and Mag from OSD. I missed at last release "MultiWiiR33WithmobiDroneOSD2.3_pre6.rar"

Still not work GPS FIX from OSD! I'm not work yet.

Warning! I don't have time to do field test. Only desktop debug. Maybe field test tomorrow.
MultiWii_dev_20120528WithmobiDroneOSD2.3_pre6.rar
(125.35 KiB) Downloaded 424 times
Last edited by Y.Mita on Fri Jun 01, 2012 10:41 pm, edited 1 time in total.

nhadrian
Posts: 421
Joined: Tue Oct 25, 2011 9:25 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by nhadrian »

Dear Y.Mita!

I have just tested your latest code, all things works just fine! (I'm not using the PID tuning part so I'm talking just about the OSD functions), even radar screen!
It also works with the MultiwiiConf, once I disconnect the OSD from serial port.
I'm using the 50A current sensor from flytron:
http://www.flytron.com/osd-headtrackers ... ensor.html

It works well with the following modification in OSD code:

1. set #define CURRENT_SENSOR 2
2. find this in code

Code: Select all

#if (CURRENT_SENSOR == 2)
  currentValue = (currentValue - offset) * 0.061;
#endif


3. replace

Code: Select all

currentValue = (currentValue - offset) * 0.061
with this code

Code: Select all

 currentValue *= 0.049


But I'd have a question. I'm using a 4:3 camera with a 16:9 screen, so there is some deformation in ratio. Because of this, the artificial horizon looks oversensitive on roll and undersensitive on pitch.
Could you add a definable parameter into the OSD code for roll/pitch sensitivity? Than it'd be easy for everyone to fine-tune the sensitivity of the horizon.

I'll try to make some video and post of working OSD.... :D

BR
Adrian

Y.Mita
Posts: 46
Joined: Thu Sep 15, 2011 11:25 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by Y.Mita »

nhadrian wrote:Dear Y.Mita!

I have just tested your latest code, all things works just fine! (I'm not using the PID tuning part so I'm talking just about the OSD functions), even radar screen!
It also works with the MultiwiiConf, once I disconnect the OSD from serial port.

Thank you for testing. Using of MultiWiiConf, I'm doing the same thing as you.

nhadrian wrote:I'm using the 50A current sensor from flytron:
http://www.flytron.com/osd-headtrackers ... ensor.html

It works well with the following modification in OSD code:

1. set #define CURRENT_SENSOR 2
2. find this in code

Code: Select all

#if (CURRENT_SENSOR == 2)
  currentValue = (currentValue - offset) * 0.061;
#endif


3. replace

Code: Select all

currentValue = (currentValue - offset) * 0.061
with this code

Code: Select all

 currentValue *= 0.049


Thank you good information. I think I have same current sensor, but bulk parts. I'll try it later.

nhadrian wrote:But I'd have a question. I'm using a 4:3 camera with a 16:9 screen, so there is some deformation in ratio. Because of this, the artificial horizon looks oversensitive on roll and undersensitive on pitch.
Could you add a definable parameter into the OSD code for roll/pitch sensitivity? Than it'd be easy for everyone to fine-tune the sensitivity of the horizon.

I'm not real coder of mobiDroneOSD, then adding definable parameter is over work to me.
But I think the sensitive parameter which you want is below, around line number 4147.The number like "0.017...".

Code: Select all

    //roll 
    #ifdef ROLL_TILT_REVERSED
      rad =  readedRollAngle*0.0174533f;   //horizont roll
    #else
      rad =-(readedRollAngle*0.0174533f);   //horizont roll
    #endif
   
    posArray[0] = (sin(rad) * (RADAR_RADIUSM10));     
    posArray[1] = (cos(rad) * (RADAR_RADIUSM10));   
   
    //pitch
    #ifdef PITCH_TILT_REVERSED
      rad = -(readedPitchAngle*0.0174533f);
    #else
      rad = readedPitchAngle*0.0174533f;
    #endif

nhadrian wrote:I'll try to make some video and post of working OSD.... :D

I'll be happy to watching your video! Thanks!

MichalM_sk
Posts: 89
Joined: Wed Jun 15, 2011 5:04 pm
Location: Slovakia

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by MichalM_sk »

nhadrian wrote:
But I'd have a question. I'm using a 4:3 camera with a 16:9 screen, so there is some deformation in ratio. Because of this, the artificial horizon looks oversensitive on roll and undersensitive on pitch.
Could you add a definable parameter into the OSD code for roll/pitch sensitivity? Than it'd be easy for everyone to fine-tune the sensitivity of the horizon.



Hi, I am glad that the project goes forward.

I have still some school duties but PRE7 will support the new PID parameters
and in the OSD menu will be added:

- BAT2 voltage adjusting
- Current sensor sellection
- Roll Pitch sensitivity
- Selection of AUX channel to switch screen (normal / radar)
- Vertical resolution adjusting

BR
Michal M.

nhadrian
Posts: 421
Joined: Tue Oct 25, 2011 9:25 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by nhadrian »

Hi,

till PRE7 arrives, here is my solution on Sensitivity:

1, define these:

Code: Select all

#define ROLL_SENS      7   // default sensitive is 10
#define PITCH_SENS      16   // default sensitive is 10


2, replace this:

Code: Select all

 readedRollAngle = min((int)readedRollAngle/10, 40);    //value  -40 to 40 deg
    readedPitchAngle = min((int)readedPitchAngle/10, 40);    //value  -40 to 40 deg


to this:

Code: Select all

 readedRollAngle = min((int)readedRollAngle/10, 40)*ROLL_SENS/10;    //value  -40 to 40 deg
    readedPitchAngle = min((int)readedPitchAngle/10, 40)*PITCH_SENS/10;    //value  -40 to 40 deg


so then, sensitivity could be fine-tuned.

BR
Adrian

ankimo
Posts: 30
Joined: Fri Jan 20, 2012 7:31 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by ankimo »

Hi Mr.MichalM_sk

What should I do for displaying GPS Speed correctly in pre6?
Speed is not correctly displayed as well as Video of Mr.Y.Mita.

Kazz

MichalM_sk
Posts: 89
Joined: Wed Jun 15, 2011 5:04 pm
Location: Slovakia

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by MichalM_sk »

ankimo wrote:Hi Mr.MichalM_sk

What should I do for displaying GPS Speed correctly in pre6?
Speed is not correctly displayed as well as Video of Mr.Y.Mita.

Kazz


Hi Kazz,
displaying GPS speed is in dm/s.

For units m/s:

find this line:

Code: Select all

uint16_t speedTemp = (int) (RS232_TX_Buffer[45] << 8) | RS232_TX_Buffer[44];

and add the line

Code: Select all

speedTemp /= 10;

This week I will have degree examinations, and then finally be enough time for further development ;)
so please be patient.

ankimo
Posts: 30
Joined: Fri Jan 20, 2012 7:31 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by ankimo »

Hi Mr.MichalM_sk

Is it dm/s?
It overflowed with the usual movement speed (about 30 km/h).
It is over 999.

Kazz

ankimo
Posts: 30
Joined: Fri Jan 20, 2012 7:31 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by ankimo »

GPS Speed has improved. :)

Code: Select all

speedTemp /= 100;

http://www.youtube.com/watch?v=QD9vHDfwUxc

Kazz

BasTijs
Posts: 5
Joined: Thu Jun 21, 2012 7:39 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by BasTijs »

Hi there,

I'm looking for a OSD that I can use to read my board + additional sensors so I dont need all double sensors. But I'm new to all of this so here is a newb question:

I ordered a quadrino zoom (http://flyingeinstein.com/index.php/tutorials/knowit) + I2C GPS (http://flytron.com/sensors/180-i2c-g...nd-others.html)

Is it possible to add this OSD and read all the data from the board?

Regards,
Bas

MichalM_sk
Posts: 89
Joined: Wed Jun 15, 2011 5:04 pm
Location: Slovakia

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by MichalM_sk »

BasTijs wrote:Hi there,

I'm looking for a OSD that I can use to read my board + additional sensors so I dont need all double sensors. But I'm new to all of this so here is a newb question:

I ordered a quadrino zoom (http://flyingeinstein.com/index.php/tutorials/knowit) + I2C GPS (http://flytron.com/sensors/180-i2c-g...nd-others.html)

Is it possible to add this OSD and read all the data from the board?

Regards,
Bas


Hi, yes it will work just fine.

Final examination successfully completed and I am now engineer of Applied Informatics :)
At the moment I've had more time for development. PRE7 will be released until the end of next week.

BasTijs
Posts: 5
Joined: Thu Jun 21, 2012 7:39 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by BasTijs »

Gratz on making the exam and getting the job!

How do I add both the GPS + OSD? Just parallel solder it? I only got 1 set of pins on the board.

msev
Posts: 186
Joined: Thu Apr 14, 2011 11:49 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by msev »

Congratulations!

Y.Mita
Posts: 46
Joined: Thu Sep 15, 2011 11:25 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by Y.Mita »

MichalM_sk wrote:Final examination successfully completed and I am now engineer of Applied Informatics :)
At the moment I've had more time for development. PRE7 will be released until the end of next week.

Mr. MichalM, Congratulations!

And I hope Pre7 release with new multiwii serial protocol. Porting to mobiDrone the new communication protocol is too difficult for me!

MichalM_sk
Posts: 89
Joined: Wed Jun 15, 2011 5:04 pm
Location: Slovakia

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by MichalM_sk »

Thanks :)

BasTijs wrote:Gratz on making the exam and getting the job!

How do I add both the GPS + OSD? Just parallel solder it? I only got 1 set of pins on the board.

Hi, it is not possible to connect two devices to one serial port. You need i2c gps board to solute it.

mahowik
Posts: 332
Joined: Sun Apr 10, 2011 6:26 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by mahowik »

MichalM_sk wrote:Hi, it is not possible to connect two devices to one serial port. You need i2c gps board to solute it.


Hi Michal,

But actually if you don't need configure/init (with PMTK commands) GPS from arduino (or crius etc.) it's possible to use only TX from GPS and RX on arduino side accordingly.
So we have arduino TX for OSD! :) Or in your implementation it's required both TX/RX in any case, i.e. for some kind of initialization?
Also probably you are planning to support I2C for mobiDrone? Or there are not enough resources in mega328 to keep OSD functions and I2C?

thx-
Alex

p25o1
Posts: 33
Joined: Thu Mar 29, 2012 3:19 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by p25o1 »

i'm also intrested in the i2c model, since my mwc share serial and usb :-(

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by copterrichie »

Michal, If I may suggest to make the PID config portion of the ModiDrone a User definable option, personally I don't need it.

ankimo
Posts: 30
Joined: Fri Jan 20, 2012 7:31 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by ankimo »

Test result on June 24
Radar screen is tested.
http://www.youtube.com/watch?v=d1FbfjryVxc

nhadrian
Posts: 421
Joined: Tue Oct 25, 2011 9:25 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by nhadrian »

Hi, MWI 2.1 RC is out, how are you going with the release 7?

BR
Adrian

Y.Mita
Posts: 46
Joined: Thu Sep 15, 2011 11:25 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by Y.Mita »

nhadrian wrote:Hi, MWI 2.1 RC is out, how are you going with the release 7?

BR
Adrian

I think its very hard job.
MultiWii v2.1 changes its serial communication protocol.
New serial protocol has been modified as separate MW side change and OSD side change. It's good news to each side developer, but old mobiDrone OSD is deeply depends on MW serial.ino.

I think Mr.MichalM need little bit more time to modify old mobiDrone, and also needs time to adjust to a new job!

nhadrian
Posts: 421
Joined: Tue Oct 25, 2011 9:25 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by nhadrian »

Yes, I know this... but still, without modification we can!t use the new code with Mobidrone. :(
So I hope MichalM will do it soon. I wish him all my best.

MichalM_sk
Posts: 89
Joined: Wed Jun 15, 2011 5:04 pm
Location: Slovakia

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by MichalM_sk »

Hi,
dont worry I am working on changes. I would like to release PRE7 this week.

Current status:

/- mobiDrone OSD v 2.3 PRE Release 7
+ new menu attributes (bat1,bat2 voltage correction, roll, pitch senitivity, current sensor sellection, screen switch sellection) 100%
+ better code optimisation 100% - currently has a smaller size than previous PRE6 version
+ new serial protocol for MWC 2.1 (in dev)
+ new Pid & Mode configuration (90%)
+ automatic detection of camera resolution (100%)
+ check the consistency of EEPROM data (100%)
+ OSD configuration moved to a new file - config.h (100%)
+ GPS speed bug removed , speed now in units - m/s (tested by ankimo) (100%)
+ remove bug in compass (opposite direction of rotation) (contributed by ymita) (100%)
+ remove bug in voltage comparator (is no longer necessary adjust bat2 voltage - bat2_correction parameter) (100%)
+ you can enable/disable latitude & longitude (100%)
+ added support for new current sensor - Flytron Ultralight 50A Current Sensor (tested by nhadrian) (100%)

BR
Michal M

msev
Posts: 186
Joined: Thu Apr 14, 2011 11:49 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by msev »

Option for speed in km/h would be cool :D

carlonb
Posts: 210
Joined: Sun Apr 03, 2011 6:29 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by carlonb »

msev wrote:Option for speed in km/h would be cool :D


+1 :mrgreen:
Ciao, Carlo

ankimo
Posts: 30
Joined: Fri Jan 20, 2012 7:31 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by ankimo »

>dont worry I am working on changes. I would like to release PRE7 this week.
It is wonderful. :D

The question about Radar screen
Possibly the position of a home display is a right-and-left contrary?
http://www.youtube.com/watch?v=d1FbfjryVxc

Kazz

MichalM_sk
Posts: 89
Joined: Wed Jun 15, 2011 5:04 pm
Location: Slovakia

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by MichalM_sk »

Hi ankimo.

Opposite rotation of Home is fixed in PRE7.

MichalM_sk
Posts: 89
Joined: Wed Jun 15, 2011 5:04 pm
Location: Slovakia

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by MichalM_sk »

Hi,

so PRE7 is finished & ready for debugging. There is no longer needed to make multiwii patching procedure. New serial protocol is fully implemented (data, PID config... )

BR
Michal M.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by copterrichie »

Awesome, Awesome and another Awesome!

ankimo
Posts: 30
Joined: Fri Jan 20, 2012 7:31 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by ankimo »

It is wonderful!
I am ready for debugging always. :D

Kazz

Y.Mita
Posts: 46
Joined: Thu Sep 15, 2011 11:25 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by Y.Mita »

Great!
I'm ready for debugging and modify, too!
Mr. Michal, if you don't mind, please release and debug together!

nhadrian
Posts: 421
Joined: Tue Oct 25, 2011 9:25 am

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by nhadrian »

The same here...
release and let us help debugging..... ;)

mahowik
Posts: 332
Joined: Sun Apr 10, 2011 6:26 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by mahowik »

Where it's possible to download PRE7? I see on download page only PRE6
https://code.google.com/p/mobidrone/downloads/list

Y.Mita
Posts: 46
Joined: Thu Sep 15, 2011 11:25 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by Y.Mita »

mahowik wrote:Where it's possible to download PRE7? I see on download page only PRE6
https://code.google.com/p/mobidrone/downloads/list

Not yet ! Now Mr.Michel is debugging.

MichalM_sk
Posts: 89
Joined: Wed Jun 15, 2011 5:04 pm
Location: Slovakia

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by MichalM_sk »

Hi,

so today will be released PRE7 (Alpha) for testers on my codepage.
I think that the new serial protocol implementation in the OSD works better than the old protocol :)

BR
Michal M.

Tazzy
Posts: 75
Joined: Sun Jun 19, 2011 4:45 pm
Location: Sweden

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by Tazzy »

sounds great thanks for the good work :)

// TAzzy

MichalM_sk
Posts: 89
Joined: Wed Jun 15, 2011 5:04 pm
Location: Slovakia

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by MichalM_sk »

Hi,

so mobiDrone OSD PRE RELEASE 7 (ALPHA) is released on my code page. This is alpha version for testers ;)

BR
Michal M.

copterrichie
Posts: 2261
Joined: Sat Feb 19, 2011 8:30 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by copterrichie »

Awesome

Y.Mita
Posts: 46
Joined: Thu Sep 15, 2011 11:25 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by Y.Mita »

MichalM_sk wrote:Hi,

so mobiDrone OSD PRE RELEASE 7 (ALPHA) is released on my code page. This is alpha version for testers ;)

BR
Michal M.

Thank you Mr.Michal.

I already find one bug about AHI sensitivity.

The sensitivity of roll and pitch can't set value under 10.
If set under 10, AHI stop act.

to fix it, change line 4239

Code: Select all

                   readedRollAngle = min((int)readedRollAngle/10, 40);
                   readedRollAngle *= eepromBuffer[ROLL_SENSITIVITY]/10;       //value  -40 to 40 deg
   
                   readedPitchAngle = min((int)readedPitchAngle/10, 40);
                   readedPitchAngle *= eepromBuffer[PITCH_SENSITIVITY]/10;    //value  -40 to 40 deg

like this.

Code: Select all

                   readedRollAngle = min((int)readedRollAngle/10, 40);
                   readedRollAngle *= (float)eepromBuffer[ROLL_SENSITIVITY]/10;       //value  -40 to 40 deg
   
                   readedPitchAngle = min((int)readedPitchAngle/10, 40);
                   readedPitchAngle *= (float)eepromBuffer[PITCH_SENSITIVITY]/10;    //value  -40 to 40 deg

MichalM_sk
Posts: 89
Joined: Wed Jun 15, 2011 5:04 pm
Location: Slovakia

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by MichalM_sk »

Hi, thanks you for bug reporting.

I have fixed some bugs also:
1. Bug in GPS data processing (LATITUDE, LONGITUDE reading problem)
2. Problem with detection of camera resolution when the camera is turned on later than osd

ALPHA 2 version with fixed bugs is released on codepage.

Y.Mita
Posts: 46
Joined: Thu Sep 15, 2011 11:25 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by Y.Mita »

Mr.Michal, some bugs report from Mr.Ankimo in japanese.

The compass seems strange, start at N, angle is 0. Turn right, angle increase, but pass South, suddenly angle goes 0.

I little bit look at source code but can't fix it.

Also he says Arrow seems dirty, but source code is same as before, and I can't recognise durty.

Thanks.

MichalM_sk
Posts: 89
Joined: Wed Jun 15, 2011 5:04 pm
Location: Slovakia

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by MichalM_sk »

Y.Mita wrote:Mr.Michal, some bugs report from Mr.Ankimo in japanese.

The compass seems strange, start at N, angle is 0. Turn right, angle increase, but pass South, suddenly angle goes 0.

I little bit look at source code but can't fix it.

Also he says Arrow seems dirty, but source code is same as before, and I can't recognise durty.

Thanks.



Hi Y.Mita,

ok I will check it

MichalM_sk
Posts: 89
Joined: Wed Jun 15, 2011 5:04 pm
Location: Slovakia

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by MichalM_sk »

MichalM_sk wrote:
Y.Mita wrote:Mr.Michal, some bugs report from Mr.Ankimo in japanese.

The compass seems strange, start at N, angle is 0. Turn right, angle increase, but pass South, suddenly angle goes 0.

I little bit look at source code but can't fix it.

Also he says Arrow seems dirty, but source code is same as before, and I can't recognise durty.

Thanks.



Hi Y.Mita,

ok I will check it


Hi Y.Mita,

so I fixed Bugs whitch you describe, new (BETA) version is ready.

Y.Mita
Posts: 46
Joined: Thu Sep 15, 2011 11:25 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by Y.Mita »

MichalM_sk wrote:Hi Y.Mita,

so I fixed Bugs whitch you describe, new (BETA) version is ready.


Thank you, Mr.Michal !
I'll try it this week end.

tasospap
Posts: 7
Joined: Wed Jul 11, 2012 6:29 pm

Re: mobiDrone nano arduino OSD for MultiWii with PID config

Post by tasospap »

Hi i try to upload version OSD PRE RELEASE 7 (ALPHA) and i get the message ''avrdude: stk500_getsync(): not in sync: resp=0x00''
What i do error ?

Post Reply