Search found 38 matches

by Eric
Tue Dec 24, 2013 9:34 am
Forum: Software development
Topic: A bug in THROTTLE_ANGLE_CORRECTION
Replies: 13
Views: 5825

A bug in THROTTLE_ANGLE_CORRECTION

#if defined(THROTTLE_ANGLE_CORRECTION) cosZ = EstG.V16.Z / (ACC_1G * 100.0f); // cos(angleZ) * 100 throttleAngleCorrection = THROTTLE_ANGLE_CORRECTION * constrain(100 - cosZ, 0, 100) >>3; // 16 bit ok: 200*150 = 30000 #endif Should be #if defined(THROTTLE_ANGLE_CORRECTION) cosZ = EstG.V16.Z * 100 /...
by Eric
Mon Mar 25, 2013 1:33 pm
Forum: Software development
Topic: UART Radio project
Replies: 112
Views: 50670

Re: UART Radio project

Sebbi wrote:iPhones need a Jailbreak to connect to SPP devices without Apples authentication chip ...

Yes.
But if you do not have to send too much data(the native bluetooth will die when sending too much data), you can use private API without jailbreak.
by Eric
Mon Mar 25, 2013 12:14 pm
Forum: Software development
Topic: Altitude Hold/Advanced Failsafe solutions by NHA
Replies: 270
Views: 131044

Re: Altitude Hold/Advanced Failsafe solutions by NHA

Reset when failsafe is inactive. #if (defined(FAILSAFE_RTH_MODE) || defined(FAILSAFE_ALT_MODE)) && BARO else if (failsafe.altSet #if defined(FAILSAFE_RTH_MODE) || failsafe.confSet #endif //defined(FAILSAFE_RTH_MODE) ) { failsafe.altSet = 0; #if defined(FAILSAFE_RTH_MODE) failsafe.confSet = 0...
by Eric
Mon Mar 25, 2013 12:13 pm
Forum: Software development
Topic: Altitude Hold/Advanced Failsafe solutions by NHA
Replies: 270
Views: 131044

Re: Altitude Hold/Advanced Failsafe solutions by NHA

Hi All, from now on, the latest revision will be linked into the first comment to see clear what is the last. BR Adrian Hi Adrian, I have a suggestion, we the quad lost rc signal, can we make it to poshold for a fews seconds, and then start rth? In my case, iPhone is used as the transmitter, when I...
by Eric
Wed Mar 20, 2013 1:52 am
Forum: Software development
Topic: Altitude Hold/Advanced Failsafe solutions by NHA
Replies: 270
Views: 131044

Re: Altitude Hold/Advanced Failsafe solutions by NHA

I do not know why we use a wp 16 here. In the i2c gps nav code, set next wp to 16 means hold the current position. In you code about serial gps msp_set_wp, it means go to lat/lon and hold there. I do not know what is the standard/expected behavior. In my opinion, wp from 0 - 15 are all generic wp, w...
by Eric
Tue Mar 19, 2013 6:44 am
Forum: Software development
Topic: Altitude Hold/Advanced Failsafe solutions by NHA
Replies: 270
Views: 131044

Re: Altitude Hold/Advanced Failsafe solutions by NHA

Ok, I added setting home/hold from serial support for I2C gps. m Thanks. I'll look after soon. BTW, I have success with ADNS 3080 motion sensor and with demo application!!! With the python-based image grabber I can see the grabbed pictures now!!! So I think now I would be able to add the 3080 handl...
by Eric
Tue Mar 19, 2013 5:58 am
Forum: Software development
Topic: Altitude Hold/Advanced Failsafe solutions by NHA
Replies: 270
Views: 131044

Re: Altitude Hold/Advanced Failsafe solutions by NHA

Ok, I added setting home/hold from serial support for I2C gps.

https://github.com/Smartype/MultiWii/co ... 85497f22f6
by Eric
Tue Mar 19, 2013 5:17 am
Forum: Software development
Topic: Altitude Hold/Advanced Failsafe solutions by NHA
Replies: 270
Views: 131044

Re: Altitude Hold/Advanced Failsafe solutions by NHA

Ignore my post. I did not see the modifications in GPS.ino. sorry for this. Hi, no problem! BUT! There is a new option in BART's EZ-GUI android app. It lets you send new WP for HOME/HOLD+altitude, via MSP. It works great in the air with serial GPS, but is not implemented to I2C_GPS. If you are inte...
by Eric
Mon Mar 18, 2013 6:43 am
Forum: Software development
Topic: Altitude Hold/Advanced Failsafe solutions by NHA
Replies: 270
Views: 131044

Re: Altitude Hold/Advanced Failsafe solutions by NHA

Ignore my post. I did not see the modifications in GPS.ino. sorry for this.
by Eric
Mon Mar 18, 2013 5:51 am
Forum: Software development
Topic: Altitude Hold/Advanced Failsafe solutions by NHA
Replies: 270
Views: 131044

Re: Altitude Hold/Advanced Failsafe solutions by NHA

Check the code, found it won't work with an I2C gps nav board. It relies on mod_nav, which is not used by i2c gps nav. We have to do such modifications: 1. when send i2c gps command, update nav_mode 2. we the i2c gps is in waypoint mode, after it reaches the waypiont, it updates from wp mode to posh...
by Eric
Mon Feb 25, 2013 3:15 pm
Forum: Software development
Topic: UART Radio project
Replies: 112
Views: 50670

Re: UART Radio project

I am currently use iPhone + Bluetooth serial + two 3DR radio to control my quad.
You do not even need an arduino. Just connect the Bluetooth serial to 3DR radio.
Ams1117 is used to provide 5v to Bluetooth and 3dr radio.
by Eric
Thu Jan 17, 2013 3:55 pm
Forum: Software development
Topic: Making MWC easier to use
Replies: 12
Views: 4039

Making MWC easier to use

Glad to see you moved the post from 5imx here. As I mentioned there, you have to take some time reading multiwii code. To make the copter type configurable, you have to: 1. Dynamic logical/switches for all copter types, this might cause performance issues. 2. Compile all copter/modules code into the...
by Eric
Tue Jan 15, 2013 9:29 am
Forum: Software development
Topic: Altitude Hold improvement solution
Replies: 580
Views: 1582241

Altitude Hold improvement solution

Tried failsafe RTH with autoland with the 1311 R13 yesterday with my BMP085 equipped tricopter, with mixed results.... after turning off the transmitter, the copter started heading back... it went to RTH altitude correctly. when it arrived at home, it started descending.... but after a few seconds,...
by Eric
Thu Jan 10, 2013 4:03 pm
Forum: Ideas
Topic: Position Hold with Optical Flow sensor - done
Replies: 214
Views: 131592

Position Hold with Optical Flow sensor - done

Is it possible to enlarge the hole in the sensor to increase its performance in dark environment?

As it is designed to work with the assistant of an led and we could not change the shuttle speed of adns 5050 or 5020. We can enlarge the hole so that more light goes into the sensor.
by Eric
Mon Jan 07, 2013 1:33 am
Forum: Ideas
Topic: Autonomous Multiwii Quadrocopter with Raspberry Pi
Replies: 21
Views: 14221

Autonomous Multiwii Quadrocopter with Raspberry Pi

Take a look at TPLINK WR703N. It's a WiFi 802.11n router with a serial port, you can install OpenWRT on it. It's small and cheap.

By the way, I do not think PI is capable calc real time 3D.
by Eric
Sun Jan 06, 2013 4:14 pm
Forum: Software development
Topic: Failsafe with RCSERIAL (MSP_SET_RAW_RC)
Replies: 28
Views: 9337

Failsafe with RCSERIAL (MSP_SET_RAW_RC)

I disabled failsafe for RCSERIAL since I was getting strange results like: unable to arm my multi in the first place, unable to get full control back after failsafe was trigered and signal returned (failsafe was only partially canceled)... I was testing smart failsafe with nhadrian's code from that...
by Eric
Sun Jan 06, 2013 3:48 am
Forum: Software development
Topic: Failsafe with RCSERIAL (MSP_SET_RAW_RC)
Replies: 28
Views: 9337

Failsafe with RCSERIAL (MSP_SET_RAW_RC)

Just an FYI observation: On start up and when there is no RCSERIAL Data available on my test board, the RC values default to 900. It maybe a good idea to set these to 1500 and 1000 for the Throttle as they are with PPM and Standard RC inputs. Yes. You are right. We need default values for rcData. #...
by Eric
Sat Jan 05, 2013 5:07 pm
Forum: Software development
Topic: Failsafe with RCSERIAL (MSP_SET_RAW_RC)
Replies: 28
Views: 9337

Failsafe with RCSERIAL (MSP_SET_RAW_RC)

Understand your idea.

You will have to keep the sticks moving in order to keep the connection active.

If you do not move the stick, then the failsafe trigger.

Sound strange?
by Eric
Sat Jan 05, 2013 5:04 pm
Forum: Software development
Topic: Failsafe with RCSERIAL (MSP_SET_RAW_RC)
Replies: 28
Views: 9337

Failsafe with RCSERIAL (MSP_SET_RAW_RC)

What is the failsafe_delay?

If you do not send anything when no stick movement, how can the quad know if the signal is lost?
by Eric
Sat Jan 05, 2013 11:25 am
Forum: Ideas
Topic: Long Range Digital Video Link, 5 Km, 433Mhz- open source
Replies: 17
Views: 9089

Long Range Digital Video Link, 5 Km, 433Mhz- open source

H264 webcam + Arduino Due + ???? = Profit! That would be an interesting case to study. But we still need a DSP at receiver end. It would be nice to use the same device for transmitting and receiving. Also we have the advantage that for PAL/NTSC standard, we need half computing power than 720p. Othe...
by Eric
Sat Jan 05, 2013 11:22 am
Forum: Ideas
Topic: Long Range Digital Video Link, 5 Km, 433Mhz- open source
Replies: 17
Views: 9089

Long Range Digital Video Link, 5 Km, 433Mhz- open source

H264 webcam + Arduino Due + ???? = Profit! Don't think Arduino has the power/io to forward the video traffic. I can not find any cheap h264 webcam. In my setup, a cheap usb mjpeg webcam is used. I can stream the video at 640x480. The webcam can not generate error free jpegs. If it could, I can use ...
by Eric
Sat Jan 05, 2013 11:13 am
Forum: Ideas
Topic: Long Range Digital Video Link, 5 Km, 433Mhz- open source
Replies: 17
Views: 9089

Long Range Digital Video Link, 5 Km, 433Mhz- open source

Normal smart phones has built-in h264 acceleration. Is it possible to use a phone to display the video?
by Eric
Sat Jan 05, 2013 4:47 am
Forum: Software development
Topic: Failsafe with RCSERIAL (MSP_SET_RAW_RC)
Replies: 28
Views: 9337

Failsafe with RCSERIAL (MSP_SET_RAW_RC)

1. Repeat MSG is smaller, and not ack'ed. 2. When stick changed, RAW rc MSG sent instead 3. When RAW RC being ack'ed, switch to repeat MSG void evaluateCommand() { switch (cmdMSP[CURRENTPORT]) { #if defined(RCSERIAL) #if defined(RCSERIAL_RC_OFFLOAD) case MSP_SET_RAW_RC_REPEAT: //headSerialReply(0); ...
by Eric
Sat Jan 05, 2013 4:38 am
Forum: Software development
Topic: Failsafe with RCSERIAL (MSP_SET_RAW_RC)
Replies: 28
Views: 9337

Failsafe with RCSERIAL (MSP_SET_RAW_RC)

Advantages:
1. Fast refresh rate and reliable
2. Save bandwidth, repeat MSG not ack'ed
3. Fail safe supported
by Eric
Sat Jan 05, 2013 4:34 am
Forum: Software development
Topic: Failsafe with RCSERIAL (MSP_SET_RAW_RC)
Replies: 28
Views: 9337

Failsafe with RCSERIAL (MSP_SET_RAW_RC)

For FAILSAFE only.
by Eric
Fri Jan 04, 2013 3:29 pm
Forum: Software development
Topic: Failsafe with RCSERIAL (MSP_SET_RAW_RC)
Replies: 28
Views: 9337

Failsafe with RCSERIAL (MSP_SET_RAW_RC)

So you have to send raw rc at 50hz. I did some modification on the serial rc. 1. Send rc over serial at 50hz 2. Add another MSG, RC_REPEAT, which indicates the rc channels not changed but keep refreshing. This MSG is not ack'ed to reduce serial traffic. 3. SET_RAW_RC is sent when channel value chang...
by Eric
Fri Jan 04, 2013 2:51 pm
Forum: Ideas
Topic: Long Range Digital Video Link, 5 Km, 433Mhz- open source
Replies: 17
Views: 9089

Long Range Digital Video Link, 5 Km, 433Mhz- open source

What is stopping you from purchasing the said solution? It's not going to get any cheaper, no matter how much you ghetto it up. According to OMM, AR.Drone 2.0 is 200ms latency for it's 720p link. I was pretty impressed by that, so maybe you can go ahead and buy ardrone and tear out its video transm...
by Eric
Fri Jan 04, 2013 4:16 am
Forum: Software development
Topic: Altitude Hold improvement solution
Replies: 580
Views: 1582241

Altitude Hold improvement solution

Is it possible to check the if the BaroPID is always very small, say -200 in 5 seconds?
by Eric
Wed Jan 02, 2013 10:48 am
Forum: Software development
Topic: Altitude Hold improvement solution
Replies: 580
Views: 1582241

Re: Altitude Hold improvement solution

Btw, this is my ground checking code: if ( // the sonar said we are on the ground (SonarErrors < SONAR_ERROR_MAX && SonarAlt <= FAILSAFE_SONAR_ALT) // BaroPID is very small, can not reach a lower alt in 5 seconds || (BaroPID < -(FAILSAFE_VARIO * 5) && failsafeVario == FAILSAFE_VARIO)...
by Eric
Wed Jan 02, 2013 10:28 am
Forum: Software development
Topic: Altitude Hold improvement solution
Replies: 580
Views: 1582241

Re: Altitude Hold improvement solution

Adrian, thanks for your amazing code on alt hold! I have a few comments about the failsafe handing. As failsafe should be simple and robust. with a pre defined FAILSAFE_VARIO and FAILSAFE_OFF_DELAY will be very danger if the quad is at a very high altitude, say 3000cm. normally 50cm/s * 20 = 1000cm....
by Eric
Wed Nov 28, 2012 4:24 am
Forum: Software development
Topic: Raspberry Wii
Replies: 19
Views: 6623

Raspberry Wii

Thanks!
I have ordered a 4dbm pcb antenna which can be fitted in the box.

And another USB hub so that I can put an USB stick which is 8gb in the box.

Even more, if we plug an 3G USB modem into the router, and then the quad fly with gps and update destination coordinates with 3G connection? Lol
by Eric
Wed Nov 28, 2012 4:14 am
Forum: Software development
Topic: Serial port possibilities
Replies: 13
Views: 4043

Serial port possibilities

ImageUploadedByTapatalk1354072053.799524.jpg It's ok to send RC in 50hz. I changed the serial.ino a bit to save serial bandwidth. Adding a new MSP_SET_RAW_RC_REPEAT. When no channel changes, this MSG will be sent. And no ack will be sent for this MSG. All MSP_SET_RAW_RC will be ack'ed so we do not ...
by Eric
Wed Nov 28, 2012 2:01 am
Forum: Software development
Topic: Raspberry Wii
Replies: 19
Views: 6623

Raspberry Wii

ImageUploadedByTapatalk1354064439.493544.jpg
Another picture about my setup.
by Eric
Wed Nov 28, 2012 1:59 am
Forum: Software development
Topic: Raspberry Wii
Replies: 19
Views: 6623

Raspberry Wii

ImageUploadedByTapatalk1354064210.041850.jpg
This is a picture of this router. I solder then serial port to the microusb port which used for power supply. It's size is 57mmx57mm, weight 36g. It have 802.11n, Ethernet port, USB port. About 20$.
by Eric
Wed Nov 28, 2012 1:55 am
Forum: Software development
Topic: Raspberry Wii
Replies: 19
Views: 6623

Raspberry Wii

I suggest you try the tplink wr703n. Which is a wifi router, small and light.
You can install openwrt (kind of Linux) on it.
There is a on board serial port which can be connected to Arduino.

And that's my setup, I am control my quad with an iPhone.
by Eric
Wed Nov 28, 2012 1:52 am
Forum: Software development
Topic: Serial port possibilities
Replies: 13
Views: 4043

Serial port possibilities

I am currently control my quad with an iPhone though WiFi.
An TPLINK WR703N which is only 36g was connected to the serial port.
The tplink router is flash to openwrt, runs as a hotspot, connect its serial port to Arduino.
Rc command currently sent as 25hz.
by Eric
Sat Nov 17, 2012 2:54 am
Forum: Ideas
Topic: Position Hold with Optical Flow sensor - done
Replies: 214
Views: 131592

Position Hold with Optical Flow sensor - done

It works great with my adns 5020. But I have a question, for example, when the quad goes forwards, and then I restore the sticks, but the quad drift backward a little. It looks like the sensor record the movement (actually this is stick input) as errors and try to correct it. So I checked the code, ...
by Eric
Mon Nov 12, 2012 3:20 am
Forum: Ideas
Topic: Inflight ACC-calibration
Replies: 127
Views: 72427

Inflight ACC-calibration

I did a test on this yesterday. But I enable the new alt hold cold as well, this new alt hold use accZ for better alt holding. The inflight acc calibration code reset accADC[Z] to zero, but the default value to should 1G, so the alt hold code get a very high speed towards the ground, the BaroPID cha...