When I change the GPS to 5 in the easystar file and try to upload, I get this  message
" error: redefinition of 'float dlat'"

how do i fix this?

Views: 7

Reply to This

Replies to This Discussion

That's a bug in that version; we'll fix it in the next.

To get around it now, just comment out this line in the Navigation tab when you want to run in sim mode. Like this

//float dlat,dlng;
Hey Chris
once I changed that line it uploaded fine, however I have a couple more questions. Firstly, I took my class into the field and got great readings on the labview ground station so I am pretty sure everything is working well. We changed the code in the easystar header so that our switch position goes from manual to auto (2 position radio) we verified by using the serial monitor (changing the baud rate to 38k we have the sirf @58k). we used ardupilot to write some way points, which it wrote to the ap. we then opened up the ground station and got nothing. whether I disconnect or leave attached my gps i get the flashing blue gps light. should I be expecting it to lock in sim mode? since i am using the xbees is my baud rate still 58k in the ground station? or does the sim gps effect this somehow? In our current config (GPS disconnected ground station @58k) we get no readings and we no response from the plane, I forgot to add that our throttle bypasses the ardupilot ( I read this is helpful in setting up your plane)
Thanks Bill
All serial has to match the GPS. So if you're using an EM406, you need to set everything to 58k--xbees, GCS, serial monitor, etc..

As for the no GPS lock, if you're not using the throttle you have to use the bind plug process at startup or it won't get lock.
Thanks for clarifying, couple of more questions though. I set the throttle through the apilot,If I have my gps set to 5 should I get a gps lock? Should my gps (EM406) be disconnected for this? My xbees are set @ 57.6k, should I change the sim 5 in the code to this value?
Hey Chris
I thought that if I did this
" If you haven't done so already, you should solder the two jumper wires on the bottom of the board to enable full throttle control, as describe in the building instructions here.
Once have you done that, if you're going to be using the shield, you'll need to snip off the pin on D13 on the ArduPilot board. This is because we're now using pin D13 to read the throttle and there is a LED on the shield on that pin that throws off the RC readings. This is the one to remove"

then "The "bind plug" startup process is no longer needed if you've made the above changes for throttle control. Now just power on the autopilot and wait for GPS lock and you're ready to go."

Please clarify for me I am a newbie and I would like to get the sim mode to work for me.

thanks again Bill
That's correct. I'll try testing Sim mode in the next day or two and see if there are any issues. It was just tossed in the code as a little fun thing and we haven't focused on it, so there might be a bug.
Thank you.
Hey Chris
I still have no luck getting the sim mode to work for me. I have flown missions and get great telemetry from my ground station, so I know all is configured well for flight.

RSS

Social Networking

Contests

Season Two of the Trust Time Trial (T3) Contest has now begun. The fourth round is an accuracy round for multicopters, which requires contestants to fly a cube. The deadline is April 14th.

A list of all T3 contests is here

Advertisement

© 2013   Created by Chris Anderson.   Powered by

Badges  |  Report an Issue  |  Terms of Service