Jason Short
77f47a45d0
ACM : Nav rate limit lowered to prevent bad oscillations due to GPS latency.
13 years ago
rmackay9
64cfaf74b7
ArduCopter: renamed "_new_alt" parameter to just "new_alt" in force_new_altitude and set_new_altitude functions
13 years ago
Jason Short
1b7e27658b
ACM : removed old note
13 years ago
Jason Short
bdc1c41e62
ACM: made target bearing the lead filtered location
...
Had some major nav trouble from crosstrack if I used the laggy position.
13 years ago
rmackay9
36f947acb9
ArduCopter: changed all "int" to "int16_t" and a few "long"s to "int32_t".
...
Also moved "simple_counter" variable from global scope to the "update_simple_mode" function which is the only place that it's actually used.
13 years ago
rmackay9
a72bf6ef57
ArduCopter: replaced abs with labs as required in a few places.
...
Also fixed a small bug in the get_stabilize_pitch function in which it was using the roll (instead of pitch) to decide whether it should let the i term build-up or not.
13 years ago
Jason Short
f1af837543
ACM: Switched to filtered loc
13 years ago
Jason Short
3ad08b7ffc
ACM : Added larger WP radius for fast waypoints so we don't loose speed angling in on the WP at the last second.
13 years ago
Jason Short
adf5939ba4
ACM: navigation - Alt cleanup, fast corner support
13 years ago
Andrew Tridgell
fb26160d3b
ACM: change to use get_bearing_cd() instead of get_bearing()
13 years ago
Jason Short
1d085c8cf4
Added minimum speed for RTL
13 years ago
Jason Short
f46e8468c4
Arducopter: Adjusted speed of climb to not stall out before hitting peak
13 years ago
Jason Short
6506ebf69f
Arducopter: Fix compile issue
13 years ago
Jason Short
2df487ab7b
Arducopter: Slower WP deceleration for RTL and WP navigation
...
Slower descent and slightly faster ascent
13 years ago
Jason Short
c995749aaa
Arducopter
...
upped nav max to 32deg from 30
renamed calc_desired_speed to get_desired_speed
Added get_desired_climb_rate function to do smooth transitions in altitude
modified get_altitude_error to override the older altitude manager.
13 years ago
Jason Short
f73a2004be
Arducopter: INS
...
updated Nav control to use INS
13 years ago
Jason Short
3048d2f9b4
Arducopter: WP_radius
...
Switching to stored WP_radius in meters, just like Arduplane
13 years ago
Andrew Tridgell
be763a6ead
ACM: use get_distance_cm() not get_distance()
...
this fixes a bug introduced in 28f2eb6b9
13 years ago
Jason Short
038116f521
Airspeed patch:
...
pre-calculated airspeed resistance pitches copter automatically to gain a certain speed allowing the speed controller to work off of a better set point - similar to Alt hold.
added param tilt_comp with a default of 54 which equals 19.5° of pitch to go 6m/s
upped Z and Y target speeds to int32_t for speed squared calculation
13 years ago
Andrew Tridgell
5ed345fe94
ACM: removed some Location functions which are now in AP_Math
13 years ago
Jason Short
c29a0bc3f8
Navigation
...
increased speed governor to get faster WP travel
added param for WP tilt - basically a precalculated I term for wind resistance.
13 years ago
Jason Short
1a6549fef7
removed GPS ground speed calc - was causing some funny business during the transition.
13 years ago
Jason Short
eea788b63f
navigation.pde : Added a drag/velocity prediction filter for improved I term wind correction.
13 years ago
Jason Short
53d2a46cd6
Navigation.pde : removed old cross tracking from Arduplane. Added new 2D cross tracking. Added use of GPS velocity when above 1.5m/s
13 years ago
Jason Short
c42f9ece43
Inertial Control
...
I added inertial navigation based on the simulator data. This is an option only available if you compile with Arduino and set
#define INERTIAL_NAV ENABLED
in the APM_Config.h file.
This has been tested for one real flight and did not crash my quad, but consider it very alpha. The quad may be unpredictable at first until the error correction fixes poorly calibrated accels. Be Careful.
Most of the real work is in the inertia file, but the error correction, new variable defines and calibration calls are sprinkled throughout.
The Log should record RAW messages with special debugging values.
13 years ago
Jason Short
9732b7d2dc
navigation.pde:
...
removed unneeded WP_Distance check
remove unneeded return for Navigate
removed unneeded rate_D calcs
removed unused functions
13 years ago
Jason Short
d1cd04486a
removed retro loiter code since Angel has a branch now.
...
shrank speed filter to avoid latency
removed unused forward estimator code
placed code for switchover to gps.groundspeed at 1.5m/s
added clamp for D term when below .5m/s to eliminate noise
added hybrid I-term based on speed error and position
changes Loiter D term to use position rather than acceleration to avoid noise
13 years ago
Adam M Rivera
b2a7227ae7
ArduCopter/Navigation: Updated code to reference the new g.retro_loiter param instead of the compile define.
13 years ago
Adam M Rivera
1676e09f12
navigation.pde: Put the new calc_GPS_velocity method in a compiler if that checks the new RETRO_LOITER_MODE config value (saves space and ensures its not being used unless retro loiter mode is enabled)
13 years ago
Adam M Rivera
d29f1ef331
Loiter: Made the "retro loiter" routines configurable. Add RETRO_LOITER_MODE ENABLED to APM_Config.h to enable the older loiter shtuff.
13 years ago
Adam M Rivera
d4a4641ae6
navigation.pde: Added calc_GPS_velocity. Added constraint to x/y error and x/y rate error.
13 years ago
rmackay9
fad162989f
ArduCopter - navigation.pde - added logging of Loiter PID controllers
13 years ago
rmackay9
66c4f752e3
ArduCopter - navigation - corrected comment in check_missed_wp function to clarify that you've passed the waypoint when the direction to the way point is more than 100 degrees off (not 10 degrees off) from your original bearing towards the waypoint
13 years ago
rmackay9
22315cd41a
ArduCopter - Navigation.pde - corrected comment re wp_distance and get_distance to clarify that they are in cm (not meters!)
13 years ago
rmackay9
91b2b48fd8
ArduCopter - bug fix to calc_XY_velocity (was using uninitialised last_longitutde and last_latitude for speed calculations)
13 years ago
Jason Short
427dacba70
ACM: Smoother Speed calcs
13 years ago
Jason Short
7153b94ade
ACM: Disabled D term experiment for Loiter until more testing
13 years ago
Jason Short
468d9c4b4f
ACM: Loiter D performance updates
13 years ago
Jason Short
73e2bd6cd8
ACM: Got the sign wrong. I'm using the derivative of the error now and not the sensor, so the sign was reversed.
13 years ago
Jason Short
deed802d1a
ACM: Broke out the D term for the PID loop to add custom filtering. The current AC_PID filtering wasn't working for this application and we needed more smoothing. Bad pitch oscillations were being transmitted to the copter.
13 years ago
Jason Short
450f89ec5d
ACM: Added note about scaling rates
13 years ago
Jason Short
eb53200179
ACM: Altered the scaling speed for altitude changes for faster rises.
13 years ago
Jason Short
204f9957b0
ACM: Added force_new_altitude call to do immediate changes in altitude and no gradual changes.
13 years ago
rmackay9
afc4aceb32
ArduCopter - fixed small compile warning about unused x_iterm and y_iterm in navigation.pde
13 years ago
Jason Short
6e53949c2a
removed Constraint that caused JLN's horizontal drift.
13 years ago
Jason Short
24345d4f43
Loiter updates
13 years ago
Jason Short
81a861c8ac
Added slow wp option in calc_desired_speed
13 years ago
Jason Short
bcd5129f9b
added workaround for resetting alt.
13 years ago
Jason Short
908ca4e915
scaled X velocity
13 years ago
Jason Short
9a3e862b55
added option in code for Loiter specific gains
13 years ago