Lucas De Marchi
e9b6c76454
ArduCopter: fix wrong printf format for 32 bits
...
"micros() - before" doesn't return a long value. Use "%u".
9 years ago
Lucas De Marchi
c397e550e2
ArduCopter: fix warning due to wrong type
...
"%s" expects a string. This works since the string in the struct is the
first member so it's harmless.
9 years ago
Lucas De Marchi
5244559010
Minimize AP_Progmem.h includes
...
Most of AP_Progmem is already gone so we can stop including it in most
of the places. The only places that need it are the ones using
pgm_read_*() APIs.
In some cases the header needed to be added in the .cpp since it was
removed from the .h to reduce scope. In those cases the headers were
also reordered.
9 years ago
Lucas De Marchi
a65c98485c
AP_HAL: UARTDriver: remove _P() variants
...
They aren't used anymore so remove.
9 years ago
Lucas De Marchi
1b07dabeb7
Replace prog_char and prog_char_t with char
...
prog_char and prog_char_t are now the same as char on supported
platforms. So, just change all places that use them and prefer char
instead.
AVR-specific places were not changed.
9 years ago
Lucas De Marchi
b52d1cfabb
DataFlash: remove DataFlash.Log_Write_Message_P()
9 years ago
Lucas De Marchi
4ab9821624
Replace use of Log_Write_Message_P() with Log_Write_Message()
9 years ago
Lucas De Marchi
132303db4b
AP_InertialSensor: use printf() rather than _printf_P()
9 years ago
Lucas De Marchi
2556fc8dbe
BetterStream: use common macro for printf formatting
...
Since this needs an additional header, also put them in correct order.
9 years ago
Lucas De Marchi
20c6ffc5e3
Replace use of UARTDriver::printf_P() with UARTDriver::printf()
...
This also starts to show warnings on places that were already using
wrong printf format strings.
9 years ago
Lucas De Marchi
7ceffb1e2b
Replace use of vprintf_P() with vprintf()
9 years ago
Lucas De Marchi
6f4904189b
Replace use of println_P() with println()
9 years ago
Lucas De Marchi
a964ac38ec
Replace use of print_P() with print()
9 years ago
Lucas De Marchi
ee72254ff9
APMrover2: remove undefined function from header
9 years ago
Lucas De Marchi
65e719ccc3
AP_Param: replace find_P() with find()
9 years ago
Lucas De Marchi
af88ebf477
GCS_MAVLink: remove send_text_P() in favor of send_text()
9 years ago
Lucas De Marchi
89fc4f4b62
Replace use of send_text_P() with send_text()
9 years ago
Lucas De Marchi
831d8acca5
Remove use of PROGMEM
...
Now variables don't have to be declared with PROGMEM anymore, so remove
them. This was automated with:
git grep -l -z PROGMEM | xargs -0 sed -i 's/ PROGMEM / /g'
git grep -l -z PROGMEM | xargs -0 sed -i 's/PROGMEM//g'
The 2 commands were done so we don't leave behind spurious spaces.
AVR-specific places were not changed.
9 years ago
Lucas De Marchi
d595e41003
Replace use of strncmp_P() with strncmp()
9 years ago
Lucas De Marchi
0aa117f65d
Replace use of strnlen_P() with strnlen()
9 years ago
Lucas De Marchi
1336d621be
Replace use of strcpy_P() with strcpy()
9 years ago
Lucas De Marchi
e4b313d2ca
Replace use of memcpy_P() with memcpy()
9 years ago
Lucas De Marchi
f8f3f5a024
Replace use of strlen_P() with strlen()
9 years ago
Lucas De Marchi
aa370fe758
Replace use of strcmp_P() with strcmp()
9 years ago
Lucas De Marchi
6f0db45b57
Replace use of strcasecmp_P() with strcasecmp()
9 years ago
Lucas De Marchi
84da1f5039
Rename gcs_send_text_P to gcs_send_text
9 years ago
Lucas De Marchi
a8455aa4e3
AP_HAL: Remove Util::{v,}snprintf_P()
9 years ago
Lucas De Marchi
84d5fb006f
Remove use of Util::{v,}snprintf_P()
...
These are now the same function as Util::snprintf().
9 years ago
Lucas De Marchi
2c38e31c93
Remove use of PSTR
...
The PSTR is already define as a NOP for all supported platforms. It's
only needed for AVR so here we remove all the uses throughout the
codebase.
This was automated with a simple python script so it also converts
places which spans to multiple lines, removing the matching parentheses.
AVR-specific places were not changed.
9 years ago
Lucas De Marchi
bd0f0a7536
ArduPlane: convert dos linefeeds to unix
9 years ago
Randy Mackay
4d458833dc
AP_NavEKF2: remove unnecessary PV_AidingMode check
...
Thanks to OXINARF for catching this
9 years ago
Paul Riseborough
b459d937ad
AP_NavEKF2: Clean up GPS fusion timeout logic and comments
9 years ago
Paul Riseborough
61d556afb1
DataFlash: Fix shorthand variable names for EKF position reset delta
9 years ago
Randy Mackay
adee13d729
AC_WPNav: handle ekf position reset in Loiter and Brake
9 years ago
Randy Mackay
94adaba305
AP_NavEKF2: constify getLastPosNorthEastReset
...
Also constify getLastVelNorthEastReset
9 years ago
Randy Mackay
3f29365cae
AP_NavEKF: constify getLastPosNorthEastReset
9 years ago
Randy Mackay
4e959ef6f9
AP_AHRS: constify getLastPosNorthEastReset
...
Also constify getLastVelNortEastReset
9 years ago
Randy Mackay
52ed075405
AP_NavEKF2: constify getLastYawResetAngle
9 years ago
Randy Mackay
758c5a7d7f
AP_NavEKF: constify getLastYawResetAngle
9 years ago
Randy Mackay
7c20577ee0
AP_AHRS: constify getLastYawResetAngle
9 years ago
Randy Mackay
040ec481f4
AC_WPNav: loiter uses pos_control.shift_pos_xy_target
9 years ago
Randy Mackay
550ba478c9
AC_PosControl: add shift_pos_xy_target
9 years ago
Randy Mackay
16a0281c92
AC_PosControl: remove unused set_vel_target
9 years ago
Paul Riseborough
0b1a6a2157
AP_NavEKF2: Clean up GPS timeout logic
9 years ago
Paul Riseborough
f67f6b01f4
AP_AHRS: Publish the EKF position and velocity reset deltas
9 years ago
Paul Riseborough
74da4d8e57
AP_NavEKF2: Remove GPS glitch offset logic
...
Correction for steps in position and velocity caused by resets following GPS glitches and other events are now handled by the control loops.
9 years ago
Paul Riseborough
4fdec67546
AP_NavEKF2: Publish the position and velocity state reset deltas
...
Used by the control loops to compensate for step changes in position and velocity when the EKF needs to do a reset of these states.
9 years ago
Paul Riseborough
7c40448bab
AP_NavEKF: Remove GPS glitch offset logic
...
The correction for offsets due to position and velocity resets will now be handled in the control loops.
9 years ago
Paul Riseborough
5489ff9118
AP_NavEKF: publish position and velocity state reset data
...
Used by the control loops to compensate for steps in velocity and/or position resulting from state resets.
9 years ago
Tom Pittenger
0d36c4c07b
GCS_MAVLink: version update after generate
9 years ago