Commit Graph

2748 Commits

Author SHA1 Message Date
Pat Hickey
1678dcc6f0 AP_HAL: GPIO INTERRUPT defines 2012-12-22 09:11:11 +11:00
Andrew Tridgell
93040e5725 AP_HAL: removed the defer_timer_process() function
this is now unused
2012-12-21 20:01:42 +11:00
Andrew Tridgell
9548e7e79e InertialSensor: simplify the data_ready interrupt handling
this avoids using the defer process code, and fixes a nasty bug that
caused the APM to lockup on reset
2012-12-21 20:01:19 +11:00
Andrew Tridgell
c5ba33d39a AP_Baro: fixed MS5611 semaphore handling 2012-12-21 19:33:57 +11:00
Andrew Tridgell
47358929e2 HAL_AVR: fixed attach_interrupt race condition 2012-12-21 19:33:57 +11:00
Andrew Tridgell
8d47a739a1 SITL: fixed a return value in snprintf functions 2012-12-20 22:46:22 +11:00
Andrew Tridgell
cd430cb6a8 RC_Channel: added no_deadzone version of set_pwm() 2012-12-20 22:41:58 +11:00
Andrew Tridgell
f504e2ec67 InertialSensor: removed sample rate in example
not needed any more
2012-12-20 15:16:43 +11:00
Andrew Tridgell
9931009db2 Math: use pythagorous2() in some more places 2012-12-20 15:16:18 +11:00
Andrew Tridgell
13ea0bb5d8 AP_Camera: disable relay on APM2 2012-12-20 14:53:24 +11:00
Andrew Tridgell
4a6b46c661 AP_GPS: fixed multiple GPS detection bug 2012-12-20 14:53:24 +11:00
Andrew Tridgell
fb4540a349 DataFlash: disable some debug code 2012-12-20 14:53:24 +11:00
Andrew Tridgell
f549950a9c AP_GPS: remove some debug code 2012-12-20 14:53:23 +11:00
Andrew Tridgell
3aa39da6cd AP_Baro: removed some debug code 2012-12-20 14:53:23 +11:00
Andrew Tridgell
e282554035 AHRS: removed some debug code 2012-12-20 14:53:23 +11:00
Andrew Tridgell
a180437028 AP_Compass: disable auto-declination on 1280
this saves a few k of flash space
2012-12-20 14:53:23 +11:00
Andrew Tridgell
60d3df50ae AP_HAL: changed delay() to take a uint16_t
this allows for up to 32 second delays, and saves a bit of flash space
2012-12-20 14:53:23 +11:00
Andrew Tridgell
d8bed0c2aa AP_Math: fixed get_distance() function 2012-12-20 14:53:23 +11:00
Pat Hickey
6437bd3a08 AP_InertialSenor MPU6000 test: fixed for user interact changes 2012-12-20 14:53:23 +11:00
Pat Hickey
9055681b3a AP_InertialSensor: use AP_InertialSensor_UserInteract
* permits polymorphic user interaction, so we can plug in a
  pure mavlink interface
2012-12-20 14:53:23 +11:00
Pat Hickey
a2cf47e769 AP_InertialSensor: start implementing UserInteract
* untested implementation in terms of BetterStream
2012-12-20 14:53:23 +11:00
Pat Hickey
b2d69e6a8c AP_HAL_Empty: betterstreams get vprintfs 2012-12-20 14:53:23 +11:00
Pat Hickey
823efc4734 AP_HAL_AVR_SITL: implement BetterStream's vprintf methods 2012-12-20 14:53:22 +11:00
Pat Hickey
1ed6a49a7a AP_HAL_AVR: implementation for each BetterStream vprintf
* had to rename the utility vprintf function calls to print_vprintf
  to make the naming work.
2012-12-20 14:53:22 +11:00
Pat Hickey
7681fef988 AP_HAL: BetterStream gets vprintf and vprintf_P methods 2012-12-20 14:53:22 +11:00
Pat Hickey
ec8f08d743 AP_HAL_AVR_SITL: rename vprintf utility to print_vprintf 2012-12-20 14:53:22 +11:00
Pat Hickey
5ab4e57673 AP_HAL_AVR: rename vprintf function to print_vprintf
* because it takes an AP_HAL::Print
2012-12-20 14:53:22 +11:00
Pat Hickey
1b0bde2779 AP_HAL_AVR: rename vprintf files to print_vprintf 2012-12-20 14:53:22 +11:00
Andrew Tridgell
bada70d871 InertialSensor: fixed example build on 1280 2012-12-20 14:53:22 +11:00
Andrew Tridgell
8a70e173a7 AP_HAL: restrict build to right board type 2012-12-20 14:53:22 +11:00
Andrew Tridgell
3c0440b0b4 Math: use common degrees() and radians() functions 2012-12-20 14:53:22 +11:00
Andrew Tridgell
7277d4934d AP_InertialSensor: move constructor into cpp 2012-12-20 14:53:22 +11:00
Andrew Tridgell
ceb3f577d8 libraries: use new math functions 2012-12-20 14:53:22 +11:00
Andrew Tridgell
a072afa223 AP_Math: expand some macros into functions
this saves some flash
2012-12-20 14:52:38 +11:00
Andrew Tridgell
a1187519a8 AP_HAL: use AP_HAL_BOARD_DRIVER in remaining test sketches 2012-12-20 14:52:37 +11:00
Pat Hickey
4c715bfd04 AP_HAL_AVR_SITL: add Util driver, fix deprecated deps on HAL_AVR.h 2012-12-20 14:52:37 +11:00
Pat Hickey
771f2a3acf AP_HAL_Empty: add Util driver 2012-12-20 14:52:37 +11:00
Pat Hickey
f9eff068f9 AP_HAL_AVR: UtilityStringTest added 2012-12-20 14:52:37 +11:00
Pat Hickey
defc539e57 AP_HAL_AVR: implement string Utils in terms of existing vprintf 2012-12-20 14:52:37 +11:00
Pat Hickey
b3abe89989 AP_HAL_AVR: add Util stubs 2012-12-20 14:52:37 +11:00
Pat Hickey
0d702045b8 AP_HAL: Add Util member for string utilities 2012-12-20 14:52:37 +11:00
Pat Hickey
372c0074b1 AP_HAL_AVR: remove old style HAL_AVR classes (deprecated) 2012-12-20 14:52:37 +11:00
Andrew Tridgell
2679eabdef Cleanup: removed unused AP_GPS_IMU 2012-12-20 14:52:37 +11:00
Andrew Tridgell
678c281f78 Cleanup: removed unused AP_Navigation 2012-12-20 14:52:37 +11:00
Andrew Tridgell
32afc3f9ae Filter: fixed example warnings 2012-12-20 14:52:36 +11:00
Andrew Tridgell
29f5e346c2 Menu: fixed example warnings 2012-12-20 14:52:36 +11:00
Andrew Tridgell
a76688e630 Math: fixed example warnings 2012-12-20 14:52:36 +11:00
Andrew Tridgell
b8843489be HAL_AVR: fixed example warnings 2012-12-20 14:52:36 +11:00
Andrew Tridgell
b673320f72 ADC: fixed example warnings 2012-12-20 14:52:36 +11:00
Andrew Tridgell
22ada8b9c3 RC_Channel: fixed example build 2012-12-20 14:52:36 +11:00
Andrew Tridgell
62bfded26c PID: fixed example build 2012-12-20 14:52:36 +11:00
Andrew Tridgell
393455cdbb RangeFinder: fixed example build 2012-12-20 14:52:36 +11:00
Andrew Tridgell
b06e072c87 AP_InertialSensor: fixed example build 2012-12-20 14:52:36 +11:00
Andrew Tridgell
c15eb97c8d AP_Baro: fixed example build 2012-12-20 14:52:36 +11:00
Andrew Tridgell
bd2a733a6b HAL_Empty: allow example build for other backends 2012-12-20 14:52:36 +11:00
Andrew Tridgell
8beaec61a8 AP_GPS: fixed build for new syntax 2012-12-20 14:52:36 +11:00
Pat Hickey
eb530b86e8 move Arduino.mk to /mk/Arduino.mk 2012-12-20 14:52:35 +11:00
Andrew Tridgell
44f860e102 InertialSensor: fixed some compiler warnings 2012-12-20 14:52:35 +11:00
Andrew Tridgell
fc66f5594f AHRS: allow AHRS test to build with SITL 2012-12-20 14:52:34 +11:00
Andrew Tridgell
7ecf8981b9 SITL: added dummy SPI and make RCInput 50Hz 2012-12-20 14:52:34 +11:00
Andrew Tridgell
e020694c03 SITL: fixed build of apm1/apm2 target 2012-12-20 14:52:34 +11:00
Andrew Tridgell
4cff98dcae AP_HAL: added AP_HAL_BOARD_DRIVER define
this makes example sketches easier to read
2012-12-20 14:52:33 +11:00
Andrew Tridgell
abbe37be37 SITL: added emulated airspeed sensor on a pin 2012-12-20 14:52:33 +11:00
Andrew Tridgell
46f7c9e92b SITL: added basic analogin implementation 2012-12-20 14:52:33 +11:00
Andrew Tridgell
472b45bc2a SITL: fixed use of local printf() method in UART driver 2012-12-20 14:52:33 +11:00
Andrew Tridgell
7be507948f SITL: added SITL_State::loop_hook()
this prevents us using so much CPU time, and ensures stdout is flushed
2012-12-20 14:52:33 +11:00
Andrew Tridgell
69bebbcaf8 SITL: removed old SITL code 2012-12-20 14:52:33 +11:00
Andrew Tridgell
0c9d37e2ee SITL: added RCInput and RCOutput 2012-12-20 14:52:33 +11:00
Andrew Tridgell
28f0ce6185 Build: use -O0 for SITL 2012-12-20 14:52:33 +11:00
Andrew Tridgell
dcc17dad94 SITL: added panic() method in scheduler 2012-12-20 14:52:33 +11:00
Andrew Tridgell
475496cee2 Revert "Arduino.mk: use target variables rather than recursive make for apm1, apm2.."
This reverts commit fcd58cc1d7892bb8b45db75c35e1bdccaa2d47bb.

still doesn't work ...
2012-12-20 14:52:33 +11:00
Andrew Tridgell
975506c840 Build: add debugging in SITL build 2012-12-20 14:52:33 +11:00
Andrew Tridgell
448fc6719f HAL_Empty: fixed return in dataflash 2012-12-20 14:52:33 +11:00
Andrew Tridgell
6627e7ea0e HAL_Empty: fixed I2CDriver declaration 2012-12-20 14:52:33 +11:00
Andrew Tridgell
5f7f6966af SITL: fixed GPS and UART startup 2012-12-20 14:52:32 +11:00
Andrew Tridgell
334b96b375 SITL: switched to empty driver for unimplemented backends 2012-12-20 14:52:32 +11:00
Andrew Tridgell
18db7b2efd GPS: move _port setting to init()
this is needed to avoid constructor ordering dependencies
2012-12-20 14:52:32 +11:00
Pat Hickey
107ab1a694 AP_Baro: translated to SPI transactions 2012-12-20 14:52:32 +11:00
Pat Hickey
b502732249 AP_InertialSensor: rewrite basic code for spi device transactions
* I'm not touching that DMP stuff because I'm pretty convinced it should
  instead be deprecated
2012-12-20 14:52:32 +11:00
Pat Hickey
3153105682 AP_HAL_AVR: spi transaction handle null RX properly 2012-12-20 14:52:32 +11:00
Pat Hickey
992de8c2b9 AP_ADC_ADS7844: changed to use spidevicedriver transaction 2012-12-20 14:52:32 +11:00
Pat Hickey
b43b003777 AP_ADC: fix typo in test 2012-12-20 14:52:32 +11:00
Pat Hickey
5c1e7abf0e AP_HAL_Empty: add spi driver transaction 2012-12-20 14:52:32 +11:00
Pat Hickey
4fe889c9c5 AP_HAL_AVR: Implement bulk SPI transaction 2012-12-20 14:52:32 +11:00
Pat Hickey
d2f7402243 AP_HAL: add bulk transaction to SPIDeviceDriver 2012-12-20 14:52:32 +11:00
Pat Hickey
087b1fa196 AP_HAL_AVR: AnalogIn returns new ADCSource each time a channel is requested
* fixes a bug where multiple sources created as pin -1, then change to
  appropriate pin on mavlink messages. Make treat each creation as distinct
  object.
2012-12-20 14:52:32 +11:00
Pat Hickey
d5a46ca1e3 AP_ADC: uses scheduler panic 2012-12-20 14:52:32 +11:00
Pat Hickey
d92e8045c1 AP_Baro: uses scheduler panic 2012-12-20 14:52:31 +11:00
Pat Hickey
2c2279722b AP_Baro_MS5611: use scheduler panic 2012-12-20 14:52:31 +11:00
Pat Hickey
a4f41c1d29 AP_InertialSensor: MPU6000 uses scheduler panic 2012-12-20 14:52:31 +11:00
Pat Hickey
90670cb499 AP_HAL_AVR: panic in spidevice0 2012-12-20 14:52:31 +11:00
Pat Hickey
885fc79af5 AP_HAL_Empty: add panic method to scheduler 2012-12-20 14:52:31 +11:00
Pat Hickey
9656b0ad0e AP_HAL_AVR: add panic method to scheduler 2012-12-20 14:52:31 +11:00
Pat Hickey
c86004d676 AP_HAL: Add panic method to scheduler 2012-12-20 14:52:31 +11:00
Pat Hickey
8fe3c5e5d6 Arduino.mk: use target variables rather than recursive make for apm1, apm2.. 2012-12-20 14:52:31 +11:00
Pat Hickey
76dabef7d6 AP_HAL_Empty: fix public declaration for i2cdriver 2012-12-20 14:52:31 +11:00
Pat Hickey
eda450a166 AP_HAL: I2CDriver bug fixed for pure virtual base class 2012-12-20 14:52:31 +11:00
Pat Hickey
de6f9e52b2 AP_HAL_Empty: finished up scaffolding 2012-12-20 14:52:31 +11:00
Pat Hickey
4c930b77a4 DataFlash_Empty defined 2012-12-20 14:52:31 +11:00
Pat Hickey
b7cd4312f3 AP_HAL_Empty: more scaffolding complete 2012-12-20 14:52:31 +11:00