Lucas De Marchi
e0639ac029
ArduCopter: remove check for AVR CPUs
...
Remove the checks for HAL_CPU_CLASS > HAL_CPU_CLASS_16 and
HAL_CPU_CLASS >= HAL_CPU_CLASS_75. Corresponding dead code will be
removed on separate commits.
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
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
a964ac38ec
Replace use of print_P() with print()
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
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
Gustavo Jose de Sousa
fb5320bb25
ArduCopter: use compass get_{field,offsets}() functions
...
Both functions are equivalent, so we're going to simply use
get_{field,offsets}() instead of get_{field,offsets}_milligauss().
9 years ago
Staroselskii Georgii
68e0d57998
Copter: make Copter use milligauss
...
The telemetry and and logging is still in compass units, though. This
way, users won't need to recalibrate their compasses.
10 years ago
Andrew Tridgell
278883c521
Copter: finished conversion to .cpp files
...
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
10 years ago
Andrew Tridgell
356ece3402
Copter: rename .pde files to .cpp files
10 years ago
Andrew Tridgell
554de1f2d7
Copter: added channel objects named after input function
...
this follows the pattern used in plane and rover
10 years ago
Tom Pittenger
c8bc44fc6e
Copter: compile warnings: float to double. print statements require doubles
10 years ago
Víctor Mayoral Vilches
79e152cd93
Copter: Update compass to the new interface
10 years ago
Randy Mackay
f1f71ef605
Copter: cli uses has_current method
10 years ago
Randy Mackay
3201a8dbca
Copter: integrate optflow_enable param move to optflow class
10 years ago
Randy Mackay
58602bd1ae
Copter: move esc calibration to separate file
...
Restructured into case statement
Replaced use of g.throttle_max with definition
Added more comments
Send message to ground station instead of printing on console (although
probably both are unlikely to be read)
11 years ago
Jason Short
0dd9797fe6
Copter: restore CLI set parameter feature
...
Added back the ability to set params from CLI
11 years ago
Andrew Tridgell
91ec4e56d5
Copter: fixed ESC calibration on Pixhawk
...
this ensures motors are armed after safety is pressed, and also gives
print out of channel inputs and outputs on USB console for debug
purposes
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
11 years ago
Randy Mackay
eb696e247b
Copter: CLI report_compass prints results for all compasses
11 years ago
bugobliterator
2fd165d023
Copter: Add esc_calib to as an app in cli
...
Usage Notes:
- when in cli mode select setup
- inside setup use esc_calib <chan_mask> to launch esc calibration
e.g. esc_calib 1010 : enable calibration for Motor 2 and Motor 4
11 years ago
Andrew Tridgell
a4b9b989b7
Copter: convert to new AP_RangeFinder API
11 years ago
Randy Mackay
4f963e7795
Copter: move report_compass out of the CLI
...
This function is also used by compassmot. Having it strictly part of
the CLI causes a compile error when the CLI is disabled
11 years ago
Randy Mackay
00f9843e40
Copter: remove CLI tests for gps, logging, radio
...
Required to shrink the firmware down so that it can fit on the APM2
boards
11 years ago
Randy Mackay
fc85228d09
Copter: remove CLI set
...
Frees about 1k of flash
11 years ago
Randy Mackay
797212c7ab
Copter: remove remnant of cli compassmot
11 years ago
Andrew Tridgell
76b60a1a52
Copter: added compassmot over MAVLink
...
use the MAVLink interact code to allow for compassmot over MAVLink
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
11 years ago
Randy Mackay
3f10a84a2a
Copter: remove accel calibration from cli
...
Also remove compass, flight mode, optical flow, radio and ch6 tuning
knob setup from cli to free up 3.5k of flash
11 years ago
Randy Mackay
f7f8691ca3
Copter: remove frame setup through CLI
11 years ago
Randy Mackay
02898cb46e
Copter: replace APM with board in cli
11 years ago
Andrew Tridgell
d265e54043
Copter: changes for compass healthy API
11 years ago
Andrew Tridgell
ffdcb715c3
Copter: updates for compass API change
11 years ago
Randy Mackay
87127f0ab8
Copter: allow battery failsafe to trigger RTL
11 years ago
Randy Mackay
72597cc5bd
TradHeli: remove setup via CLI
...
Saves 6k of flash
11 years ago
Tobias
7564cc02af
Copter: use const refs instead of unneeded copies
11 years ago
Randy Mackay
dab4f032f9
Copter: integrate BattMonitor
12 years ago
Randy Mackay
589200042d
Copter: remove declination setup from CLI
12 years ago
Randy Mackay
09756e16b7
Copter: remove battery setup from CLI
12 years ago
Randy Mackay
8cce837f77
Copter: remove accel level from cli
...
the accel command should always be used in place of level
12 years ago
Randy Mackay
284aa2217f
Copter: remove old comments
12 years ago
Randy Mackay
d7782e1356
Copter: remove tune from cli to save 300bytes flash
12 years ago
Randy Mackay
1cc2c8d6a5
Copter: reduce compassmot flash by 500 bytes
12 years ago
Andrew Tridgell
46688454c4
Copter: removed flash_leds() calls
12 years ago
Randy Mackay
52ef77393c
Copter: integrate Toshiba_LED_PX4
12 years ago
Randy Mackay
e985253f1a
Copter: integrate notify
12 years ago
Randy Mackay
53bff2b63e
Copter: cli to report ch8 radio values
12 years ago
Olivier-ADLER
eaa0e36954
Copter: CompassMot current calibration
...
Was using a hardcoded (330) value instead of COMPASS_MAGFIELD_EXPECTED define
12 years ago
Randy Mackay
b462bfed84
Copter: remove unused print_wp function
12 years ago
Randy Mackay
5e2fc32410
Copter: remove unused cli wp report
12 years ago
Randy Mackay
e2495b7a49
Copter: alphabetise order of cli setup menu
12 years ago
Randy Mackay
a0c8bf238e
Copter: move motors test to test menu
...
Also allow test to be run from mission planner's cli window
12 years ago