Search found 203 matches

by Mis
Mon Dec 31, 2012 12:25 am
Forum: Software development
Topic: Failsafe with RCSERIAL (MSP_SET_RAW_RC)
Replies: 28
Views: 9523

Re: Failsafe with RCSERIAL (MSP_SET_RAW_RC)

You're right. This should work OK.
by Mis
Thu Dec 20, 2012 8:51 pm
Forum: Software development
Topic: Failsafe and Sum-PPM
Replies: 24
Views: 7172

Re: Failsafe and Sum-PPM

If you can setup failsafe in your RX - program throttle chanel to 980us and memorize this setting in receiver as failsafe.
In this case MWC recognize 980us on throttle as failsafe and start internal failsafe function.
by Mis
Wed Dec 19, 2012 6:37 pm
Forum: Software development
Topic: Failsafe and Sum-PPM
Replies: 24
Views: 7172

Re: Failsafe and Sum-PPM

Failsafe is triggered after "FAILSAFE_DELAY" time IF:
1 - No valid PPM pulses at ppm input, OR
2 - one or more of first four channels in PPM stream have pulse time bellow 985us.
by Mis
Wed Dec 19, 2012 2:20 pm
Forum: Software development
Topic: which GPS data do you want to see on LCD/OLED?
Replies: 17
Views: 4551

Re: which GPS data do you want to see on LCD/OLED?

Maybe some status screen like this:
Image
by Mis
Tue Dec 18, 2012 10:17 pm
Forum: Software development
Topic: PPM sum bug firmware v2.1 + Graupner MX12 + ChainlinkDare
Replies: 41
Views: 11226

Re: PPM sum bug firmware v2.1 + Graupner MX12 + ChainlinkDar

But there is still no channel Six detected by the MWC.

If your receiver have more than 6 channels, connect one additional diode to channel 7 and you get 6 working channels.
by Mis
Tue Dec 11, 2012 11:28 pm
Forum: Ideas
Topic: Gyro calibration (zeroing), movement detection
Replies: 33
Views: 11934

Re: Gyro calibration (zeroing), movement detection

For the math people, is there a difference for the detection of movement, comparing "2 consecutive 200 sample averages" to "40 compares (separated by 10 samples) out of 400 samples" Yes of course. But the effect is similar. Is many ways for getting the same effect I found one, y...
by Mis
Tue Dec 11, 2012 6:13 pm
Forum: Ideas
Topic: Gyro calibration (zeroing), movement detection
Replies: 33
Views: 11934

Re: Gyro calibration (zeroing), movement detection

Timecop, you are wrong. Why if tilt==1 you set calibratingG =1000 and not 400? Load a 1000 to calibratingG counter is for additional delay between stop moving detection and begin of calibration. The calibration begin after calibratingG reached value of 400. (by the way the line after #if defined(GYR...
by Mis
Tue Dec 11, 2012 3:52 am
Forum: Ideas
Topic: Gyro calibration (zeroing), movement detection
Replies: 33
Views: 11934

Re: Gyro calibration (zeroing), movement detection

I commit this feature some times ago as mandatory. But someone change it to an option, and turn off by default. Why ? I don't know. In my opinion the argument about themperature drift is irrational. It is not possible to quickly change the temperature so that no calibration to be performed. And this...
by Mis
Sun Dec 09, 2012 11:36 pm
Forum: Ideas
Topic: Gyro calibration (zeroing), movement detection
Replies: 33
Views: 11934

Re: Gyro calibration (zeroing), movement detection

Check leatest DEV version. /************************ continuous gyro calibration ********************/ /* Gyrocalibration will be repeated if copter is moving during calibration. */ //#define GYROCALIBRATIONFAILSAFE If you uncomment this line you get effect exactly as you want. Calibration is restar...
by Mis
Fri Nov 30, 2012 2:31 pm
Forum: Software development
Topic: General problem with MultiWii dev's
Replies: 15
Views: 4604

Re: General problem with MultiWii dev's

You must decrease endpoints in your TX.
by Mis
Sat Nov 10, 2012 1:13 am
Forum: Software development
Topic: RFC: move default pin for FAILSAFE from throttle to roll?
Replies: 47
Views: 11521

Re: RFC: move default pin for FAILSAFE from throttle to roll

Hamburger, check your endpoints for first 4 channels. Noone should be lower than 1000us (best keep it above 1030us).
by Mis
Mon Oct 22, 2012 11:19 pm
Forum: Ideas
Topic: Arduino Due Port?
Replies: 18
Views: 6103

Re: Arduino Due Port?

Time to get back to work :mrgreen:

Yes, on old doddery ARM's from Atmel :lol:
by Mis
Sun Oct 21, 2012 1:19 pm
Forum: Software development
Topic: MultiWii Conf for more than 4 AUX channels
Replies: 49
Views: 18827

Re: MultiWii Conf for more than 4 AUX channels

Additional channels (above AUX4) can be used for gimbal pitch & roll control, or for something else like control interval of CamTrig servo, and maybe for some others features. Can be directly transferred to servo outputs too.
by Mis
Sun Oct 21, 2012 12:20 am
Forum: Software development
Topic: GPS integration
Replies: 1724
Views: 899245

Re: GPS integration

Check it at open space, not in house because in house the GPS can't receive sattelites from different georgapchical sites.
by Mis
Sat Oct 20, 2012 9:39 pm
Forum: Software development
Topic: GPS integration
Replies: 1724
Views: 899245

Re: GPS integration

Ublox with binary mode work even at 19200baud with 5Hz update rate, but 38400baud is optimal. Belive me. And you don't need configure your ublox with PC. The MWC firmware (starting from dev version 1117) configure speed and other parameters of ublox in right way.
by Mis
Sat Oct 20, 2012 8:41 pm
Forum: Software development
Topic: GPS integration
Replies: 1724
Views: 899245

Re: GPS integration

Janekx:
Set GPS_BAUD to 38400.
by Mis
Sat Oct 20, 2012 2:28 pm
Forum: Software development
Topic: Altitude Hold improvement solution
Replies: 580
Views: 1598882

Re: Altitude Hold improvement solution

Mahowik:
Can you look at my last method used in this software version: http://romek_by.republika.pl/MK/MultiWii_2_16_MIS.zip ?
In my tests this get good results.
by Mis
Wed Oct 17, 2012 10:24 pm
Forum: Ideas
Topic: Some custom MultiWii software with autolanding
Replies: 4
Views: 4434

Re: Some custom MultiWii

This is based on MultiWii 2.1 official code. But many news from dev code is included, and some updates to official development versions is based and tested on my custom version. No way for "simple diff" for find differencies.
by Mis
Wed Oct 17, 2012 10:02 pm
Forum: Ideas
Topic: Some custom MultiWii software with autolanding
Replies: 4
Views: 4434

Some custom MultiWii software with autolanding

Hi ! This is my custom version of MWC firmware especially designef for Mega2560 controllers - tested on CRIUS AIO Pro. Most important features: -Intelligent failsafe with RTH at specified altitude and AutoLanding -FailSafe activation via FAILSAFE checkbox for easy test -New alternative, quick STABLE...
by Mis
Tue Oct 16, 2012 12:55 am
Forum: Software development
Topic: Altitude Hold improvement solution
Replies: 580
Views: 1598882

Re: Altitude Hold improvement solution

mahovik: Your change to my code have one dangerous situation. If you arm the copter before "count" reached zero, the count variable is zeroed, and "measured1G" variable is not divided by 8. Then you substract crazy value from accZ. I think, about good solution, and maybe fusion o...
by Mis
Sun Oct 14, 2012 1:43 am
Forum: Software development
Topic: Altitude Hold improvement solution
Replies: 580
Views: 1598882

Re: Altitude Hold improvement solution

I have acces to repository, but before I commit this idea, i need some positive feedback.
Too many my ideas have been nuked by other programmers.
by Mis
Sat Oct 13, 2012 3:39 pm
Forum: Software development
Topic: Settings Config.H and LCD are different
Replies: 5
Views: 2030

Re: Settings Config.H and LCD are different

Yes. Someone irrationally add many settings like vbatscale, vbatlevels, failsafe throttle, gyro smoothing to "conf" structure saved in eeprom. For now is not possible to change these parameters via PC and GUI. Additionally these parameters are initialized from "#define" only duri...
by Mis
Fri Oct 12, 2012 10:18 pm
Forum: Software development
Topic: MultiWii EZ-GUI
Replies: 1434
Views: 745390

Re: MultiWii EZ-GUI

Are you using officially mwii 2.1 code or some dev. version ?
If any GUI is designed for oryginal mwii 2.1, it can stop propertly working with dev1057 and later. For compatibility with newer dev versions the GUI should be rewrited for dynamic change of checkbox items count.
by Mis
Fri Oct 12, 2012 8:31 pm
Forum: Software development
Topic: Problem with new Serial Protocol
Replies: 6
Views: 2709

Re: Problem with new Serial Protocol

pm1 wrote:u08 crc=len; => checksum = 18;

This is only some simplification. Checksum should be calculated from len field, command field and all payload datas. But, zero ^ len field = len field. In this case i can write "checksum = len" instead "checksum = 0; checksum ^= len"
by Mis
Fri Oct 12, 2012 7:12 pm
Forum: Software development
Topic: Problem with new Serial Protocol
Replies: 6
Views: 2709

Re: Problem with new Serial Protocol

Working piece of code from my OSD for sending MSP commands ( u08 = uint8_t type ): void MSP_data(u08 cmd, u08* ptr, u08 len) { u08 crc=len; TX_ON; uart_send('$'); uart_send('M'); uart_send('<'); uart_send(len); uart_send(cmd); crc ^= cmd; while(len--) { crc ^= *ptr; uart_send(*ptr++); } uart_send(cr...
by Mis
Fri Oct 12, 2012 6:59 pm
Forum: Software development
Topic: Altitude Hold improvement solution
Replies: 580
Views: 1598882

Re: Altitude Hold improvement solution

Sebbi. I think, but not sure that altitude drop after switch althold on can be caused by 1G constants difference from real 1G reading. I make some code changes for runtime 1G measuring. Measuring is done within 1 second after gyro calibration ends. Additionally i do one more modification for gyro ca...
by Mis
Fri Oct 12, 2012 1:43 pm
Forum: Software development
Topic: Bug - MultiWii.ino lines 832-852 needs rcDelayCommand
Replies: 39
Views: 8180

Re: Bug - MultiWii.ino lines 832-852 needs rcDelayCommand

I think, the alarm handler should be rewrited for handling simultanously more than one channel (every channel should have one bit mask in resource variable) and maybe changed for easest using eg maybe in this way: "notification(resource, notification pattern)". Resource can be defined as e...
by Mis
Fri Oct 12, 2012 1:21 pm
Forum: Software development
Topic: Bug - MultiWii.ino lines 832-852 needs rcDelayCommand
Replies: 39
Views: 8180

Re: Bug - MultiWii.ino lines 832-852 needs rcDelayCommand

OK, but your change have some issues 1. No current active profile signalisation after power-up (only led blinks, no buzzer confirmation) 2. Buzzer and leds is out of sync. In old way the buzzer beeps synchronized with led's, now first the leds blinks, then after a while buzzer is activating. The ala...
by Mis
Fri Oct 12, 2012 1:07 am
Forum: Software development
Topic: How to enable Stick Commands?
Replies: 5
Views: 3068

Re: How to enable Stick Commands?

If your THROTTLE chanel can't go bellow MINCHECK you can't arm the motors. Arming is possible only if throttle is bellow MINCHECK.
by Mis
Fri Oct 12, 2012 1:02 am
Forum: Software development
Topic: Problem with new Serial Protocol
Replies: 6
Views: 2709

Re: Problem with new Serial Protocol

for (int i = 0; i < 18; i++) {
checksum ^= (mw[i] & 0xFF);
}
mw[18] = (char) checksum;
by Mis
Thu Oct 11, 2012 11:07 pm
Forum: Software development
Topic: BUG - GPS Serial 2 not working
Replies: 5
Views: 1783

Re: BUG - GPS Serial 2 not working

In my private code I have only one choice - UBLOX. If this is commented, software assume that should use NMEA. But someone came up with other way.
by Mis
Thu Oct 11, 2012 9:48 pm
Forum: Software development
Topic: BUG - GPS Serial 2 not working
Replies: 5
Views: 1783

Re: BUG - GPS Serial 2 not working

Check your configuration. Are you use NMEA or UBLOX GPS ?
You must choose one of this type in config.h file.
by Mis
Thu Oct 11, 2012 8:37 pm
Forum: Software development
Topic: Bug in board definitions
Replies: 0
Views: 613

Bug in board definitions

Hi !
HK_MultiWii_SE_V2 and MEGAWAP_V2_ADV use obsolete "MPU6050_EN_I2C_BYPASS" definition.
This should be replaced by new "MPU6050_I2C_AUX_MASTER", but if work with old definition, i think these boards not use MPU6050 AUX i2c connections.
by Mis
Thu Oct 11, 2012 12:07 pm
Forum: Software development
Topic: Bug - MultiWii.ino lines 832-852 needs rcDelayCommand
Replies: 39
Views: 8180

Re: Bug - MultiWii.ino lines 832-852 needs rcDelayCommand

Code before r1181 have some more bugs if you use ARM BOX instead arming via stick command. If you accidentally move throttle stick to minimum during flight, the headFreeModeHold variable is updated with current heading. In r1181 this is eliminated by adding if(!armed) condition in go_arm() function....
by Mis
Thu Oct 11, 2012 10:52 am
Forum: Software development
Topic: [Patch for r1181] Transmit additional AUX Channels to GUI
Replies: 22
Views: 5186

Re: [Patch for r1181] Transmit additional AUX Channels to GU

The MSP_AUX_COUNT is not needed. PC application should count number of RC channels from "size" field of MSP_RC command.
by Mis
Thu Oct 11, 2012 10:49 am
Forum: Software development
Topic: Proper usage of version control systems like Svn/Git, etc
Replies: 45
Views: 10540

Re: Proper usage of version control systems like Svn/Git, et

I not agre. Sometimes this style is better readable, especially if several similar statements are arranged one behind other.
by Mis
Thu Oct 11, 2012 10:42 am
Forum: Software development
Topic: Bug - MultiWii.ino lines 832-852 needs rcDelayCommand
Replies: 39
Views: 8180

Re: Bug - MultiWii.ino lines 832-852 needs rcDelayCommand

The blinkLLED is executed only if you try motors arming, and arming is not possible for some reasons eg failsafe active, ACC not calibrated ect. In this case you see led blink and hear error beep instead motors arming.
by Mis
Thu Oct 11, 2012 12:35 am
Forum: Software development
Topic: Bug - MultiWii.ino lines 832-852 needs rcDelayCommand
Replies: 39
Views: 8180

Re: Bug - MultiWii.ino lines 832-852 needs rcDelayCommand

Thank's for feedback. Most of bugs is fixed in r1181. I'm not sure only about failsafe kick.
by Mis
Wed Oct 10, 2012 4:53 pm
Forum: Software development
Topic: Bug - MultiWii.ino lines 832-852 needs rcDelayCommand
Replies: 39
Views: 8180

Re: Bug - MultiWii.ino lines 832-852 needs rcDelayCommand

This is pretty easy :) Now done in r1180
Code is about 300 bytes smaller, and more,more better readable.
All checks is done in full acuracy - position of all 4 sticks are checked.
Old stuff still present, but commented out.
by Mis
Wed Oct 10, 2012 1:56 am
Forum: Software development
Topic: Bug - MultiWii.ino lines 832-852 needs rcDelayCommand
Replies: 39
Views: 8180

Re: Bug - MultiWii.ino lines 832-852 needs rcDelayCommand

we can use a byte variable with 2 bits assigned to one stick and 00=min, 11=max, 01=mid, then on each loop detect the position of all 4 sticks and set that variable, then if it is not the same as previous loop, to reset rcDelayCommand counter to 0. if it reaches 20 consecutive passes with the same ...
by Mis
Sun Oct 07, 2012 7:31 pm
Forum: Ideas
Topic: RFC fix cycle time (to 3000us)?
Replies: 23
Views: 6841

Re: RFC fix cycle time (to 3000us)?

Hi. I have little smaler code for fixed cycle time: computeIMU(); // Measure loop rate just afer reading the sensors do{ currentTime = micros(); cycleTime = currentTime - previousTime; }while (cycleTime < FIXED_CYCLE_TIME); previousTime = currentTime; If you set FIXED_CYCLE_TIME to 0, compiler autom...
by Mis
Sat Oct 06, 2012 7:07 pm
Forum: Software development
Topic: Three independent, stick selectable settings in EEPROM
Replies: 36
Views: 20460

Re: Three independent, stick selectable settings in EEPROM

In my opinion if any protocol have lenght field, we should use it. At PC side the serial buffer should have lenght bigger than longest message, and should be first cleared, then we should read "length" bytes from serial port, then parse data from the read buffer. In this way we always get ...
by Mis
Sat Oct 06, 2012 12:51 am
Forum: Software development
Topic: Three independent, stick selectable settings in EEPROM
Replies: 36
Views: 20460

Re: Three independent, stick selectable settings in EEPROM

I'm not sure, if it's safe for switching profile during flight. IMHO better is leave as is, eg. select profile before arming.
BTW. Now we need new PC configuration software with selecting profile support. I'm not PC side programmer, and can't make this.
by Mis
Thu Oct 04, 2012 12:25 am
Forum: Software development
Topic: GPS integration
Replies: 1724
Views: 899245

Re: GPS integration

Look at this more precise.
NEO6M have 5Hz update rate. NEO6P and V have only 1Hz.
by Mis
Tue Oct 02, 2012 10:57 pm
Forum: Software development
Topic: Altitude Hold improvement solution
Replies: 580
Views: 1598882

Re: Altitude Hold improvement solution

x/y/z = x/z/y, but arguments order make some differencies in code size.
by Mis
Tue Oct 02, 2012 10:51 pm
Forum: Software development
Topic: Position Hold using Accelerometers global vectors
Replies: 86
Views: 37123

Re: Position Hold using Accelerometers global vectors

We need angles also so we do not approximate multirotor behaviour to level at 0°.. In position hold ? Why not ? This topic and discutions is about position hold, not about acro or even normal flight behaviour. At position hold we can use lot of simplifications, because this is ONLY POSITION HOLD wi...
by Mis
Tue Oct 02, 2012 9:20 pm
Forum: Software development
Topic: Position Hold using Accelerometers global vectors
Replies: 86
Views: 37123

Re: Position Hold using Accelerometers global vectors

One small question. We discussing here about the rotation matrix depending on the tilt angle for the position hold function.
But in my opinion, during position hold the tilt angle of copter is close to zero. In this case all of advanced and sloooow calculations are really needed ?
by Mis
Tue Oct 02, 2012 9:02 pm
Forum: Software development
Topic: GPS integration
Replies: 1724
Views: 899245

Re: GPS integration

jy0933 wrote:i was reading the changes in the dev code.. since ublox6 all support 10hz refresh rate.. why dont init-config to 10hz ...but rather 5hz?

Because in this case MORE Hz is not EQUAL to BETTER. It was written about it about 100 times. GPS have worst precision at 10Hz.
by Mis
Mon Oct 01, 2012 12:18 am
Forum: Software development
Topic: Possible Bug in GPS?
Replies: 18
Views: 4968

Re: Possible Bug in GPS?

PatrikE wrote:So then there's no bug then?

IMHO no, but i'm not 100% sure because this code is little screwed up :D
For sure, need to look at the generated assembly code, but it is more unreadable and need lot of time for understand it.
by Mis
Mon Oct 01, 2012 12:12 am
Forum: Ideas
Topic: Direct Frsky telemtry data from MW FC
Replies: 359
Views: 1163124

Re: Direct Frsky telemtry data from MW FC

Interrupt driven software UART: m m This can be easly adapt and shrinked because (big) receive part is not needed. And you simple can send inverted data. BUT IMHO the mega328p is at end of available resources, and this feature should be added only for mega1280 and mega2560 CPU's with lot of hardware...