GPS NAV
Re: GPS NAV
Very very good
Thank's for all .....
Re: GPS NAV
Hi András,
will you be so kind and write a new documentation like you did for r33?
will you be so kind and write a new documentation like you did for r33?
Re: GPS NAV
EOSBandi, that rocks! Looking forward to test your nav feature. (As soon as my ordered OSD, and BT-module arrives.) Thank you for your great ideas and conversions! Nice trailer! Keep it up dude!
Your copter seems to behave very predictable, i like this.
Could there be a way to calculate and set the travelspeed between waypoints in common KM/H and/or MP/H? Would be great i think.(With a limit around 25KM/H?) Or will it complicate things because of wind and weather circumstances? I dont know if its a good idea, but maybe we could depend travelspeed also to GPS-fix. If GPS drop below 7 sats, limit it to 10km/h travelspeed for example, to reduce the offset errors.
Greetz Noc
Re: GPS NAV
BTW ...... NAV-PID's are defined twice in multiwii.h ........
- NikTheGreek
- Posts: 348
- Joined: Thu Dec 08, 2011 4:17 pm
- Location: Greece
- Contact:
Re: GPS NAV
Great Work EOSBandi...
I know that probably is premature to make requests but "Duplicate way-point" button is one of the things i wanted to see in the next releases.
Thank you.
I know that probably is premature to make requests but "Duplicate way-point" button is one of the things i wanted to see in the next releases.
Thank you.
Re: GPS NAV
NikTheGreek wrote:Great Work EOSBandi...
I know that probably is premature to make requests but "Duplicate way-point" button is one of the things i wanted to see in the next releases.
Thank you.
Errrr, what is it supposed to do ? and how can be it usefull ?
Re: GPS NAV
-ralf- wrote:BTW ...... NAV-PID's are defined twice in multiwii.h ........
Cleaning up code right now
- NikTheGreek
- Posts: 348
- Joined: Thu Dec 08, 2011 4:17 pm
- Location: Greece
- Contact:
Re: GPS NAV
Errrr, what is it supposed to do ? and how can be it usefull ?
Hmmm...
The user can duplicate the LAT LON coordinates easily and change only the Altitude for example...
steps
1)Go to LAT-LON...stay for 5 sec there
2)-- Duplicate button --
3) keeps LAT -LON the same and change the ALT only
Does it make sense now ?
Thank you.
Re: GPS NAV
Crashpilot1000 wrote:Comment deleted. Reason: Input obviously not needed/wanted.
Cheers
Rob
Sorry Crashpilot1000 !
I have not see your comment, I think all your inputs are extremely important !
Feel free to share your comment !
Regards
hinkel
Re: GPS NAV
Noctaro wrote::shock:
EOSBandi, that rocks! Looking forward to test your nav feature. (As soon as my ordered OSD, and BT-module arrives.) Thank you for your great ideas and conversions! Nice trailer! Keep it up dude!
Your copter seems to behave very predictable, i like this.
Could there be a way to calculate and set the travelspeed between waypoints in common KM/H and/or MP/H? Would be great i think.(With a limit around 25KM/H?) Or will it complicate things because of wind and weather circumstances? I dont know if its a good idea, but maybe we could depend travelspeed also to GPS-fix. If GPS drop below 7 sats, limit it to 10km/h travelspeed for example, to reduce the offset errors.
Greetz Noc
Travel speed is a config parameter for NAV.- NAV_SPEED_MAX and NAV_SPEED_MIN the unit is cm/sec.
connecting nav_speed to gps reception quality is an interesting idea, will worth a try.
Re: GPS NAV
Crashpilot1000 wrote:Comment deleted. Reason: Input obviously not needed/wanted.
Cheers
Rob
If I don't answer to something that does not mean that I did not read or considered it...
Re: GPS NAV
EOSBandi wrote:Noctaro wrote::shock:
EOSBandi, that rocks! Looking forward to test your nav feature. (As soon as my ordered OSD, and BT-module arrives.) Thank you for your great ideas and conversions! Nice trailer! Keep it up dude!
Your copter seems to behave very predictable, i like this.
Could there be a way to calculate and set the travelspeed between waypoints in common KM/H and/or MP/H? Would be great i think.(With a limit around 25KM/H?) Or will it complicate things because of wind and weather circumstances? I dont know if its a good idea, but maybe we could depend travelspeed also to GPS-fix. If GPS drop below 7 sats, limit it to 10km/h travelspeed for example, to reduce the offset errors.
Greetz Noc
Travel speed is a config parameter for NAV.- NAV_SPEED_MAX and NAV_SPEED_MIN the unit is cm/sec.
connecting nav_speed to gps reception quality is an interesting idea, will worth a try.
Code: Select all
#define NAV_SPEED_MIN 100 // cm/sec
#define NAV_SPEED_MAX 300 // cm/sec
#define NAV_SLOW_NAV true
#define NAV_BANK_MAX 3000 //30deg max banking when navigating (just for security and testing)
András,
maybe a better place is in config.h then in gps.cpp ....
Re: GPS NAV
Just a short note !
FORGET Bluetooth - Get a 3DR Radio !
http://www.goodluckbuy.com/single-ttl-3 ... -apm2.html
There will be a MultiWii optimized firmware (it's pretty high on my project list)
FORGET Bluetooth - Get a 3DR Radio !
http://www.goodluckbuy.com/single-ttl-3 ... -apm2.html
There will be a MultiWii optimized firmware (it's pretty high on my project list)
Re: GPS NAV
EOSBandi wrote:Just a short note !
FORGET Bluetooth - Get a 3DR Radio !
http://www.goodluckbuy.com/single-ttl-3 ... -apm2.html
There will be a MultiWii optimized firmware (it's pretty high on my project list)
I think this will interfere with long range UHF RC control Rx/Tx, frequently used for FPV flying, like the immersion EzUHF, right ?
Re: GPS NAV
prodrone wrote:EOSBandi wrote:Just a short note !
FORGET Bluetooth - Get a 3DR Radio !
http://www.goodluckbuy.com/single-ttl-3 ... -apm2.html
There will be a MultiWii optimized firmware (it's pretty high on my project list)
I think this will interfere with long range UHF RC control Rx/Tx, frequently used for FPV flying, like the immersion EzUHF, right ?
If you live in EU you can use 868Mhz, if in US then 900. No interference.
Re: GPS NAV
EOSBandi wrote:I2CGps_nav will be discontinued by me. There will be one update to 2.3 including all patches and recommendations. But it will not include waypoint nav.
Oh well, so no chance for me to test GPS NAV on friday
Re: GPS NAV
TTRCmedia wrote:EOSBandi wrote:I2CGps_nav will be discontinued by me. There will be one update to 2.3 including all patches and recommendations. But it will not include waypoint nav.
Oh well, so no chance for me to test GPS NAV on friday
+1
well,, time has come for us pathetic i2c_gps users, to put our 328 boards in our a...s and start ordering mega boards
Re: GPS NAV
It simply won't fit.
some parts of the navigation logic, and code for WP uploading/downloading could not be moved to the i2c_gps code. Plus you need a working alt hold with high prec. baro and a mag. Including all these functions brings the code size to the limit. Plus nav needs a lot's of RAM space for variables. RAM space is the most sparse resource with MultiWii on 328p. If you run out of RAM space that is a disaster and almost impossible to debug.
So considering all the factors it is very unlikely that waypoint navigation can be implemented on i2c_gps. Even if it crammed in, it wont be safe....
In these times, the last thing that I would like to see a is runaway multiwii copter in the news.
some parts of the navigation logic, and code for WP uploading/downloading could not be moved to the i2c_gps code. Plus you need a working alt hold with high prec. baro and a mag. Including all these functions brings the code size to the limit. Plus nav needs a lot's of RAM space for variables. RAM space is the most sparse resource with MultiWii on 328p. If you run out of RAM space that is a disaster and almost impossible to debug.
So considering all the factors it is very unlikely that waypoint navigation can be implemented on i2c_gps. Even if it crammed in, it wont be safe....
In these times, the last thing that I would like to see a is runaway multiwii copter in the news.
Last edited by EOSBandi on Tue Dec 03, 2013 8:27 pm, edited 1 time in total.
Re: GPS NAV
EOSBandi wrote:Just a short note !
FORGET Bluetooth - Get a 3DR Radio !
http://www.goodluckbuy.com/single-ttl-3 ... -apm2.html
There will be a MultiWii optimized firmware (it's pretty high on my project list)
OK, ordered ..... so go on to make it work
Re: GPS NAV
Hi!
Thank you for the informations
I just cant imagine cm/sec as well as km/h. But indeed thats not a need, as its quite easy to calculate.
Great if connecting navigation speed to sat receipton would work. Also kind of a nice safety feature i think, maybe it should be a define like Failsafe.
Greetz Noc
[offtopic]
Pfffff...i even did not test my bt-module, but want this 3DR Radio!!!
[/offtopic]
Thank you for the informations
I just cant imagine cm/sec as well as km/h. But indeed thats not a need, as its quite easy to calculate.
Great if connecting navigation speed to sat receipton would work. Also kind of a nice safety feature i think, maybe it should be a define like Failsafe.
Greetz Noc
[offtopic]
Pfffff...i even did not test my bt-module, but want this 3DR Radio!!!
[/offtopic]
Re: GPS NAV
About 600m BlueTooth (BT) link:
I can go 200m with my android phone and an air BT to which i scrapped off its PCB antenna (serpent like) and soldered a lambda/4 dipole directly on module .
If you would do same procedure to ground BT module on a PC, and connect that BT module through a simple USB extender cable at more than 1.5 m above ground, you would increase at least three times the range mentioned above to a incredible 600m with BT.
I can go 200m with my android phone and an air BT to which i scrapped off its PCB antenna (serpent like) and soldered a lambda/4 dipole directly on module .
If you would do same procedure to ground BT module on a PC, and connect that BT module through a simple USB extender cable at more than 1.5 m above ground, you would increase at least three times the range mentioned above to a incredible 600m with BT.
Re: GPS NAV
dramida wrote:About 600m BlueTooth (BT) link:
I can go 200m with my android phone and an air BT to which i scrapped off its PCB antenna (serpent like) and soldered a lambda/4 dipole directly on module .
If you would do same procedure to ground BT module on a PC, and connect that BT module through a simple USB extender cable at more than 1.5 m above ground, you would increase at least three times the range mentioned above to a incredible 600m with BT.
It is also a viable solution. It's ok if you use a BT module + ftdi combo at the PC side. A BT dongle or the notebook's internal BT usually arises driver issues (at least on Windows)
Re: GPS NAV
IT HAPPENED !
I updated the first post.
I updated the first post.
Re: GPS NAV
I noticed that older (2.1) setting files *.mws cannot be read into WinGUI 2.2 and 2.3 Next i attempted to do a 'Save to File with 'both versions and that gives an exception error on both (it works with 2.1 version).
Intention was to compare fileformat of 2.1 to 2.2, 2.3 versions. The reason is that i want to import my current settings in the new MultiWii versions.
Is this intended behavior and should i discard my old settings and start from scratch ?
Intention was to compare fileformat of 2.1 to 2.2, 2.3 versions. The reason is that i want to import my current settings in the new MultiWii versions.
Is this intended behavior and should i discard my old settings and start from scratch ?
Re: GPS NAV
EOSBandi wrote:IT HAPPENED !
I updated the first post.
Good ... and now Patricks patches to make navigation work with Airplanes/Flying Wings should be integrated before the next big release
Re: GPS NAV
prodrone wrote:I noticed that older (2.1) setting files *.mws cannot be read into WinGUI 2.2 and 2.3 Next i attempted to do a 'Save to File with 'both versions and that gives an exception error on both (it works with 2.1 version).
Intention was to compare fileformat of 2.1 to 2.2, 2.3 versions. The reason is that i want to import my current settings in the new MultiWii versions.
Is this intended behavior and should i discard my old settings and start from scratch ?
It is definitely a bug, opened an issue for it. Will be fixed.
Thanks for noting.
Re: GPS NAV
EOSBandi wrote:IT HAPPENED !
I updated the first post.
I registered just to say thank you. Awesome work.
Firmware installed just fine on my MW EZ3 Black from witespy and was able to load missions. Will test it out on my quad this weekend. Do you have instructions on updating the 3DR firmware? It would be nice to have an RSSI reading for it at the base station.
Re: GPS NAV
+10000000!!!
Thankyou for this. Multiwii has evolved from using "hacked" sensors from Nintendo Wii to a fully usefull platform. I salute you.
H.
Have a beer (or two) on me! C'mon guys donate!
Thankyou for this. Multiwii has evolved from using "hacked" sensors from Nintendo Wii to a fully usefull platform. I salute you.
H.
Have a beer (or two) on me! C'mon guys donate!
Re: GPS NAV
I've sent a little beer money. Wish I could give more. I attempted a similar modification myself to the mw code a few months ago (waypoints were hard coded though), kind of worked but ended in the destruction of one of my quads when I didn't set the altitude right on one of the way points and it flew into a baseball field backstop at full speed. :-/
Re: GPS NAV
I tried with my quadx "with CRIUS AIOP" the MultiWii 2.3 navb1: it tends to turn on itself, you can not fly.
The wingui2.3 pre4 does not make me select the waipoints with double click,i use windows8
thanks
The wingui2.3 pre4 does not make me select the waipoints with double click,i use windows8
thanks
Re: GPS NAV
ttcorse wrote:I tried with my quadx "with CRIUS AIOP" the MultiWii 2.3 navb1: it tends to turn on itself, you can not fly.
The wingui2.3 pre4 does not make me select the waipoints with double click,i use windows8
thanks
Read the first post, you can put down waypoints with shift+left click. Double click has no function.
First try a standard 2.3 multiwii, when it flies good with it, then change to 2.3navb1, settings will remain the same.
-
- Posts: 31
- Joined: Tue Jun 25, 2013 1:41 pm
Re: GPS NAV
hello,
1.) great work EOSBandi, thank you!
2.) I found a bug: setting GPS_FILTERING results in the following error:
I hope changing line 508 from
to
is the right thing to do?
3.) I love the option WAIT_FOR_RTH_ALT, but only if the copter is below RTH_ALTITUDE. Would the following change in GPS.cpp to line 702 from
to
work?
1.) great work EOSBandi, thank you!
2.) I found a bug: setting GPS_FILTERING results in the following error:
Code: Select all
GPS.cpp: In function ‘void GPS_NewData()’:
GPS.cpp:508: error: ‘nav_mode’ was not declared in this scope
GPS.cpp:508: error: ‘NAV_MODE_POSHOLD’ was not declared in this scope
I hope changing line 508 from
Code: Select all
if ( nav_mode == NAV_MODE_POSHOLD) { //we use gps averaging only in poshold mode...
to
Code: Select all
if (NAV_state == NAV_STATE_HOLD_INFINIT || NAV_state == NAV_STATE_HOLD_TIMED){
is the right thing to do?
3.) I love the option WAIT_FOR_RTH_ALT, but only if the copter is below RTH_ALTITUDE. Would the following change in GPS.cpp to line 702 from
Code: Select all
if (RTH_ALTITUDE == 0 ) set_new_altitude(alt.EstAlt);
to
Code: Select all
if (RTH_ALTITUDE == 0 || (RTH_ALTITUDE * 100 > alt.EstAlt)) set_new_altitude(alt.EstAlt);
work?
Re: GPS NAV
MultiWiiGUI 2.3pre4 bug ?
I found on tab RC Control Settings AUX1 .. AUX4 can be assigned to one or more functions. To the right on that pane i have AUX1 .. AUX8 available.
SO: AUX 5 .. AUX8 cannot be assigned and thus not used...
I found on tab RC Control Settings AUX1 .. AUX4 can be assigned to one or more functions. To the right on that pane i have AUX1 .. AUX8 available.
SO: AUX 5 .. AUX8 cannot be assigned and thus not used...
Re: GPS NAV
prodrone wrote:MultiWiiGUI 2.3pre4 bug ?
I found on tab RC Control Settings AUX1 .. AUX4 can be assigned to one or more functions. To the right on that pane i have AUX1 .. AUX8 available.
SO: AUX 5 .. AUX8 cannot be assigned and thus not used...
I don't believe the GUI is setup to display/assign above AUX4, at least I don't see any refernce to any labels above AUX4.
aux_labels = new System.Windows.Forms.Label[4];
lmh_labels = new System.Windows.Forms.Label[4, 3]; // aux1-4, L,M,H
Re: GPS NAV
EOSBandi wrote:ttcorse wrote:I tried with my quadx "with CRIUS AIOP" the MultiWii 2.3 navb1: it tends to turn on itself, you can not fly.
The wingui2.3 pre4 does not make me select the waipoints with double click,i use windows8
thanks
Read the first post, you can put down waypoints with shift+left click. Double click has no function.
First try a standard 2.3 multiwii, when it flies good with it, then change to 2.3navb1, settings will remain the same.
i resolv my problem of routing:
/* NEW: not used anymore for servo coptertypes <== NEEDS FIXING - MOVE TO WIKI */
#define YAW_DIRECTION 1
//#define YAW_DIRECTION -1 // if you want to reverse the yaw correction direction
sorry I had not read the shift function, today day of test for my!!!
Re: GPS NAV
This morning, the first mission, no problem everything is perfect!
Wonderful job!
I made a donation for your work
Thanks
Wonderful job!
I made a donation for your work
Thanks
Re: GPS NAV
schnupperm wrote:hello,
1.) great work EOSBandi, thank you!
2.) I found a bug: setting GPS_FILTERING results in the following error:Code: Select all
GPS.cpp: In function ‘void GPS_NewData()’:
GPS.cpp:508: error: ‘nav_mode’ was not declared in this scope
GPS.cpp:508: error: ‘NAV_MODE_POSHOLD’ was not declared in this scope
I hope changing line 508 fromCode: Select all
if ( nav_mode == NAV_MODE_POSHOLD) { //we use gps averaging only in poshold mode...
toCode: Select all
if (NAV_state == NAV_STATE_HOLD_INFINIT || NAV_state == NAV_STATE_HOLD_TIMED){
is the right thing to do?
3.) I love the option WAIT_FOR_RTH_ALT, but only if the copter is below RTH_ALTITUDE. Would the following change in GPS.cpp to line 702 fromCode: Select all
if (RTH_ALTITUDE == 0 ) set_new_altitude(alt.EstAlt);
toCode: Select all
if (RTH_ALTITUDE == 0 || (RTH_ALTITUDE * 100 > alt.EstAlt)) set_new_altitude(alt.EstAlt);
work?
Hi,
Thanks for pointing out the issues. I just committed both fixes. The GPS_FILTERING solution was perfect, the rth needed more lines...
Re: GPS NAV
nolspath wrote:prodrone wrote:MultiWiiGUI 2.3pre4 bug ?
I found on tab RC Control Settings AUX1 .. AUX4 can be assigned to one or more functions. To the right on that pane i have AUX1 .. AUX8 available.
SO: AUX 5 .. AUX8 cannot be assigned and thus not used...
I don't believe the GUI is setup to display/assign above AUX4, at least I don't see any refernce to any labels above AUX4.
aux_labels = new System.Windows.Forms.Label[4];
lmh_labels = new System.Windows.Forms.Label[4, 3]; // aux1-4, L,M,H
Because MultiWii does not handle more than four aux channels for rcOptions
MultiWii.cpp line 987
Code: Select all
uint16_t auxState = 0;
for(i=0;i<4;i++)
auxState |= (rcData[AUX1+i]<1300)<<(3*i) | (1300<rcData[AUX1+i] && rcData[AUX1+i]<1700)<<(3*i+1) | (rcData[AUX1+i]>1700)<<(3*i+2);
for(i=0;i<CHECKBOXITEMS;i++)
rcOptions[i] = (auxState & conf.activate[i])>0;
Re: GPS NAV
EOSBandi wrote:nolspath wrote:prodrone wrote:MultiWiiGUI 2.3pre4 bug ?
I found on tab RC Control Settings AUX1 .. AUX4 can be assigned to one or more functions. To the right on that pane i have AUX1 .. AUX8 available.
SO: AUX 5 .. AUX8 cannot be assigned and thus not used...
I don't believe the GUI is setup to display/assign above AUX4, at least I don't see any refernce to any labels above AUX4.
aux_labels = new System.Windows.Forms.Label[4];
lmh_labels = new System.Windows.Forms.Label[4, 3]; // aux1-4, L,M,H
Because MultiWii does not handle more than four aux channels for rcOptions
MultiWii.cpp line 987Code: Select all
uint16_t auxState = 0;
for(i=0;i<4;i++)
auxState |= (rcData[AUX1+i]<1300)<<(3*i) | (1300<rcData[AUX1+i] && rcData[AUX1+i]<1700)<<(3*i+1) | (rcData[AUX1+i]>1700)<<(3*i+2);
for(i=0;i<CHECKBOXITEMS;i++)
rcOptions[i] = (auxState & conf.activate[i])>0;
Thank you EOS for the explanation.
But what is the use to have these four additional channels in the PPM stream, to decode them and show them in the GUI, if they cannot be used ?
I feel it should be expanded or abandoned (removed).
Re: GPS NAV
You can hardcode your own functions to the other AUX channels.
ex.
ex.
Code: Select all
if(rcData[AUX5] > 1700){
// Your code or options goes here if AUX is High...
}
Re: GPS NAV
Thank you PatrikE. I did this already but with one AUX2, changed that to AUX5 now and switched a few stick on my transmitter, like this:
But still think these switches should be equal to the other 4, since we have ARM, ANGLE, HORIZON, BARO, MAG, HEADFREE, HEADADJ, GPS HOME AND GPS HOME to select.
That is a total of 9 options assignable to only 4 switches.
Code: Select all
// end of failsafe routine - next change is made with RcOptions setting
// Clip throttle low-level at MINCHECK with AUX5 switch
// To keep control loops active with throttle at lowest position & prevent accidental arming/disarming (in flight)
if (rcData[AUX5] > 1500)
{
if (rcData[THROTTLE] < MINCHECK)
{
rcData[THROTTLE] = MINCHECK + 1;
errorGyroI[YAW] = 0;
}
}
// ------------------ STICKS COMMAND HANDLER --------------------
But still think these switches should be equal to the other 4, since we have ARM, ANGLE, HORIZON, BARO, MAG, HEADFREE, HEADADJ, GPS HOME AND GPS HOME to select.
That is a total of 9 options assignable to only 4 switches.
Re: GPS NAV
Thats a old debate on the forum about the number of AUX switches.
I'm sure you can find it if you search.
Meanwhile we're stuck with hardcoding functions.
I'm sure you can find it if you search.
Meanwhile we're stuck with hardcoding functions.
Re: GPS NAV
I have 2.3 nav on my fc and i am also using wingui2.3pre4 and i am unable to mark waypoints on the map. Any ideas?
Thank you
Figured it out, have to hold the Shift key while clicking.
Thank you
Figured it out, have to hold the Shift key while clicking.
Re: GPS NAV
Tnx for the effort much appreciated, Q: how many WP can i have.
Well c'mon hit the Donate button...
ok found it 16, is there any possibility to extend to fx 32 or more?
Well c'mon hit the Donate button...
ok found it 16, is there any possibility to extend to fx 32 or more?
Re: GPS NAV
Gimbal wrote:Tnx for the effort much appreciated, Q: how many WP can i have.
Well c'mon hit the Donate button...
ok found it 16, is there any possibility to extend to fx 32 or more?
The number of mission steps dpeends on your actual multiwii setup, the number is queried when you connected to your fligth controller. The 16 step limit is valid only if you r not connected to your fc ( will change it to a gui parameter).
The actual number with an atMega2560 based fc is well above 100 steps.
Last edited by EOSBandi on Sun Dec 08, 2013 4:53 pm, edited 1 time in total.
Re: GPS NAV
acessford wrote:I have 2.3 nav on my fc and i am also using wingui2.3pre4 and i am unable to mark waypoints on the map. Any ideas?
Thank you
Figured it out, have to hold the Shift key while clicking.
Please read the first post of this topic, the preliminary docs is there.
Re: GPS NAV
One question: Use horizont instead of angle, that's fine too?
Re: GPS NAV
ttcorse wrote:One question: Use horizont instead of angle, that's fine too?
Yes, any self leveling mode is OK.