Andrew Tridgell
b30fa6535b
HAL_PX4: support reboot
2013-01-03 19:34:36 +11:00
Andrew Tridgell
c6c336a6e8
HAL_PX4: implement peek() and available()
...
keep a 1 byte buffer
2013-01-03 17:27:53 +11:00
Andrew Tridgell
cc7f4353b4
HAL_PX4: update simple example
2013-01-03 13:17:32 +11:00
Andrew Tridgell
b0f1ceb76b
HAL_PX4: removed some files not needed any more
2013-01-03 13:17:11 +11:00
Andrew Tridgell
d9d5eb52bf
HAL_PX4: use fd IO instead of stdio
...
this allows for hal console output from within timers, which is very
handy for debugging
2013-01-03 13:16:41 +11:00
Andrew Tridgell
c6305b5876
HAL_PX4: rework Scheduler using hrt calls
...
thanks to Julian Oes for the suggestion
2013-01-03 13:15:57 +11:00
Andrew Tridgell
9373a4e5b3
HAL_PX4: added a uartA driver
...
uses stdin/stdout for IO
2013-01-03 11:03:05 +11:00
Andrew Tridgell
2294acc652
AC_PID: fixed build on ARM
2013-01-02 22:09:02 +11:00
Andrew Tridgell
e7dea077b4
AP_Motors: fixed example sketch
2013-01-02 22:02:46 +11:00
Andrew Tridgell
5053fb8acc
HAL_PX4: implement atomic operations
2013-01-02 21:45:17 +11:00
Andrew Tridgell
5a70f3becf
HAL_PX4: added a scheduler implementation
2013-01-02 21:39:26 +11:00
Andrew Tridgell
e25e500516
AP_HAL: fixed SPI3 Semaphores.h
2013-01-02 21:07:25 +11:00
rmackay9
45b6dbf580
AP_Limit: small fixes to make parameter descriptions appear in mission planner
2013-01-02 18:50:03 +09:00
rmackay9
cf409abc63
AP_Mount: add parameter descriptions
2013-01-02 16:47:39 +09:00
rmackay9
e594f18b75
AP_InertialSensor: added parameter descriptions
2013-01-02 16:32:43 +09:00
Andrew Tridgell
a3c26d44e4
AP_HAL: rename Sempahore.h to Semaphores.h
...
this is needed to allow build on MacOS, as its case-insensitive
filesystem picks up the NuttX semaphore.h
2013-01-02 18:22:13 +11:00
rmackay9
55e6544e64
AP_InertialNav: added parameter descriptions
2013-01-02 16:17:00 +09:00
rmackay9
bf77a0f2e4
AP_Compass: added parameter descriptions
2013-01-02 16:08:44 +09:00
rmackay9
9e5861ccaf
AP_AHRS: small fix to parameter comments
2013-01-02 16:08:38 +09:00
rmackay9
77331f6538
AP_AHRS: another attempt at updating the TRIM parameter descriptions
2013-01-02 15:47:59 +09:00
rmackay9
e6c10f4f0b
AP_ARHS: add description to AHRS_TRIM parameters
2013-01-02 15:44:42 +09:00
Andrew Tridgell
374af1cd14
build: change from Arduino.mk to apm.mk
2013-01-02 17:29:37 +11:00
Andrew Tridgell
2ba2e1c279
Derivative: removed reference to DESKTOP_BUILD
2013-01-02 15:40:01 +11:00
Andrew Tridgell
3f6f0b6d79
Oilpan: removed reference to DESKTOP_BUILD
2013-01-02 15:39:41 +11:00
Andrew Tridgell
f91ddf5df9
AP_Motors: removed board type define
2013-01-02 15:27:58 +11:00
Andrew Tridgell
ba1a6eb073
AP_HAL: fixed SITL build
2013-01-02 14:48:15 +11:00
Andrew Tridgell
d0ae51e92a
memcheck: fixed for PX4 build
2013-01-02 14:45:09 +11:00
Andrew Tridgell
f9ab781d57
APM_Control: include AP_Common.h
2013-01-02 14:45:09 +11:00
Andrew Tridgell
456e8bfb6e
AP_Common: include stdlib.h for abs()
2013-01-02 14:45:09 +11:00
Andrew Tridgell
609ef220a6
AP_GPS: more state machine fixes for MTK19 GPS
2013-01-02 14:45:09 +11:00
Andrew Tridgell
ac8fcd5b23
AP_Common: include stdbool.h for ARM
2013-01-02 14:45:09 +11:00
Andrew Tridgell
d6b00bd848
AP_ADC: fixed bool problem on ARM
2013-01-02 14:45:09 +11:00
Andrew Tridgell
d3f154bbae
AP_HAL: include stdbool.h for ARM build
2013-01-02 14:45:09 +11:00
Andrew Tridgell
4764a03aaa
AP_Param: fixed ARM PX4 build
2013-01-02 14:45:09 +11:00
Andrew Tridgell
3ac3aeb1b1
AHRS: fixed build on ARM
2013-01-02 14:45:09 +11:00
Andrew Tridgell
5277dd4b0f
APM_Control: fixed build on ARM
2013-01-02 14:45:09 +11:00
Andrew Tridgell
eb74fddd9f
AP_Math: added global GRAVITY_MSS define
2013-01-02 14:45:08 +11:00
Andrew Tridgell
6901c56a2e
yaw fixup
2013-01-02 14:45:08 +11:00
Andrew Tridgell
583845cc17
ahrs fixup
2013-01-02 14:45:08 +11:00
Andrew Tridgell
5923808526
AP_Relay: allow for no relay pin
2013-01-02 14:45:08 +11:00
Andrew Tridgell
3a762f891e
AP_Param: fixup for ARM compiler
2013-01-02 14:45:08 +11:00
Andrew Tridgell
1b0670e67c
AHRS: fixup for ARM compiler
2013-01-02 14:45:08 +11:00
Andrew Tridgell
d55acbc00a
AP_YawController: fixup for ARM compiler
2013-01-02 14:45:08 +11:00
Andrew Tridgell
f7939ad179
AP_Relay: allow relay object in SITL
2013-01-02 10:19:43 +11:00
Andrew Tridgell
8d901b3f5a
HAL_AVR: fixed a warning
2013-01-02 10:19:28 +11:00
Andrew Tridgell
c980b32319
GPS: fixed state machine logic errors in MTK19 driver
2013-01-02 10:12:55 +11:00
Andrew Tridgell
8c0d1d7084
GPS: fixed MTK19 driver for AP_HAL merge
2013-01-02 09:55:37 +11:00
rmackay9
92e271e517
AP_InertialNav: increase baro delay to 0.5 sec (was 0.2sec) to allow slower baro updates on APM1
2013-01-02 09:55:37 +11:00
rmackay9
af4d998697
AP_InertialNav: correct lat/lon to cm
2013-01-02 09:55:37 +11:00
Sandro Benigno
6abe1fe94f
AP Camera changes required to work with modified AP_Relay lib.
2013-01-02 09:55:37 +11:00
Andrew Tridgell
0b2960e504
fixup relay merge
2013-01-02 09:55:37 +11:00
Sandro Benigno
cc7f26a99b
New Relay class and the subclasses for APM1 and APM2.
...
Updated AP_Camera class.
2013-01-02 09:31:32 +11:00
Craig@3DR
2de676306e
Improved parsing in auto detect
2013-01-02 09:24:31 +11:00
Craig@3DR
8cfefbc275
Updated rev number in driver
2013-01-02 09:22:21 +11:00
rmackay9
b8b17a4a70
ArduCopter: added AP_PerfMon library
2013-01-02 09:20:08 +11:00
rmackay9
bd0e018ca0
ArduCopter: restore auto-trim method but now use AHRS.add_trim
2013-01-02 09:20:08 +11:00
rmackay9
37b56662bd
AP_InertialNav: Jason's bug fix to inertial nav velocity and position calculations
2013-01-02 09:19:39 +11:00
rmackay9
120b494d83
Filter: #include AP_Buffer.h no longer needed now that completementary filter has been moved to InertialNav library
2013-01-02 09:19:39 +11:00
rmackay9
3aca61cefb
AP_Motors: remove unnecessary opposite_motor array (no longer needed with new stability patch)
2013-01-02 09:19:17 +11:00
rmackay9
41cc1c74d8
AP_InertialNav: increase time constant for Z axis to 7 seconds
2013-01-02 09:19:17 +11:00
rmackay9
a76aec675a
AP_InertialSensor: resolved compile warning re uninitialised variable
2013-01-02 09:18:03 +11:00
rmackay9
90d7f00965
AP_GPS_MTK16: saved 22 bytes of ram by moving error message into program space.
...
Perhaps there's no point in writing an error message to a console that likely nobody will be viewing anyway.
2013-01-02 09:18:03 +11:00
rmackay9
811550cca6
AP_GPS_MTK19: small bug fix re "==" vs "="
...
Also saved 22 bytes of RAM by moving error message into program space.
2013-01-02 09:16:48 +11:00
Craig@3DR
f778961acf
Added support for Mediatek firmware Rev 1.9
2013-01-02 09:16:47 +11:00
rmackay9
557f4e65de
AP_InertialNav: small performance improvement by replacing mul_transpose with direct multiplication of Z axis accel correction to specific elements of dcm
2013-01-02 09:12:40 +11:00
rmackay9
1f7614929f
AP_AHRS: save trim to eeprom when set_trim is called
2013-01-02 09:12:17 +11:00
rmackay9
e9fa5dec0f
AP_InertialNav: make use of ahrs library's get_accel_ef method to save some cpu cycles
2013-01-02 09:11:25 +11:00
rmackay9
1c08f176ea
AP_AHRS: add get_accel_ef method to return earth frame accelerometer values for use in ArduCopter's inertial nav and accel based throttle
2013-01-02 09:11:25 +11:00
Andrew Tridgell
18581d0220
HAL_AVR: change order of CS pin init - fixes APM2 boot problem
...
We now init the MPU6k CS pin before the MS5611 CS pin. This should not
matter at all, but it turns out that it solves the APM2 boot
problem. We should investigate why, as this may indicate an electrical
problem.
Pair-Programmed-With: Pat Hickey
2013-01-02 08:55:47 +11:00
Andrew Tridgell
57bf6531b4
Progmem: use right CONFIG_HAL_BOARD #ifdefs
2013-01-01 18:26:12 +11:00
Andrew Tridgell
da10e68e87
HAL_PX4: added basic console driver (output only)
2013-01-01 18:19:18 +11:00
Andrew Tridgell
0ef003a45f
AP_HAL: added PX4 board support
2012-12-30 20:02:45 +11:00
Andrew Tridgell
24a291cf66
HAL_AVR: only build on APM boards
2012-12-30 20:02:45 +11:00
Andrew Tridgell
b41440175f
HAL_PX4: started on new PX4 HAL structures
2012-12-30 20:02:45 +11:00
Andrew Tridgell
0adc4afcb5
InertialSensor: add reboot option in MPU6000 test
2012-12-27 21:29:00 +11:00
Andrew Tridgell
212728be34
InertialSensor: ensure MPU6000 is out of sleep mode before configuring
...
the MPU6000 starts in sleep mode, and can take a while to wakeup
2012-12-27 21:28:41 +11:00
Andrew Tridgell
091c14a33e
SITL: disabled buffering on stdout
...
this fixes the ArduPlane log dump
2012-12-24 08:00:57 +11:00
Andrew Tridgell
0186fabb3b
build: allow building with the "Empty" HAL
...
useful for porting
2012-12-24 07:30:50 +11:00
Andrew Tridgell
122b8716a7
InertialSensor: added auto reset of MPU6000 on startup failure
...
this works around the problem of the MPU6000 failing to come up on DTR
reset or warm reboot
2012-12-24 07:17:03 +11:00
Andrew Tridgell
44ad850542
InertialSensor: latch the data ready pin high on new data
...
this ensures we don't miss a sample due to another source of delay
2012-12-23 17:46:36 +11:00
Andrew Tridgell
fcb09c3993
InertialSensor: fixed example app for new syntax
2012-12-23 12:49:34 +11:00
Andrew Tridgell
e2edad8a3f
InertialSensor: fixed last sample time in MPU6000
...
we lost this in the final work on the DTR bug
2012-12-23 08:59:35 +11:00
Andrew Tridgell
feb11f0bc9
PX4: mark example as nobuild for now
2012-12-22 14:40:10 +11:00
Andrew Tridgell
e7b915b0f4
AP_Math: fixed error comment
2012-12-22 12:52:42 +11:00
Andrew Tridgell
463a089e5c
InertialNav: fixed example build
2012-12-22 12:50:31 +11:00
Andrew Tridgell
c3dc23d295
AP_HAL: fixed warning in progmem
2012-12-22 09:49:19 +11:00
Andrew Tridgell
1a53bc783c
InertialSensor: poll data ready pin instead of an interrupt for MPU6k
2012-12-22 09:16:31 +11:00
Pat Hickey
563ca3f79b
AP_HAL_AVR: expose gpio pin 70 for mpu6000 interrupt input
2012-12-22 09:11:14 +11:00
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
Andrew Tridgell
7d27e420ae
AP_HAL: remove unnecessary Arduino.h includes
2012-12-20 14:52:30 +11:00
Andrew Tridgell
6a56f72918
Build: added empty Arduino.h
2012-12-20 14:52:30 +11:00
Andrew Tridgell
98ead51801
SITL: fill in a lot more of the AP_HAL SITL backend
2012-12-20 14:52:30 +11:00
Andrew Tridgell
4a54ffb523
Baro: use local include to reduce boilerplate
2012-12-20 14:52:30 +11:00
Andrew Tridgell
d473203737
Build: added global board targets
2012-12-20 14:52:30 +11:00
Pat Hickey
3cc204321c
AP_Motors_Class: add Progmem typedef
2012-12-20 14:52:30 +11:00
Pat Hickey
8d0c56a19a
AP_Curve: put template in cpp file
...
* required for the new funny way avr-gcc 4.7 does PSTR.
2012-12-20 14:52:30 +11:00
Pat Hickey
6ea38432b9
AP_Progmem_AVR: prog_char typedef was deprecated in avr-gcc 4.7, add compat def
2012-12-20 14:52:30 +11:00
Pat Hickey
3e3c0f57ae
AP_HAL_Empty: started building out the scaffolding
2012-12-20 14:52:30 +11:00
Pat Hickey
b79bd01761
SPIDriver: namespace explicit to better permit copypasta
2012-12-20 14:52:30 +11:00
Pat Hickey
527dfb5af4
AP_HAL: remove EmptyUARTDriver
2012-12-20 14:52:30 +11:00
Pat Hickey
63eb1dc85d
AP_HAL_AVR_SITL: separate header for AP_HAL_MAIN and Private
2012-12-20 14:52:30 +11:00
Pat Hickey
07be511f5e
AP_HAL_AVR: move AP_HAL_MAIN into separate header
2012-12-20 14:52:30 +11:00
Pat Hickey
d18b9feaa1
AP_HAL: add HAL_BOARD_EMPTY to AP_HAL_BOARDS
2012-12-20 14:52:30 +11:00
Pat Hickey
104ad8f6c8
AP_Menu: save a little ram by reducing MENU_ARGS_MAX to 3
...
* we only ever use 3 in arducopter's gyro gain setup
2012-12-20 14:52:29 +11:00
Andrew Tridgell
af12c18dea
AP_Param: setup var_info and num_vars earlier
...
needed for AP_HAL startup
2012-12-20 14:52:29 +11:00
Andrew Tridgell
8916b280fd
SITL: filled in more of the HAL SITL backend
2012-12-20 14:52:29 +11:00
Andrew Tridgell
e10e3ee3be
AP_HAL: fixed argv declaration to match getopt()
2012-12-20 14:52:29 +11:00
Andrew Tridgell
964bc56aa2
DataFlash: reinstate SITL dataflash code
2012-12-20 14:52:29 +11:00
Andrew Tridgell
18824c7ef5
AP_HAL: expose argc/argv in hal.init()
...
used for SITL port
2012-12-20 14:52:29 +11:00
Pat Hickey
ddafd4ffbb
memcheck: need AP_HAL_Boards import for CONFIG_HAL_BOARD configs to make sense
...
* with great programming in c preprocessor comes great responsibility
2012-12-20 14:52:29 +11:00
Pat Hickey
d93d932831
ArduCopter: defines fixes
...
Conflicts:
libraries/AP_Common/Arduino.mk
2012-12-20 14:52:28 +11:00
Pat Hickey
f060df9747
AP_HAL_AVR: now that we can detect the APM revision, use wdt reboot on apm2
2012-12-20 14:52:28 +11:00
Pat Hickey
7622b725c9
AP_Limits: fixes to use hal.storage for eeprom access
2012-12-20 14:52:28 +11:00
Pat Hickey
b0b3fa33b4
AP_Limits: fix for AP_Param var_info registration in AP_Limit_Module
...
* AP_Limit_Module class does not have its own var_info table.
2012-12-20 14:52:28 +11:00
Pat Hickey
304afd45e1
AP_Limits: export all internal headers from AP_Limits.h
2012-12-20 14:51:40 +11:00
Pat Hickey
f1869d1aa6
AP_GPS: GPS_406_test ported to AP_HAL
2012-12-20 14:51:40 +11:00
Pat Hickey
4c5aaef245
removed AP_PID test, deprecated and forgotten
2012-12-20 14:51:40 +11:00
Pat Hickey
308281f252
DataFlash_test ported to AP_HAL
2012-12-20 14:51:40 +11:00
Pat Hickey
a28c614fbe
remove RC_Channel2 test sketch: deprecated by AP_HAL
2012-12-20 14:51:40 +11:00
Andrew Tridgell
c4b8959202
DataFlash: added SITL headers
2012-12-20 14:51:40 +11:00
Pat Hickey
a4fdfd999c
remove AP_RangeFinder_test: deprecated by AP_HAL
2012-12-20 14:51:40 +11:00
Pat Hickey
d6cb240468
AP_GPS: GPS_NMEA_test ported to AP_HAL
...
* I wasn't able to demonstrate the library/test sketch working with my
ublox gps.
2012-12-20 14:51:40 +11:00
Andrew Tridgell
d42cbb791f
HAL_SITL: start filling in more of SITL framework
2012-12-20 14:51:40 +11:00
Andrew Tridgell
1342a82ba7
HAL_AVR: catch atomic nesting errors
2012-12-20 14:51:40 +11:00
Andrew Tridgell
e57834d763
DataFlash: added SITL header
2012-12-20 14:51:40 +11:00
Andrew Tridgell
551ff0c8b8
AP_HAL_AVR: prevent build of AVR code on non-AVR platforms
2012-12-20 14:51:40 +11:00
Andrew Tridgell
9b15d0e714
Build: update makefile for SITL build
2012-12-20 14:51:40 +11:00
Andrew Tridgell
2c1682f310
InertialSensor: use AP_HAL progmem
2012-12-20 14:51:39 +11:00
Andrew Tridgell
7582c882e6
Motors: updates for new AP_Param API
2012-12-20 14:51:39 +11:00
Andrew Tridgell
9d1f43928c
Mount: updates for new AP_Param API
2012-12-20 14:51:39 +11:00
Andrew Tridgell
f393389db2
Progmem: removed desktop specific progmem handling
2012-12-20 14:51:39 +11:00
Andrew Tridgell
9b3ed0b683
AP_Limits: updates for new AP_Param API
2012-12-20 14:51:39 +11:00
Andrew Tridgell
265707401f
memcheck: fix for new HAL_SITL
2012-12-20 14:51:39 +11:00
Andrew Tridgell
fc8bd8cf95
SITL: updates for new AP_Param API
2012-12-20 14:51:39 +11:00
Andrew Tridgell
306d53b4ae
PID: updates for new AP_Param API
2012-12-20 14:51:39 +11:00
Andrew Tridgell
cead629fc4
Filter: fixed merge error
2012-12-20 14:51:39 +11:00
Andrew Tridgell
4aa16303ed
RC_Channel: updates for new AP_Param API
2012-12-20 14:51:39 +11:00
Andrew Tridgell
c064becf28
AP_InertialSensor: updates for new AP_Param API
2012-12-20 14:51:39 +11:00
Andrew Tridgell
62e396167a
AP_InertialNav: updates for new AP_Param API
2012-12-20 14:51:39 +11:00
Andrew Tridgell
18fb9c67f6
AP_GPS: use AP_Progmem
2012-12-20 14:51:39 +11:00
Andrew Tridgell
69af1add15
Declination: fixes for AP_HAL progmem interface
2012-12-20 14:51:38 +11:00
Andrew Tridgell
c181498e36
Compass: updates for new AP_Param API
2012-12-20 14:51:38 +11:00
Andrew Tridgell
53470aff09
AP_Camera: updates for new AP_Param API
2012-12-20 14:51:38 +11:00
Andrew Tridgell
dbd9814327
AP_Baro: get rid of apm2_hardware parameter in init
2012-12-20 14:51:38 +11:00
Andrew Tridgell
cafeaf91d6
AP_Baro: updates for new AP_Param API
2012-12-20 14:51:38 +11:00
Andrew Tridgell
b5a23d934b
Airspeed: updates for new AP_Param API
2012-12-20 14:51:38 +11:00
Andrew Tridgell
5c148153ac
AP_AHRS: updates for new AP_Param API
2012-12-20 14:51:38 +11:00
Andrew Tridgell
a18298ed76
APM_PI: updates for new AP_Param API
2012-12-20 14:51:38 +11:00
Andrew Tridgell
e45f32a4b6
APM_OBC: updates for new AP_Param API
2012-12-20 14:51:38 +11:00
Andrew Tridgell
9349259487
AC_PID: updates for new AP_Param API
2012-12-20 14:51:38 +11:00
Andrew Tridgell
5a9ba4aeb4
APM_Control: updates for new AP_Param API
2012-12-20 14:51:38 +11:00