Randy Mackay
204f613467
WPNav: bug fix to reported distance to target
...
This value is for reporting purposes only
2013-07-10 18:21:08 +09:00
Randy Mackay
518eba0729
WPNav: bug fix to loiter accel calculation
...
Contribution from Leonard Hall
2013-07-10 17:52:12 +09:00
Randy Mackay
c4f17b3235
WPNav: rounding error fix in loiter
...
Contributed by Leonard Hall
2013-07-10 16:24:37 +09:00
Randy Mackay
8cb7bd628e
Copter: change firmware version to 3.0.1-rc2
2013-07-10 15:52:21 +09:00
Randy Mackay
5d23d5aaa7
WPNav: reduce loiter speed used to correct pos error
...
Contributed by Leonard Hall
This should reduce the aggressiveness of the response when we experience
a GPS glitch
2013-07-10 15:52:18 +09:00
Randy Mackay
f459d35e3e
Copter: roll-pitch fix to allow I to reduce
...
Contributed by Leonard Hall
2013-07-10 15:52:15 +09:00
Randy Mackay
7860d06b91
AHRS: typo fix for ORIENTATION param description
2013-07-10 14:56:48 +09:00
Andrew Tridgell
2005d5642a
Plane: fixed a documentation string
...
GND_ALT_OFFSET is now for barometric corrections
2013-07-10 14:46:22 +10:00
Andrew Tridgell
0f72401d8d
AP_Baro: added GND_ALT_OFFSET parameter
...
used for automatic barometric adjustment by a ground station equipped
with a barometer
2013-07-10 14:38:57 +10:00
Andrew Tridgell
3c97fad2ec
Plane: changes for GPS field changes
2013-07-10 14:04:22 +10:00
Andrew Tridgell
da4137b731
Copter: changes for GPS field changes
2013-07-10 14:04:22 +10:00
Andrew Tridgell
b5db3288ae
Rover: changes for GPS field changes
2013-07-10 14:04:22 +10:00
Andrew Tridgell
469736e6bc
DataFlash: changes for GPS field changes
2013-07-10 14:04:22 +10:00
Andrew Tridgell
279f6d00f0
AP_AHRS: changes for GPS field changes
2013-07-10 14:04:22 +10:00
Andrew Tridgell
7dbb898264
AP_GPS: switch fields to add units suffix
...
altitude -> altitude_cm
ground_speed -> ground_speed_cm
ground_course -> ground_course_cd
this helps prevent unit mixups
2013-07-10 14:04:22 +10:00
Andrew Tridgell
7aa360b176
Plane: added relative_altitude helper functions
...
prevents some code duplication
2013-07-10 14:04:22 +10:00
Paul Riseborough
66d60953df
TECS: added height update_pitch call
2013-07-10 14:04:22 +10:00
Paul Riseborough
971d36f06b
Plane: added height to 10Hz TECS call
2013-07-10 14:04:22 +10:00
Randy Mackay
cf6684ac0c
AutoTest: fix to copter getting stuck in Failsafe test
2013-07-10 13:03:40 +09:00
Andrew Tridgell
c544a076ca
Copter: enable camera logging by default
...
these messages only happen on user defined camera triggering, so
should be low rate
2013-07-10 12:24:02 +10:00
Andrew Tridgell
3c177867a4
Plane: allow enable/disable of camera log messages in CLI
2013-07-10 12:23:36 +10:00
Andrew Tridgell
f7c8d1e1ee
Plane: use current_loc.alt for altitude to TECS
2013-07-10 11:55:35 +10:00
Andrew Tridgell
9959f6b2df
AP_Camera: removed incorrect mavlink sends
...
these sends did nothing, as MAVLINK_COMM_3 is not connected to
anything. If it was connected they would be dangerous, as a blocking
serial write could cause the stabilization of a copter not to run. If
the serial port was non-blocking it would corrupt the packet.
If we needed something like this it would have to use the MAVLink
packet queueing logic we use elsewhere
2013-07-10 11:51:40 +10:00
Craig@3DR
7f4336430a
Plane: trigger picture + logging on camera update_location()
2013-07-10 08:40:01 +10:00
Craig@3DR
bbd4fbd2fb
Copter: trigger + logging on camera update_location()
2013-07-10 08:39:59 +10:00
Craig@3DR
f5154d9e7a
AP_Camera: changed update_location() to return true for camera trigger
...
Makes the main vehicle code responsible for taking a photo so logging can occur
2013-07-10 08:39:56 +10:00
Andrew Tridgell
7fa1fe8590
AP_Param: use 0xFFFF not __UINT16_MAX__
...
MacOS doesn't have __UINT16_MAX__
2013-07-09 20:51:06 +10:00
Paul Riseborough
a4f3180e2a
Plane: added support for throttle nudging with TECS
2013-07-09 20:51:03 +10:00
Paul Riseborough
2c5db9a165
TECS: added support for throttle nudging
2013-07-09 20:50:37 +10:00
Paul Riseborough
c34803db13
Plane: pass in adjusted height above field to TECS
2013-07-09 09:25:55 +10:00
Paul Riseborough
9c431b4a04
TECS: use altitude supplied by mainline code
...
this allows for use of ALT_OFFSET and ALT_MIX
2013-07-09 09:25:53 +10:00
Paul Riseborough
d8fedf994a
AP_SpdHgtControl: added height above field parameter
2013-07-09 09:05:22 +10:00
Andrew Tridgell
764d382aef
autotest: display map results on timeout
2013-07-09 08:48:17 +10:00
Andrew Tridgell
becd180441
autotest: external timeout must be greater than internal timeout
...
or we can get blank output
2013-07-08 21:52:24 +10:00
Tobias
4a75351bd3
AP_Param: fixed a compiler warning with -Wsign-conversion
2013-07-08 14:57:33 +10:00
Tobias
27a5c28851
AP_Param: fixed some compiler warnings
...
* added comment
* replaced "~0" with the appropriate macro
* resolved -Wconversion
* saved some space by modifying AP_Param::add_vector_suffix (writing
behind buffer could happen, if buffer_size is almost uint16_max but this
can surely be ignored)
further reading:
http://stackoverflow.com/questions/809227/is-it-safe-to-use-1-to-set-all-bits-to-true
2013-07-08 14:57:33 +10:00
Tobias
ab311d1dd4
AP_Compass: removed comparison out of range compiler warning
...
uint_ >= 0 (-Wtype-limits)
2013-07-08 14:57:25 +10:00
Tobias
cf426fcb3e
Copter: fixed a compiler warning
...
* removed useless comparison: if (int8_t t >= 255) ...
* revealed by -Wtype-limits
* saved 6 bytes
2013-07-08 14:53:30 +10:00
Tobias
c95072ea25
AP_GPS: added explicit cast to omit [-Wconversion] warning
2013-07-08 14:53:20 +10:00
Randy Mackay
ed3bf2c1e7
Copter: relax pre-arm checks for mag field
...
previously it was 50% ~ 150% of expected mag field but now expanded to
35% ~ 165%.
2013-07-07 18:00:36 -10:00
Andrew Tridgell
8c49ed78a5
AP_Math: make the rotation numbers easier to find
2013-07-08 12:17:59 +10:00
Andrew Tridgell
a6c7bd3612
AP_Compass: fixed rotations for COMPASS_ORIENT
...
this matches AHRS_ORIENTATION again
2013-07-08 12:17:59 +10:00
Tobias
947f8125bb
extended .gitignore:
...
.directory (Dolphin's .DS_Store)
/.settings/ (eclipse)
2013-07-08 12:17:59 +10:00
Tobias
338c054da2
Filter: validity of array index was checked AFTER accessing the element.
...
(correction decreased Program size by 12 bytes)
2013-07-08 12:17:59 +10:00
Tobias
d3ea88e8c7
AP_HAL: resolved -Woverloaded-virtual warning
...
the function:
virtual size_t AP_HAL::Print::write(const uint8_t *buffer, size_t size);
was hidden in all derived classes by their
virtual size_t write(uint8_t) = 0; implementations.
To solve this, a non-virtual write(const uint8_t *, size_t) that calls a
virtual write_implementation was added.
This isn't necessary atm, because the derived classes don't call
write(const uint8_t *, size_t), BUT this decreases the apm2-quad Program
size by 40 bytes :D and removes warnings.
2013-07-08 12:17:34 +10:00
tobias
1bf135b36f
AP_AHRS: make some more functions const
2013-07-08 12:07:50 +10:00
Tobias
ce6529734c
HAL_AVR: reorder parameters to remove a warning with -Wreorder
2013-07-08 12:07:50 +10:00
tobias
4e73cf810e
Copter: added cast to remove compiler warning
2013-07-08 12:07:50 +10:00
tobias
4e7fea787b
HAL_AVR: corrected includes to replace #include "$HEADER" with #inlcude "utility/$HEADER"
...
adding -I for EVERY DIRECTORY isn't desirable
http://gcc.gnu.org/onlinedocs/cpp/Search-Path.html
2013-07-08 12:07:50 +10:00
Andrew Tridgell
9f612f6f78
Plane: only call TECS when throttle is not suppressed
...
this helps prevent integrator buildup on the ground
2013-07-08 12:07:50 +10:00