--
You received this message because you are subscribed to the Google Groups "drones-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drones-discus...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Wednesday, October 21, 2015 at 11:35:02 PM UTC+11, robert.lefebvre wrote:
Thanks for this post Paul, it makes the situation much more clear.I have a few questions:"The legacy EKF can be turned off by setting EKF_ENABLE = 0 if you wish to free up processing time for data logging. I was compiling using GCC 4.9."This statement seems to suggest that with both EKF's running, there's a problem using data logging?
"Please be careful - this is new code with limited testing so if you are going to fly with AHRS_EKF_TYPE = 2 make sure you have stabilise mode available if flying a copter or manual mode available for planes."Using Stabilize mode for Copter won't help if the attitude goes off on EKF2, correct? You're suggesting this for if the navigation solution goes off? Perhaps Acro could be used to rescue the copter if the attitude goes off?
On Wednesday, October 21, 2015 at 11:35:02 PM UTC+11, robert.lefebvre wrote:
Thanks for this post Paul, it makes the situation much more clear.I have a few questions:"The legacy EKF can be turned off by setting EKF_ENABLE = 0 if you wish to free up processing time for data logging. I was compiling using GCC 4.9."This statement seems to suggest that with both EKF's running, there's a problem using data logging?
No problems with standard 50Hz data logging, but my Pixhawk and SD card combinations struggled to log dual IMU's at 400Hz whilst running both EKF's so the data log regularly missed IMU samples.
Changing data logging options had no effect on timing bitter that I could see.
"Please be careful - this is new code with limited testing so if you are going to fly with AHRS_EKF_TYPE = 2 make sure you have stabilise mode available if flying a copter or manual mode available for planes."Using Stabilize mode for Copter won't help if the attitude goes off on EKF2, correct? You're suggesting this for if the navigation solution goes off? Perhaps Acro could be used to rescue the copter if the attitude goes off?
Yes, Acro could be used, but you would need to have set it up without attitude limits and I think it still uses the attitude solution to lock the attitude when sticks are released. The biggest benefit with stabilise (or macro) for this type of testing is the control over throttle. I did my early testing at low altitude over grass so the option was always there to do a throttle cut.
GPS velocity innovations
Barometer innovations
X magnetometer innovations
Y magnetometer innovations
Z magnetometer innovations
The smaller and less biased innovations indicate that the new EKF is probably providing a more accurate solution, however we are talking about small differences other than at the end of flight when the coper is picked up and carried which is when the legacy EKF develops about a metre of position innovation. Here are some difference plots.
Position difference
Velocity difference
Roll and pitch difference
On second thought, since the mode implies that the users knows what he or she wants. What about Gyro mode? No way of confusing the meaning then.
--
I would call it “Rate” to fall in line with what the other Gyro-based flight modes are doing in quadcopter land out there.
I am in favor of this for sure, but have had conversations with Leonard on it and think we should get his input as well.
From: drones-...@googlegroups.com [mailto:drones-...@googlegroups.com] On Behalf Of Robert Lefebvre
Sent: Thursday, October 22, 2015 7:03 AM
To: drones-discuss <drones-...@googlegroups.com>
Subject: Re: [drones-discuss] AP_NavEKF2 in ArduPilot Master - Intrepid Testers Sought
That makes sense. It's very simple and conveys what is really happening. FPV racers would love it too. I've heard that some FPV racing classes will mandate flying with pure rate control. Not sure if our current Acro mode would satisfy the rules, not sure how they're written. Acro is pure rate based inputs, but it uses AHRS to augment the attitude hold performance.
Note, that in the first experiment initial values of NKF1.PN and NKF1.PE were close to zero.
In spite of this, NKF1.PN and NKF1.PE looks more correct. I have compared the NKF1.PN and NKF1.PE data from the first experiment with ground truth odometry data which I got from ROS/Gazebo environment and NKF1 data are more close to the ground truth odometry. In fact, the simulated copter moves around start position, but as you can see on images above EKF.PN drifts into minus values.
In the third experiment I have used AHRS_EKF_TYPE = 2. As I understood, in this case, the new EKF is used to control. However, I have not got stable flight in this mode. As I mentioned early, I used the ROS node to control the copter. This node uses the orientation data for own algorithm. I have compared the EKF1.Roll and NKF1.Roll (EKF1.Pitch and NKF1.Pitch) and have found that they are significantly different. And I think that EKF are more correct than NKF, because I could get a stable flight with EKF orientation data and could not with NKF data.
You can see the comparision of EKF1.Roll and NKF1.Roll for first experiment below:
You can see the comparision of EKF1.Pitch and NKF1.Pitch for first experiment below:
Maybe these stranges are specific only for SITL mode. I am going to make some experiments with real copter and new EKF in couple weeks, however I would like to get stable flight in SITL mode before.
PS. I have attached log files for all mentioned experiments.
Best Regards,
Alex
As you can see, EKF1.Pitch values look more correctly. Also if I use new EKF to control, the drone will unstable.
I understand that my simulation environment could produce some causes of such results and you will be not able reproduce it on your side. Maybe you give advice which variables should I compare additional to understand this issue.
Best Regards,
Alex
Via USB? If by serial radio check your baud rate. Default is 57600.
--
You received this message because you are subscribed to a topic in the Google Groups "drones-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drones-discuss/inMOZBjmANY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drones-discus...@googlegroups.com.