Andrew Tridgell
848fc3e32d
AP_AHRS: added AHRS_ORIENTATION parameter
2013-01-13 17:32:48 +11:00
Andrew Tridgell
d7996acdf7
AP_InertialSensor: added set_board_orientation() method
2013-01-13 17:32:48 +11:00
Andrew Tridgell
60a4447a86
AP_Compass: added set_board_orientation() method
2013-01-13 17:32:48 +11:00
Andrew Tridgell
8015f0f626
DataFlash: update SITL implementaion for new API
2013-01-13 17:31:43 +11:00
Andrew Tridgell
9ef1f8509b
DataFlash: update test code for new macros
2013-01-13 17:31:42 +11:00
Andrew Tridgell
83b074dd87
DataFlash: moved macros into common header
2013-01-13 17:31:42 +11:00
Andrew Tridgell
f3005c4267
DataFlash: use bulk SPI transfer() method
...
this reduces the per-byte overhead of flash logging to about 3.9 usec
2013-01-13 17:31:42 +11:00
Andrew Tridgell
a06202e750
HAL_SMACCM: added bulk SPI transfer() method
2013-01-13 17:31:42 +11:00
Andrew Tridgell
3dc0a990a1
HAL_Empty: added bulk SPI transfer() method
2013-01-13 17:31:42 +11:00
Andrew Tridgell
b5b7fd2f9a
HAL_AVR: added bulk transfer() method
...
this is quite a lot faster than the byte at a time method
2013-01-13 17:31:42 +11:00
Andrew Tridgell
6415f00ce3
AP_HAL: added a bulk transfer() method
...
very useful for dataflash
2013-01-13 17:31:42 +11:00
Pat Hickey
af8f576c67
AP_HAL_SMACCM: add LICENSE file
2013-01-12 11:54:19 -08:00
Pat Hickey
3d0a4394b6
DataFlash Empty: conform to blockread/write virtual if
2013-01-12 10:44:05 -08:00
Andrew Tridgell
7274d847f8
DataFlash: update for new block API
2013-01-12 17:21:21 +11:00
Andrew Tridgell
28a0ba6c4a
DataFlash: added block based dataflash writes
...
these are about 10x faster than the old writes
2013-01-12 17:21:04 +11:00
Andrew Tridgell
252d11ccfa
AP_GPS: initialise _step to zero in all drivers
...
new() does not zero-fill memory
2013-01-12 16:04:23 +11:00
Andrew Tridgell
64734dc51c
AP_Scheduler: show scheduler task slips
...
this is when a task doesn't run at the desired rate
2013-01-12 13:04:52 +11:00
Andrew Tridgell
1cb64dacf9
AP_Scheduler: expose debug variable
2013-01-12 12:06:55 +11:00
Andrew Tridgell
7ddadcf34e
AP_Scheduler: added new scheduler library
...
this will be used for main loop control
2013-01-12 12:02:57 +11:00
Andrew Tridgell
30b50a858d
Filter: fixed a warning on PX4
2013-01-11 21:17:34 +11:00
Andrew Tridgell
6142eac4b4
AP_InertialSensor: simplify get_delta_time() API
...
use a single float return rather than two APIs.
This also changes the MPU6k driver to match the new 2.9 behaviour of
using the MPU6k sample timing instead of micros()
2013-01-11 21:17:21 +11:00
Andrew Tridgell
7c7a215934
HAL_PX4: fixes for new Scheduler API
2013-01-11 12:25:26 +11:00
Andrew Tridgell
2fe4656a50
Merge pull request #4 from GaloisInc/master
...
Thanks Pat!
2013-01-10 17:24:59 -08:00
Andrew Tridgell
6aecdb3d7d
HAL_AVR: tweak the default serial buffer sizes
...
this reduces memory fragmentation a lot, saving memory
2013-01-11 11:16:09 +11:00
Andrew Tridgell
0cb8192861
HAL_AVR: ensure we can handle a 256 size buffer
2013-01-11 10:32:52 +11:00
Andrew Tridgell
cf04935438
HAL_AVR: make Console a direct wrapper of uartA
...
this saves a bunch of memory, and we don't really need separate
console support on AVR
2013-01-11 10:23:51 +11:00
Pat Hickey
7b5153c79b
AP_HAL_AVR_SITL: main calls system_initialized
2013-01-10 14:37:22 -08:00
Pat Hickey
4d5d08ad10
AP_HAL_Empty: main calls system_initialized
2013-01-10 14:37:07 -08:00
Pat Hickey
2b621dc579
AP_HAL_AVR: main calls system_initialized
2013-01-10 14:36:53 -08:00
James Bielman
25d078e2bd
AP_Baro_MS5611: Don't panic if taking semaphore fails during init.
...
- The MPU6000 holds on to the I2C semaphore for quite some time during
init, which caused a panic when the MS5611 is also on I2C.
2013-01-10 14:22:41 -08:00
James Bielman
edfddbab57
AP_HAL_SMACCM: Implement new scheduler methods.
...
- Set the system initialized after call to "setup" in main.
2013-01-10 14:22:15 -08:00
Pat Hickey
910e09fc96
AP_InertialSensor_MPU6000: fix sync/async semaphore usage with new scheduler
2013-01-10 14:12:19 -08:00
Pat Hickey
83adb72f16
AP_HAL_Empty: Stub out new Scheduler methods
2013-01-10 14:07:44 -08:00
Pat Hickey
a228519b18
AP_HAL_AVR_SITL: Implement new Scheduler methods
2013-01-10 14:07:43 -08:00
Pat Hickey
930a789b25
AP_HAL_AVR: Implement new scheduler methods
2013-01-10 14:07:43 -08:00
Pat Hickey
7a0f95c11c
AP_HAL: add Scheduler methods in_timerprocess, system_initialize
2013-01-10 14:07:43 -08:00
Pat Hickey
6d64bf2921
AP_HAL_SMACCM: Semaphores fixup
2013-01-10 13:52:30 -08:00
James Bielman
9abf3d2c0f
AP_HAL_SMACCM: Panic if taking a semaphore held by current thread.
...
- Catches bugs with attempted recursive semaphore taking.
2013-01-10 13:16:43 -08:00
Andrew Tridgell
ea3b405959
MAVLink: moved CRC table into program
...
this saves 256 bytes of memory
2013-01-10 21:28:07 +11:00
Andrew Tridgell
f3783b0306
AP_GPS: put SIRF init_messages in progmem
...
this saves 32 bytes of memory
2013-01-10 21:27:41 +11:00
Andrew Tridgell
dbad61816b
AP_InertialSensor: only build Oilpan driver on APM1
2013-01-10 21:01:55 +11:00
Andrew Tridgell
2c603a0960
AP_Baro: only build BMP085 driver on APM1
2013-01-10 21:01:07 +11:00
Andrew Tridgell
63634c4e8a
HAL_SMACCM: fixed build warning
2013-01-10 16:29:46 +11:00
Andrew Tridgell
130aaae168
HAL_AVR: switched to 8 bit mask
...
max buffer size is now 256. This makes serial faster
2013-01-10 16:29:34 +11:00
Andrew Tridgell
03b26c7d6d
AP_Motors: fixed setup of ESC update speeds
2013-01-10 15:52:46 +11:00
Pat Hickey
ea6147162a
AP_HAL_SMACCM: fix to goofed PPM_MAX_CHANNELS macro
2013-01-09 17:24:23 -08:00
Pat Hickey
8f5da03f93
AP_HAL_SMACCM: guard compilation on CONFIG_HAL_BOARD
2013-01-09 13:32:34 -08:00
Pat Hickey
59365f1b90
AP_HAL_AVR: UARTDriver guard needs AP_HAL_Boards.h
2013-01-09 13:32:13 -08:00
Pat Hickey
ab5522a20a
AP_HAL_SMACCM: remove meaningless example dir
2013-01-09 13:15:10 -08:00
James Bielman
0160a10ba7
AP_HAL_SMACCM: Increase scheduler stack sizes.
2013-01-09 11:19:51 -08:00
James Bielman
46b0742710
AP_HAL_SMACCM: Fix pin conflict between uartC and I2C.
...
- uartC is currently disconnected.
- Set uartB to USART6 for GPS communication.
2013-01-09 11:19:51 -08:00
James Bielman
7827a4a54a
ArduCopter: Add AP_HAL_SMACCM support.
...
- Added default configuration to "config.h".
- Added main function to run under FreeRTOS with HWF4.
2013-01-09 11:19:51 -08:00
James Bielman
4e0806186f
AP_HAL_SMACCM: Implement RCInput driver.
2013-01-09 11:19:51 -08:00
James Bielman
8e38ef6567
MPU6000: Flip Y and Z axes for SMACCM_HAL.
...
- The accelerometer is upside-down on the PX4FMU vs the APM2.
2013-01-09 11:19:51 -08:00
James Bielman
1309b7332a
MPU6000: Use signed addition when accumulating readings.
...
- Fixes very erratic accel readings on the PX4 board.
2013-01-09 11:19:51 -08:00
Andrew Tridgell
8cb0ed364a
AP_Baro: read 4 pressure values for every temperature value on BMP085
2013-01-09 23:44:26 +11:00
Andrew Tridgell
1ce1fa3864
AP_Baro: update example to use accumulate()
2013-01-09 23:06:24 +11:00
Andrew Tridgell
8ceabc97f1
AP_Baro: added accumulate() function
...
this allows us to read the BMP085 much faster
2013-01-09 23:05:17 +11:00
Andrew Tridgell
8f424cdf21
AP_Compass: ensure we check we got the semaphore
2013-01-09 20:42:20 +11:00
Andrew Tridgell
e76c77e86a
AP_HAL: mark semaphore take operations as WARN_IF_UNUSED
...
this prevents common bugs
2013-01-09 20:42:02 +11:00
Andrew Tridgell
90523ae975
AP_HAL: added WARN_IF_UNUSED macro
...
useful for key functions
2013-01-09 20:41:37 +11:00
Andrew Tridgell
8e1bee3a5e
HAL_AVR: make _taken volatile
2013-01-09 20:33:37 +11:00
Andrew Tridgell
f48790a56e
AP_InertialSensor: poll for new data in num_samples_available()
...
this lowers the latency for new data
2013-01-09 20:31:09 +11:00
Andrew Tridgell
4ab1cddd15
AP_InertialSensor: ensure we always have the SPI semaphore for MPU6k
2013-01-09 20:30:20 +11:00
Andrew Tridgell
9b972af307
AP_Baro: skip timer if we don't get the SPI semaphore
2013-01-09 20:27:48 +11:00
Andrew Tridgell
dc66708856
MAVLink: cope with available() returning -1
2013-01-09 13:31:00 +11:00
Andrew Tridgell
7be1335b3a
AP_Param: removed copy_name() and add token to find_by_index()
...
this allows callers to avoid another var_info traverse
2013-01-09 13:30:51 +11:00
Andrew Tridgell
c9fe7fe932
MAVLink: use buffer send and fast CRC if possible
2013-01-08 14:37:40 -08:00
Andrew Tridgell
df91734883
MAVLink: import latest upstream messages and headers
2013-01-08 14:37:40 -08:00
Andrew Tridgell
feeebae03f
GCS_MAVLink: added comm_send_buffer()
...
this reduces the overhead of sending messages
2013-01-08 14:37:39 -08:00
Andrew Tridgell
7f20f720e8
HAL_AVR: started I2C in high speed mode
...
this speeds up the compass a lot
2013-01-08 14:37:39 -08:00
Andrew Tridgell
c8ae665ac3
AP_Param: added copy_name_token()
...
this avoids an expensive var_info traversal on every copy_name call
2013-01-08 14:37:39 -08:00
Andrew Tridgell
44285cfbad
DataFlash: fixed a semaphore bug in APM1 dataflash code
2013-01-08 14:37:39 -08:00
Andrew Tridgell
b39166b71a
MPU6000: fixed minor timing bug
...
if we miss a sample due to SPI contention we shouldn't update last
sample time
2013-01-07 11:07:29 +11:00
Andrew Tridgell
f93a7d50eb
AP_GPS: fixed debug code
2013-01-07 11:06:53 +11:00
Andrew Tridgell
5ac23d358f
HAL_PX4: update for new i2cdriver interface
2013-01-07 11:05:30 +11:00
Andrew Tridgell
319e1a4e84
HAL_PX4: support setting servo rate
2013-01-07 11:05:30 +11:00
Pat Hickey
0660873fa7
AP_HAL_AVR: pull-up UART RX lines to fix GPS spoofing (Tridge)
...
Tridge discovered this bugfix:
https://groups.google.com/d/topic/drones-discuss/aek6LJeYQo8/discussion
2013-01-05 21:03:02 -08:00
Pat Hickey
1b7b096b05
AP_Relay: fix pin used on APM2/SITL per Sando on drones-discuss
...
* My bad, thanks for the fix Sandro
2013-01-05 13:51:59 -08:00
Andrew Tridgell
f7e5f88199
AP_GPS: make UBLOX driver a bit more robust
2013-01-05 20:39:31 +11:00
Andrew Tridgell
3b0398dc14
AP_GPS: fixed UBLOX example for PX4
2013-01-05 20:39:30 +11:00
Pat Hickey
dd27984eac
SITL: instansiate EmptyI2CDriver with EmptySemaphore
2013-01-04 16:20:22 -08:00
Pat Hickey
0db60464f7
AP_HAL_Empty: add semaphore to I2CDriver
2013-01-04 16:19:51 -08:00
Pat Hickey
4c31cc0c2b
AP_HAL_AVR: add semaphore to I2CDriver
2013-01-04 16:19:38 -08:00
Pat Hickey
3da864499d
AP_HAL Semaphore: don't use limits, they don't work on c++
2013-01-04 16:19:15 -08:00
James Bielman
bb4474fa6d
AP_HAL_SMAACM: Add timeout for SPI transfers.
...
- Detects lockup in the lower level SPI driver.
- Add scheduler task tags for FreeRTOS debugging.
2013-01-04 15:44:21 -08:00
James Bielman
eca1417858
AP_HAL: Add semaphores to I2C driver.
...
- Guard I2C transactions with this semaphore in the MS5611 and
HMC5843 drivers.
2013-01-04 15:43:43 -08:00
Andrew Tridgell
30447018d5
HAL_PX4: handle %S in format strings
2013-01-05 08:10:07 +11:00
Andrew Tridgell
c16db01395
HAL_SITL: add pragma pack
...
may be needed on some systems
2013-01-05 08:01:30 +11:00
Andrew Tridgell
08d518e07f
HAL_PX4: switch to libc vdprintf()
...
vdprintf has now been added to NuttX
2013-01-05 08:01:10 +11:00
Andrew Tridgell
c15bf95e19
AP_Baro: fixed example build on AVR
2013-01-04 22:45:02 +11:00
Andrew Tridgell
84bd10d279
HAL_PX4: minor cleanups
2013-01-04 22:27:04 +11:00
Andrew Tridgell
aa64a41512
AP_Baro: removed debug line
2013-01-04 22:26:51 +11:00
Andrew Tridgell
5829d44a22
HAL_PX4: disable failsafe handler
...
this won't work until we can set RC output values in timers
2013-01-04 22:26:16 +11:00
Andrew Tridgell
0fcc6d7389
HAL_PX4: added an RC Output driver
2013-01-04 22:25:36 +11:00
Andrew Tridgell
4fe7ad6267
AP_Baro: added averaging to PX4 baro driver
2013-01-04 21:08:20 +11:00
Andrew Tridgell
26bc278181
AP_Compass: use queue length 10 in PX4 driver
...
and remove unnecessary poll() call
2013-01-04 20:12:03 +11:00
Andrew Tridgell
dbcaa4cf3c
AP_Baro: average over multiple samples in PX4 baro driver
2013-01-04 20:11:30 +11:00
Andrew Tridgell
44837a11f2
HAL_PX4: added baudrate support to UART driver
2013-01-04 19:42:30 +11:00
Andrew Tridgell
965fc8a9d1
HAL_PX4: enable uartB as GPS port
2013-01-04 19:41:50 +11:00
Andrew Tridgell
2f111b857b
AP_GPS: ported test code for PX4
2013-01-04 19:41:36 +11:00
Andrew Tridgell
f701d0cc85
AP_GPS: a couple more places where we should restart
...
this prevents us losing a byte
2013-01-04 19:40:49 +11:00
Andrew Tridgell
3bfff4bd6d
AP_GPS: pragma pack is needed on ARM
...
we rely on GPS data structures having byte alignment. Luckily GCC can
cope with this.
2013-01-04 19:39:15 +11:00
Andrew Tridgell
741174f5d5
AP_Compass: first cut at a PX4 compass driver
2013-01-04 16:21:24 +11:00
Andrew Tridgell
2ac6541526
AP_Baro: added PX4 barometer driver
2013-01-04 14:58:24 +11:00
Andrew Tridgell
cf5d102912
AP_Common: added board ID for PX4
2013-01-04 14:26:28 +11:00
Andrew Tridgell
fd23f6bd33
InertialSensor: added PX4 example sketch
2013-01-04 14:26:14 +11:00
Andrew Tridgell
ae09b31176
AP_InertialSensor: added PX4 gyro/accel driver
2013-01-04 14:25:57 +11:00
Andrew Tridgell
9f423a24ad
HAL_PX4: yield CPU in delay()
...
this allows other apps to run
2013-01-04 12:34:35 +11:00
Pat Hickey
bc3b6fcb9f
AP_HAL_AVR_SITL: remove begin/end atomic, adjust timer procs
2013-01-03 17:33:14 -08:00
Pat Hickey
688ec864dc
AP_HAL_AVR: deprecate begin/end atomic, timer procs run on resume
2013-01-03 17:33:14 -08:00
Pat Hickey
ea2a03344e
AP_HAL Scheduler: remove begin_atomic and end_atomic from api
...
* application-level atomic operations can now only be defined in
terms of suspend/resume_timer_procs
2013-01-03 17:33:14 -08:00
James Bielman
8f4a2e4c0e
AP_HAL_SMACCM: Scheduler timer process implemented correctly.
...
- Use "g_atomic" for suspend/resume timer procs.
2013-01-03 17:33:13 -08:00
James Bielman
d84ba8ef59
Use HAL suspend/resume timer procs rather than atomic.
...
- Preparation for removing begin/end atomic.
2013-01-03 17:33:13 -08:00
James Bielman
578c4859e4
AP_HAL_SMACCM: Update to new semaphore interface.
...
- Renamed files to match AVR HAL.
2013-01-03 17:33:13 -08:00
Andrew Tridgell
155fca8a4b
HAL_PX4: make APM sketches into daemons
...
this also moves uartA onto UART5, allowing ttyS0 for nsh
2013-01-04 11:14:35 +11:00
Pat Hickey
8503f3e2ae
Optflow: uses new Semaphore
2013-01-03 13:48:07 -08:00
Pat Hickey
d808c19c10
AP_InertialSensor_MPU6000: uses new semaphores
...
* some refactoring to fix differences between timerprocess
and non-timerprocess usage
2013-01-03 13:48:07 -08:00
Pat Hickey
5d91f342bb
AP_Baro_MS5611: uses new semaphore lib
2013-01-03 13:48:07 -08:00
Pat Hickey
a556a95565
AP_ADC: uses new semaphore interface
2013-01-03 13:48:07 -08:00
Pat Hickey
390e96311e
DataFlash: change to new style Semaphore library
2013-01-03 13:48:07 -08:00
Pat Hickey
f178d1bd02
AP_HAL_Empty: implement new Semaphore interface
2013-01-03 13:48:07 -08:00
Pat Hickey
2d6b649aa4
AP_HAL_AVR: Semaphore unit test
2013-01-03 13:48:07 -08:00
Pat Hickey
0029148b3a
AP_HAL_AVR: Implements new Semaphore interface
2013-01-03 13:48:07 -08:00
Pat Hickey
74e2ba2168
AP_HAL_AVR Scheduler: _in_timer_proc is volatile protected
...
* and AVRSemaphore is a friend, so it can read _in_timer_proc
to know the current context.
2013-01-03 13:48:07 -08:00
Pat Hickey
81d77d4a70
AP_HAL: New semaphore interface
...
* it now looks like a semaphore!
2013-01-03 13:48:07 -08:00
James Bielman
acf05a29ee
AP_InertialSensor_MPU6000: Poll status register if there is no data ready pin.
2013-01-03 13:48:06 -08:00
James Bielman
264db3670e
AP_Baro: Add CONFIG_MS5611_SERIAL option to choose between SPI and I2C.
...
- Update ArduCopter and ArduPlane modules to pass the correct serial
driver to the MS5611 driver.
- Update barometer examples, assuming SPI.
2013-01-03 13:48:06 -08:00
James Bielman
5753ae5692
AP_Baro: Add I2C support to MS5611 driver.
2013-01-03 13:48:06 -08:00
James Bielman
a4af314b57
Add AP_HAL_SMACCM implementation.
...
- Add a board definition for SMACCMPilot.
- Support the SMACCM HAL in required utility libraries.
2013-01-03 13:48:06 -08:00
Andrew Tridgell
1fc95a2d45
HAL_PX4: support PPM RC Input
...
HIL flying now works properly
2013-01-04 08:31:23 +11:00
Andrew Tridgell
e729a8b277
AP_HAL: rename Semaphores cpp file to match header
2013-01-03 21:36:48 +11:00
Andrew Tridgell
38bccee230
HAL_PX4: initial RCInput driver (overrides only)
2013-01-03 21:30:35 +11:00
Andrew Tridgell
85007cb766
HAL_Empty: fixed throttle in Empty RCInput
2013-01-03 21:14:00 +11:00
Andrew Tridgell
d492b72a2c
HAL_PX4: use /dev/ttyS0 for uartA
...
this also changes txspace and available to use FIONWRITE and FIONREAD
2013-01-03 21:12:10 +11:00
Andrew Tridgell
1e69b88261
HAL_PX4: use write() in panic()
...
this allows panic from the UARTDriver
2013-01-03 21:11:37 +11:00
Andrew Tridgell
ac7117245a
HAL_PX4: added a storage driver
...
stores 'eeprom' to a sdcard file
2013-01-03 19:35:05 +11:00
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
Andrew Tridgell
95d4cc2ce9
AP_Param: change method of loading defaults
...
this avoids a dependency on the constructor ordering by loading
defaults for each object separately
2012-12-20 14:51:38 +11:00
Andrew Tridgell
562b6a20c9
AP_HAL_AVR: conditionally build AVR specific helper code
2012-12-20 14:51:38 +11:00
Pat Hickey
54bab59066
AP_HAL_AVR_SITL: add initial scaffolding
2012-12-20 14:51:38 +11:00
Pat Hickey
475da4eca4
CONFIG_HAL_BOARD - test sketches fixed up, build all passes
2012-12-20 14:51:37 +11:00
Pat Hickey
25e597d3b3
AP_HAL_AVR: Refactor APM1 and APM2 instances to use CONFIG_HAL_BOARD
2012-12-20 14:51:37 +11:00
Pat Hickey
fa02ad7d4c
AP_HAL: preprocessor enum of HAL_BOARD
2012-12-20 14:51:37 +11:00
Pat Hickey
da99f5f283
Arduino.mk: compile with CONFIG_HAL_BOARD define from the user's config.mk
2012-12-20 14:51:37 +11:00
Andrew Tridgell
2ea243e45b
AP_Baro: removed unused code
2012-12-20 14:51:37 +11:00
Andrew Tridgell
13309cceb3
AP_GPS: reverted formatting of GPS messages
2012-12-20 14:51:37 +11:00
Pat Hickey
cb70590227
AP_HAL_AVR: remove Dataflash driver
2012-12-20 14:51:37 +11:00
Pat Hickey
9cee6cc941
AP_HAL: remove Dataflash driver
2012-12-20 14:51:37 +11:00
Pat Hickey
00cd4b1857
AP_HAL_AVR: Do not init HAL's dataflash
2012-12-20 14:51:37 +11:00
Andrew Tridgell
7d70ff409d
AP_OpticalFlow: use max() macro
2012-12-20 14:51:37 +11:00
Andrew Tridgell
6ee32ea872
AP_Limits: reverted parameter doc changes
2012-12-20 14:51:37 +11:00
Andrew Tridgell
b70f7f57ba
AP_Compass: restore low speed change on register read failure
2012-12-20 14:51:37 +11:00
Pat Hickey
7b9b088261
DataFlash: AP_HAL port fixups
2012-12-20 14:51:37 +11:00
Pat Hickey
aaffd9d96e
DataFlash: APM2 ported to AP_HAL SPIDeviceDriver
2012-12-20 14:51:36 +11:00
Pat Hickey
4f07a90b2e
DataFlash: apm1 fixups
2012-12-20 14:51:36 +11:00
Pat Hickey
ef1db1a3fc
DataFlash: don't take a delay_cb
2012-12-20 14:51:36 +11:00
Pat Hickey
0e5ff36c6c
DataFlash: DataFlash_APM1 rewritten in terms of AP_HAL spi primitives
2012-12-20 14:51:36 +11:00
Pat Hickey
a81de007d8
DataFlash: headers switch to use AP_HAL SPI device driver types
2012-12-20 14:51:36 +11:00
Pat Hickey
cc699a2a4e
DataFlash: conform to ordinary stdint types
...
* s/unsigned char/uint8_t/g
* changed all type 'byte' to uint8_t
2012-12-20 14:51:36 +11:00
Pat Hickey
fff4e87619
Arduino.mk: allow user avrdude flags
2012-12-20 14:51:36 +11:00
Andrew Tridgell
8b6ad6d559
SITL: removed SITL_debug()
...
not needed any more
2012-12-20 14:51:36 +11:00
Andrew Tridgell
38031edc9d
AP_InertialSensor: removed spurious init() method
2012-12-20 14:51:36 +11:00
Andrew Tridgell
c9a81d7de6
AP_InertialSensor: fixed sign of 16 bit SPI transfer
...
this gets accels and gyros working again
2012-12-20 14:51:36 +11:00
Pat Hickey
dbcc4fc6a5
AP_InertialSensor: variable wibble
2012-12-20 14:51:36 +11:00
Pat Hickey
9aca19415a
AP_InertialSensor: robust semaphores
2012-12-20 14:51:36 +11:00
Pat Hickey
1019fb45e7
AP_InertialSensor: remove sei in data interrupt handler
2012-12-20 14:51:36 +11:00
Pat Hickey
af852aa6a9
AP_HAL_AVR: init dataflash from HAL init
2012-12-20 14:51:35 +11:00
Pat Hickey
7f02993994
AP_HAL_AVR: less chatty Dataflash
2012-12-20 14:51:35 +11:00
Pat Hickey
09c14f3807
AP_ADC: more robust semaphores
2012-12-20 14:51:35 +11:00
Pat Hickey
bfd03ab40c
AP_Baro: robust spi device
2012-12-20 14:51:35 +11:00
Pat Hickey
60f7788be4
AP_Baro: robust calibration
2012-12-20 14:51:35 +11:00
Pat Hickey
eaa0a990a4
AP_Baro: MS5611 robust semaphores
2012-12-20 14:51:35 +11:00
Pat Hickey
52925b655f
AP_Baro: MS5611 uses delay in busy wait
2012-12-20 14:51:35 +11:00
Pat Hickey
6943d32d76
SITL: fixed to build under AP_HAL
...
* won't work or naything like that
2012-12-20 14:51:35 +11:00
Pat Hickey
4d0b1e6571
AP_Relay: add init method
2012-12-20 14:51:35 +11:00
Pat Hickey
70a3ee738a
gcs console: uartb fixup
2012-12-20 14:51:35 +11:00
Pat Hickey
7017a35fc3
AP_Airspeed: fix for AnalogIn read_average
2012-12-20 14:51:35 +11:00
Pat Hickey
8f99a12374
AP_ADC_AnalogSource: fix for new AnalogIn interface
2012-12-20 14:51:35 +11:00
Pat Hickey
a6d80af9ed
AP_ADC_AnalogSource: obey changes to AnalogSource interface
2012-12-20 14:51:35 +11:00
Pat Hickey
2be552ea22
AP_GPS: less chatty autodetect
2012-12-20 14:51:35 +11:00
Pat Hickey
d72c5cf828
AP_GPS: uartB fixup
2012-12-20 14:51:35 +11:00
Andrew Tridgell
5840ded767
AHRS: removed constrain() defines
2012-12-20 14:51:34 +11:00
Andrew Tridgell
09e7b0b592
AHRS: removed unused variable
2012-12-20 14:51:34 +11:00
Pat Hickey
70f34656bc
AP_AHRS: uart1 -> uartB fixup
2012-12-20 14:51:34 +11:00
Andrew Tridgell
eb81a3934e
HAL_AVR: removed extra min() define
2012-12-20 14:51:34 +11:00
Pat Hickey
f9c8f93b37
AP_HAL_AVR: Dataflash APM2 does a better job detecting no df card
2012-12-20 14:51:34 +11:00
Andrew Tridgell
aff1e56e82
AP_HAL: fixed AnalogIn example sketch
2012-12-20 14:51:34 +11:00
Pat Hickey
13f7bd1723
AP_HAL_AVR: AnalogIn supports read_average & read_latest
2012-12-20 14:51:34 +11:00
Pat Hickey
f9e9b8a7ef
AP_HAL_AVR: move scheduler's timer-hw dependent methods to a separate cpp
2012-12-20 14:51:34 +11:00
Andrew Tridgell
d9f69923f2
HAL_AVR: fixed int types -> uint8_t
2012-12-20 14:51:34 +11:00
Andrew Tridgell
b1856bc17e
HAL_AVR: fixed warnings on all PSTR() usage
2012-12-20 14:51:34 +11:00
Andrew Tridgell
857c0b69e5
AP_HAL_AVR: fixed interrupt attach for MPU6000
2012-12-20 14:51:34 +11:00
Andrew Tridgell
31bb300f81
AP_HAL_AVR: fixed bounds check for rc input
2012-12-20 14:51:34 +11:00
Pat Hickey
a79adcb7f4
AP_HAL_AVR: comment wibbles
2012-12-20 14:51:34 +11:00
Pat Hickey
8d97596ea0
AP_HAL_AVR: RCInput has overrides
2012-12-20 14:51:34 +11:00
Pat Hickey
cb38651df5
AP_HAL: RCInput has overrides
2012-12-20 14:51:34 +11:00
Pat Hickey
dfdc14f583
AP_HAL_AVR: Console uses only sized int types
2012-12-20 14:51:34 +11:00
Pat Hickey
8879cbbc69
AP_HAL: Console uses only sized int types
2012-12-20 14:51:33 +11:00
Pat Hickey
2ee214ee36
AP_HAL_AVR: AnalogIn uses only sized int types
2012-12-20 14:51:33 +11:00
Pat Hickey
de4adefe4e
AP_HAL: AnalogIn uses only sized int types
2012-12-20 14:51:33 +11:00
Pat Hickey
9455d4c297
AP_HAL_AVR: UARTDriver impl uses only sized int types
2012-12-20 14:51:33 +11:00
Pat Hickey
243590bb73
AP_HAL: UARTDriver & Stream uses only sized int types
...
Signed-off-by: Pat Hickey <pat@galois.com>
2012-12-20 14:51:33 +11:00
Pat Hickey
ba07ae283f
AP_HAL_AVR: sized ints in GPIO
2012-12-20 14:51:33 +11:00
Pat Hickey
709869f8ce
AP_HAL: use sized ints in GPIO
2012-12-20 14:51:33 +11:00
Pat Hickey
765e2da8a7
AP_HAL_AVR: analog input fixed when ANALOG_INPUT_NONE
...
* need to provide new sample so we dont spin forever
2012-12-20 14:51:33 +11:00
Pat Hickey
2826a605ba
AP_HAL_AVR: Dataflash debugging
2012-12-20 14:51:33 +11:00
Pat Hickey
ff09314ab8
AP_HAL_AVR: SPI debugging
2012-12-20 14:51:33 +11:00
Pat Hickey
d504db195e
AP_HAL_AVR: add sei in defer timer process
2012-12-20 14:51:33 +11:00
Andrew Tridgell
0f3e30a0c3
HAL_AVR: fixed race condition in delay()
2012-12-20 14:51:33 +11:00
Pat Hickey
ca4bc8d760
AP_HAL: AnalogIn read changed to read_latest and read_average
2012-12-20 14:51:33 +11:00
Pat Hickey
6218d7779f
AP_HAL: expose DF_LOGGING_FORMAT to user
2012-12-20 14:51:33 +11:00
Pat Hickey
3bca50f422
AP_HAL: BetterStream removes printf attribute from _printf_P
2012-12-20 14:51:33 +11:00
Pat Hickey
88f09d100a
AP_HAL_AVR: fix implementation of delay in scheduler
2012-12-20 14:51:32 +11:00
Pat Hickey
0b7a55b9f6
AP_HAL_AVR: AnalogIn hack to make vcc read work
...
* needs improvment
2012-12-20 14:51:32 +11:00
Pat Hickey
6e45ce12b2
AP_HAL_AVR: implement reboot in scheduler
...
* still need to fix system io register inits to do it like bootloader would
2012-12-20 14:51:32 +11:00
Pat Hickey
592d32ba47
AP_HAL: add reboot to scheduler
2012-12-20 14:51:32 +11:00
Pat Hickey
04d7b5ffe4
AP_HAL_AVR: implement changes to AnalogIn
2012-12-20 14:51:32 +11:00
Pat Hickey
7049934a69
AP_HAL: AnalogIn channel gets scale, source gets set_pin
2012-12-20 14:51:32 +11:00
Pat Hickey
50b765616b
AP_HAL_AVR: change uart0,1,2,3 to uartA,B,C
2012-12-20 14:51:32 +11:00
Pat Hickey
dbb6a2a0e5
AP_HAL: change uart0,1,2,3 to uartA,B,C
2012-12-20 14:51:32 +11:00
Pat Hickey
d4e350f574
remove APM_RC, deprecated by AP_HAL
2012-12-20 14:51:32 +11:00
Pat Hickey
3b4e2296e9
remove nobuild.txt from deprecated AP_Var directory
2012-12-20 14:51:32 +11:00
Pat Hickey
d53572e163
remove DigitalWriteFast library, deprecated under AP_HAL (&goodriddance)
2012-12-20 14:51:32 +11:00
Pat Hickey
2b904703d8
remove AP_PeriodicProcess library, deprecated under AP_HAL
2012-12-20 14:51:32 +11:00
Pat Hickey
5b9738bba1
remove Arduino_Mega_ISR_Registry library, deprecated under AP_HAL
2012-12-20 14:51:32 +11:00
Pat Hickey
1d21cea032
remove AP_AnalogSource library, deprecated under AP_HAL
2012-12-20 14:51:32 +11:00
Pat Hickey
3987e81e2a
remove APO library, deprecated under AP_HAL
2012-12-20 14:51:31 +11:00
Pat Hickey
97e190a641
remove SPI3 library, deprecated under AP_HAL
2012-12-20 14:51:31 +11:00
Pat Hickey
bc4b196f6f
remove I2C library, deprecated under AP_HAL
2012-12-20 14:51:31 +11:00
Pat Hickey
db31608aa2
remove AP_Semaphore library, deprecated under AP_HAL
2012-12-20 14:51:31 +11:00
Pat Hickey
ec8b56db7d
remove FastSerial library, deprecated under AP_HAL
2012-12-20 14:51:31 +11:00
Pat Hickey
39d14c8a93
PID: ported to AP_HAL
2012-12-20 14:51:31 +11:00
Pat Hickey
40f254af51
memcheck: ported to AP_HAL
2012-12-20 14:51:31 +11:00
Pat Hickey
f4f3062df1
AP_Relay: rewritten for AP_HAL
2012-12-20 14:51:31 +11:00
Pat Hickey
71a360b3e3
APM_PI: ported to AP_HAL
...
* formatted to 80w, way of the future, way of the future
2012-12-20 14:51:31 +11:00
Pat Hickey
2244ac295c
AP_HAL_AVR: improve RCInput documentation
...
copied directlyf rom AP_HAL header
2012-12-20 14:51:31 +11:00
Pat Hickey
b89c45735b
AP_HAL_AVR: provide 'int main (void)' impl as a macro
...
* avoid extra typing
* makes it HAL implementation specific
2012-12-20 14:51:31 +11:00
Pat Hickey
a639f7c34f
AP_HAL_AVR: rename FastSerial example to UARTDriver
2012-12-20 14:51:31 +11:00
Pat Hickey
52f6d67238
AP_HAL_AVR: add ArduPlaneLibs test sketch
2012-12-20 14:51:31 +11:00
Pat Hickey
d47f77f8dd
AP_HAL_AVR Scheduler: support nested atomic sections
2012-12-20 14:51:31 +11:00
Pat Hickey
f543cede01
AP_HAL & AP_HAL_AVR: new SPI driver model
2012-12-20 14:51:31 +11:00
Pat Hickey
2a12392b9e
AP_HAL: export semaphore header
2012-12-20 14:51:30 +11:00
Pat Hickey
03eb5a1beb
AP_HAL_AVR: gpio and scheduler renamed arduino to avr
2012-12-20 14:51:30 +11:00
Pat Hickey
2e32ec3013
AP_HAL_AVR GPIO: rename Arduino to be AVR
2012-12-20 14:51:30 +11:00
Pat Hickey
17b951c45b
AP_HAL_AVR Scheduler: rename Arduino to be AVR
2012-12-20 14:51:30 +11:00
Pat Hickey
b2c44d8a81
AP_HAL: move AP_Semaphore to be part of the HAL
2012-12-20 14:51:30 +11:00
Pat Hickey
5f48193ea0
AP_HAL_AVR analog in example: use new constant for board vcc, and vcc not vdd
2012-12-20 14:51:30 +11:00
Pat Hickey
0c3e59a307
AP_HAL_AVR: AnalogIn channels respect pins, obey NONE input, all common
...
* there's no need for separate APM1/APM2 classes, so that was eliminated
* single class only has special member for vcc. all others created by
channel interface.
2012-12-20 14:51:30 +11:00
Pat Hickey
f4b5ef9fad
AP_HAL AnalogIn: gets constants for BOARD_VCC and NONE
2012-12-20 14:51:30 +11:00
Pat Hickey
b7c4cc20ac
GPIO: optimized read, write, and mode for DigitalSource objects
2012-12-20 14:51:30 +11:00
Pat Hickey
054f35e33d
AP_Camera: ported to AP_HAL
2012-12-20 14:51:30 +11:00
Pat Hickey
f935f1ae31
AP_InertialNav: did my best at a meaningful test sketch
...
* the existing test sketch was just the InertialSensor test
2012-12-20 14:51:30 +11:00
Pat Hickey
af4806666f
AP_InertialNav: ported to AP_HAL
2012-12-20 14:51:30 +11:00
Pat Hickey
c393374d4c
AP_OpticalFlow: ported to AP_HAL
...
* 78 wide
* remove SPI.h, SPI3.h, and FastSerial.h dependencies (though not objects)
* gotta totally refactor HAL SPI driver to fix the rest
2012-12-20 14:51:30 +11:00
Pat Hickey
a38ce8962e
AP_Rangefinder: ported to AP_HAL. Only officially supports MaxsonarXL.
2012-12-20 14:51:30 +11:00
Pat Hickey
47f555feac
AP_HAL_AVR: I2CDriver increments lockup count on any error
...
tridge made these changes to the "I2c" lib in a3589f2956
2012-12-20 14:51:30 +11:00
Pat Hickey
93f6267334
AP_HAL_AVR: create ArduCopterLibs test sketch
...
* used to make sure all ArduCopter deps build
2012-12-20 14:51:30 +11:00
Pat Hickey
c1114168e4
AP_Baro tests rebase fixups
2012-12-20 14:51:29 +11:00
Pat Hickey
e787b5ccd9
AP_Buffer: ported to AP_HAL
2012-12-20 14:51:29 +11:00
Pat Hickey
c9541d3b00
AP_HAL: added begin_atomic and end_atomic to scheduler
2012-12-20 14:51:29 +11:00
Pat Hickey
197a685923
AP_Semaphore: ported to AP_HAL
...
* improved readability of test output
2012-12-20 14:51:29 +11:00
Pat Hickey
f490f2432d
Arduino.mk: norelax.inoflag will disable -Wl,--relax on a per sketch basis
...
* Some weird avr-ld bug that hits on 4.6.2 Fedora. Didn't have time to
investigate further.
2012-12-20 14:51:29 +11:00
Pat Hickey
9bf69d4e0d
AP_AHRS: port to AP_HAL
2012-12-20 14:51:29 +11:00
Pat Hickey
6cc231ae7d
AP_Mount: ported to AP_HAL
...
I do not have the hardware required to test this
2012-12-20 14:51:29 +11:00
Pat Hickey
eefb0f4515
APM_OBC: translate to AP_HAL, make trivial test sketch to test build
2012-12-20 14:51:29 +11:00
Pat Hickey
3b1150d857
AP_Menu: ported to AP_HAL
2012-12-20 14:51:29 +11:00
Pat Hickey
ec53515648
AP_Param: eeprom translated to use AP_HAL. No unit tests available!
2012-12-20 14:51:29 +11:00
Pat Hickey
87c55f68c2
AP_HAL_AVR Storage: conform to new API
2012-12-20 14:51:29 +11:00
Pat Hickey
7908e41416
AP_HAL Storage: use a int type rather than pointer type for location
2012-12-20 14:51:29 +11:00
Andrew Tridgell
c4d9b5e328
AP_HAL_PX4: added stdio.h
2012-12-20 14:51:29 +11:00
Andrew Tridgell
2669c33476
AP_HAL_PX4: added main program as include
2012-12-20 14:51:29 +11:00
Andrew Tridgell
28353cd683
AP_Progmem: check for PX4FMU_BUILD explicitly
2012-12-20 14:51:29 +11:00
Andrew Tridgell
3a2e138994
AP_Common: no c++ magic for PX4 build
2012-12-20 14:51:28 +11:00
Pat Hickey
be00b2f681
AP_HAL_PX4: brief disclaimer
2012-12-20 14:51:28 +11:00
Andrew Tridgell
c5221c34a5
HAL_AVR: don't auto build PX4 stuff yet
2012-12-20 14:51:28 +11:00
Pat Hickey
64a79f3598
AP_HAL_PX4: Stub Console implemented
2012-12-20 14:51:28 +11:00
Pat Hickey
166eff180d
AP_Progmem Identity: switch to straight typedef of prog_char_t to char
2012-12-20 14:51:28 +11:00
Pat Hickey
9f69254c00
AP_Progmem: identity to use regular strings as PSTRs
2012-12-20 14:51:28 +11:00
Andrew Tridgell
e9d41312ca
HAL_AVR: automatically find tests to build
2012-12-20 14:51:28 +11:00
Pat Hickey
2d363e0683
AP_HAL_PX4: trivial console header
2012-12-20 14:51:28 +11:00
Pat Hickey
a4f1f6a5db
AP_Progmem: fix dependencies for all sketches touched by AP_HAL_AVR
2012-12-20 14:51:28 +11:00
Pat Hickey
a399851ca2
AP_HAL: Depend on AP_Progmem rather than AP_Common to provide pstr
2012-12-20 14:51:28 +11:00
Pat Hickey
5c738810e2
AP_Progmem created: progmem macros per specific platform
...
* derived from AP_Common
2012-12-20 14:51:28 +11:00
Pat Hickey
a2f97ac7c7
AP_Common.cpp: Delete empty cpp file
2012-12-20 14:51:28 +11:00
Pat Hickey
f58935d1e7
AP_Common c++ lib: eliminate freeMemory and displayMemory
...
* also, no more error message in pure virtual call
2012-12-20 14:51:28 +11:00
Pat Hickey
9f9c183a4d
remove AP_Vector.h as deprecated
2012-12-20 14:51:28 +11:00
Pat Hickey
925223341d
remove AP_Var: deprecated
2012-12-20 14:51:28 +11:00
Pat Hickey
488fb9750b
remove AP_MetaClass as deprecated
2012-12-20 14:51:27 +11:00
Pat Hickey
d50d0682e9
remove APO library: deprecated
2012-12-20 14:51:27 +11:00
Pat Hickey
668caa4a2e
Fix calls to AP_HAL::Scheduler::register_timer_process
2012-12-20 14:51:27 +11:00
Pat Hickey
bae7e4b88e
AP_HAL Scheduler: simplify register_timer_process, min time for delay cb
2012-12-20 14:51:27 +11:00
Pat Hickey
6a59ad143e
AP_Curve: made into its own library
2012-12-20 14:51:27 +11:00
Andrew Tridgell
53105efbcd
HAL_AVR: more uart0 -> console changes
2012-12-20 14:51:27 +11:00
Andrew Tridgell
d133f15f57
HAL_AVR: use hal.console instead of hal.uart0
2012-12-20 14:51:27 +11:00
Andrew Tridgell
ecd67ad79b
HAL_AVR: added more build examples
2012-12-20 14:51:27 +11:00
Andrew Tridgell
87e300b119
AP_HAL: added double print functions
...
this copes with the fact that the compiler doesn't really know that
float and double are the same things
2012-12-20 14:51:27 +11:00
Andrew Tridgell
e663f5feab
HAL_AVR: use ccache if available
2012-12-20 14:51:27 +11:00
Andrew Tridgell
f269172d96
HAL_AVR: fixed build of remaining HAL_AVR examples
2012-12-20 14:51:27 +11:00
Andrew Tridgell
978c7ae329
HAL_AVR: added build_all.sh script
2012-12-20 14:51:27 +11:00
Andrew Tridgell
49e1f452e1
HAL_AVR: fixed I2C example build
2012-12-20 14:51:27 +11:00
Pat Hickey
f8047f158d
Arduino.mk: Changes to asm opts for compatibility with avr-gcc4.6
...
* Need to make sure these are compatible with older toolchains
before pushing to master
2012-12-20 14:51:26 +11:00
Pat Hickey
1cd09be2fd
AP_HAL_AVR: proper empty uart for APM1 vs APM2
...
* APM1 uses uart2 as a spi port (dataflash)
* APM2 uses uart3 as a spi port (dataflash)
2012-12-20 14:51:26 +11:00
Pat Hickey
de81267bd5
AP_HAL_AVR: utility/vprintf.cpp fixed for avr-gcc 4.6
2012-12-20 14:51:26 +11:00
Pat Hickey
afa1143506
RC_Channel: ported to AP_HAL
...
* keeping everyone honest
* remove second unmaintained unit test: No idea wtf is going on in there.
2012-12-20 14:51:26 +11:00
Pat Hickey
c6fe5e5340
AP_Motors: ported to AP_HAL
2012-12-20 14:51:26 +11:00
Pat Hickey
95a13bdbd2
APM_Control: ported to AP_HAL
...
Unable to test since there are no unit tests.
2012-12-20 14:51:26 +11:00
Pat Hickey
9f9dfc7c63
AP_Limits: fix spacing to 80 columns, use standard cpp header guard conventions
...
* No idea what was going on there. Confusing.
2012-12-20 14:51:26 +11:00
Pat Hickey
3503c7627a
AP_LeadFitler: ported to AP_HAL
2012-12-20 14:51:26 +11:00
Pat Hickey
4acf2c8591
AP_InertialSensor: ported to AP_HAL
2012-12-20 14:51:26 +11:00
Pat Hickey
11bf533c57
AP_HAL_AVR: implement GPIO::attach_interrupt just for interrupt 6
2012-12-20 14:51:26 +11:00
Pat Hickey
7480707f9e
AP_HAL: Add attach_interrupt method to GPIO
2012-12-20 14:51:26 +11:00
Pat Hickey
d422ab7806
AP_HAL: Extend Scheduler to support defered timer procs
...
* based on queue_proc from AP_PeriodicProcess
2012-12-20 14:51:26 +11:00
Pat Hickey
53432a1101
AP_Compass: ported to AP_HAL
2012-12-20 14:51:26 +11:00
Pat Hickey
9aada26e34
AP_Declination: translated to AP_HAL
2012-12-20 14:51:26 +11:00
Pat Hickey
5d40074e4e
AP_Baro: port to AP_HAL
2012-12-20 14:51:26 +11:00
Pat Hickey
c56c4ae240
Various example sketches: hal.uart0->begin(115200) is redundant. use console.
...
just assume uart0 is initialized by the HAL, because it is. DRY.
also, don't ever use uart0 explicitly in example sketches, use console
and let the hal figure it out.
2012-12-20 14:51:25 +11:00
Pat Hickey
11cfde1e46
AP_HAL_AVR: I2CDriver initialize in HAL init
...
* Makes more sense to have everything set to go by the time we're in setup.
2012-12-20 14:51:25 +11:00
Pat Hickey
ce8dc5fd5c
AP_AnalogSource: obsoleted by AP_HAL. Renamed to AP_ADC_AnalogSource.
2012-12-20 14:51:25 +11:00
Pat Hickey
dfc8e91fd3
AP_Airspeed: port to AP_HAL
2012-12-20 14:51:25 +11:00
Pat Hickey
84e0dd406e
Filter: ported to AP_HAL
2012-12-20 14:51:25 +11:00
Pat Hickey
30deb76ea3
AP_ADC: ported to AP_HAL
...
AP_ADC_test run on bench with APM1, looks ok.
2012-12-20 14:51:25 +11:00
Pat Hickey
050a878935
AC_PID: Ported to AP_HAL.
2012-12-20 14:51:25 +11:00
Pat Hickey
73ccfaf2d7
AP_HAL: implement DigitalSource abstraction
...
* GPIO's complement to AnalogSource
2012-12-20 14:51:25 +11:00
Pat Hickey
deb96143d3
AP_GPS_IMU: fix type punning warnings by using memcpy
2012-12-20 14:51:25 +11:00
Pat Hickey
9ed023aeb4
AP_GPS: Builds under AP_HAL. Not tested.
2012-12-20 14:51:25 +11:00
Pat Hickey
e83504f80d
AP_HAL_AVR LCDTest: fix build
2012-12-20 14:51:25 +11:00
Pat Hickey
6d9ac42618
GCS Console: add lib implementing message handling from DATA16 and DATA32 msgs
...
console demonstrates simple loopback
works with our branch of mavproxy at the moment
2012-12-20 14:51:25 +11:00
Pat Hickey
40734bc2f2
AP_HAL_AVR Console: bugfix on buffer bytes free vs used
...
* had them reversed. doh
2012-12-20 14:51:25 +11:00
Pat Hickey
fd89bacbc8
GCS_MAVLink: wibble to mavlink_helpers.h to fix build.
2012-12-20 14:51:25 +11:00
Pat Hickey
2a72c7e730
GCS_MAVLink: Regenerate mavlink1.0 implementation
...
created using:
mavgen.py --lang=C --wire-protocol=1.0 --output=./include/mavlink/v1.0 ./message_definitions/ardupilotmega.xml
mavlink repo commit 79cabfe956464c8f745807a6e65062ac3fc09193
2012-12-20 14:51:25 +11:00
Pat Hickey
a86a696311
GCS_Mavlink: add the DATA16 and DATA32 messages definitions to ardupilotmega.xml
2012-12-20 14:51:24 +11:00
Pat Hickey
ed19ff7f2f
GCS_Console example: implement a trivial mavlink gcs
...
* Just heartbeats and sends a single parameter down
* all other messages unimplemented
* console is dumped to statustext at the moment (that will change soon)
2012-12-20 14:51:24 +11:00
Pat Hickey
6661f827fa
GCS_MAVLink: port to work with AP_HAL class rather than FastSerial
2012-12-20 14:51:24 +11:00
Pat Hickey
f2b21ecc41
AP_Param: Port to work with AP_HAL class instead of FastSerial
2012-12-20 14:51:24 +11:00
Pat Hickey
7dbe198e5c
AP_Math: port to work on coreless arduino (AP_HAL)
2012-12-20 14:51:24 +11:00
Pat Hickey
52adb462a9
AP_HAL_AVR: Finished implementation of AVRConsoleDriver
2012-12-20 14:51:24 +11:00
Pat Hickey
98f86d0288
AP_HAL_AVR: Console more complete, but still not 100%
2012-12-20 14:51:24 +11:00
Pat Hickey
6f4d208ffc
AP_HAL_AVR: fixup in vprintf header
2012-12-20 14:51:24 +11:00
Pat Hickey
f889d5ac13
AP_HAL_AVR: trivial ConsoleDriver implementation
...
* user backend unimplemented. will do that next.
2012-12-20 14:51:24 +11:00
Pat Hickey
017f592eef
AP_HAL: add ConsoleDriver interface
2012-12-20 14:51:24 +11:00
Pat Hickey
a3a6482fd3
AP_HAL_AVR: vprintf implementation exists outside of class hierchary.
...
* Makes it easier to mix into other classes.
2012-12-20 14:51:24 +11:00
Pat Hickey
36154559fc
AP_HAL: change txspace from a BetterStream method to a Stream method.
2012-12-20 14:51:24 +11:00
Pat Hickey
72f8667d9c
AP_HAL_AVR: AnalogIn implemented
2012-12-20 14:51:23 +11:00
Pat Hickey
279a755ab3
AP_HAL: AnalogIn interface fleshed out
2012-12-20 14:51:23 +11:00
Pat Hickey
01e34825f3
AP_HAL_AVR: Scheduler unit tests
2012-12-20 14:51:22 +11:00
Pat Hickey
ba7a596ec3
AP_HAL_AVR: Scheduler extensions implemented
2012-12-20 14:51:22 +11:00
Pat Hickey
6671310399
AP_HAL Scheduler: interface has AP_PeriodicProcess functionality
2012-12-20 14:51:22 +11:00
Pat Hickey
a1863ec1f5
AP_HAL_AVR ISRRegistry: use AP_HAL::Proc types instead of private typedef
2012-12-20 14:51:22 +11:00
Pat Hickey
af68c09591
AP_HAL Namespace: typedef Proc and TimedProc
2012-12-20 14:51:22 +11:00
Pat Hickey
229f58412b
AP_HAL_AVR Storage: commit test
2012-12-20 14:51:22 +11:00
Pat Hickey
187571cca9
AP_HAL Scheduler fixes & AP_HAL_AVR Scheduler changed to match
2012-12-20 14:51:22 +11:00
Pat Hickey
2adfc4fbc5
AP_HAL Scheduler add method register_delay_callback (unimplemented)
2012-12-20 14:51:22 +11:00
Pat Hickey
1d89419059
AP_HAL: Scheduler should use stdint types, conform names
2012-12-20 14:51:22 +11:00
Pat Hickey
a9dff1ad25
AP_HAL_AVR: bugfix to SPIDriver.cpp
...
* Had freq set to 10 mhz, not 1mhz... stupid mistake.
2012-12-20 14:51:22 +11:00
Pat Hickey
177da8ea5b
AP_HAL_AVR: Bugfix to SPIDriver_MPU6000 (works now)
2012-12-20 14:51:22 +11:00
Pat Hickey
8ffec83b73
DataFlash: fixes to lib include and make the test smaller
2012-12-20 14:51:22 +11:00
Pat Hickey
06441b4117
AP_HAL_AVR Dataflash implemented, tested for APM2
...
* Need to get my APM1 board from home to test it on there...
2012-12-20 14:51:21 +11:00
Pat Hickey
9beba972c8
AP_HAL_AVR: Dataflash instances stubbed out based on /libraries/DataFlash
2012-12-20 14:51:21 +11:00
Pat Hickey
34ec5081e2
AP_HAL: Dataflash interface populated
2012-12-20 14:51:21 +11:00
Pat Hickey
3b697fe299
AP_HAL: rename Log to Dataflash
...
* I'd love to build a proper abstraction for logging, but I don't have the
time to do so right now.
* The dataflash libs need to be pushed into the AP_HAL_AVR anyway, so I'll
do that now and replace the interface with a better logging driver later.
2012-12-20 14:51:21 +11:00
Pat Hickey
5d2327f52f
AP_HAL: Don't need a separate Console class, BetterStream will do.
2012-12-20 14:51:21 +11:00
Pat Hickey
261ef791a7
AP_HAL Storage: trivial interface and implementation wraps avr/eeprom funcs
2012-12-20 14:51:21 +11:00
Pat Hickey
b0d8f43111
AP_HAL_AVR: Implemented SPIDriver based on Arduino, but it doesn't work yet
...
* I don't have an APM2.5 board I can easily connect a logic analyzer to see
the traffic on the bus...
2012-12-20 14:51:21 +11:00
Pat Hickey
b2a34800e2
AP_HAL_AVR RCPassthroughTest: write to upper (>8) channels as well.
2012-12-20 14:51:21 +11:00
Pat Hickey
1f670b4ce2
AP_HAL_AVR: bugfix to RCOutput_APM1 driver CH5 and CH6
...
* copypasted the code from RCOutputAPM1 and forgot to fix the io pins
to initialize properly
2012-12-20 14:51:21 +11:00
Pat Hickey
ad64fd2924
AP_HAL_AVR: RCOutput_APM2, bugfix to get_freq on CH_10 and CH_11
2012-12-20 14:51:21 +11:00
Pat Hickey
875e928628
AP_HAL_AVR: mostly working implementation of RCOutput_APM1.cpp
...
* CH5 and CH6 output doesn't work at the moment. not sure why
2012-12-20 14:51:21 +11:00
Pat Hickey
d8ceb427f4
AP_HAL_AVR wibble: s/OUT/CH_/g to be more clear
...
* also, correct my poor german, h/t acfoltzer
2012-12-20 14:51:21 +11:00
Pat Hickey
5445ad02f8
AP_HAL_AVR: RCOutput tested implementation for APM2
2012-12-20 14:51:21 +11:00
Pat Hickey
0f96c93362
AP_HAL_AVR: Add RCPassthroughTest test sketch
2012-12-20 14:51:21 +11:00
Pat Hickey
25bc452608
AP_HAL_AVR RCInput: fixes found in testing
...
* On APM1, I was able to test with the failsafe (i.e. all channels giving
fixed values) but not with a real receiver
2012-12-20 14:51:21 +11:00
Pat Hickey
71ea0fc755
AP_HAL_AVR example RCInputTest created
...
* input works for APM2, but valid() isnt quite working yet
2012-12-20 14:51:20 +11:00
Pat Hickey
ec0fddd49a
AP_HAL_AVR: HAL_AVR initializes rcin and rcout
2012-12-20 14:51:20 +11:00
Pat Hickey
776a1074c9
AP_HAL_AVR: check in utility/ISRRegistry
2012-12-20 14:51:20 +11:00
Pat Hickey
064faafdd3
AP_HAL_AVR: stub RCOutput implementations for APM1 and APM2
2012-12-20 14:51:20 +11:00
Pat Hickey
acfbddef0d
AP_HAL: proper RCOutput interface specification
2012-12-20 14:51:20 +11:00
Pat Hickey
fc2e1455a9
AP_HAL_AVR: proper RCInput implementations for APM1 and APM2
2012-12-20 14:51:20 +11:00
Pat Hickey
fb6abbe191
AP_HAL: proper RCInput interface specification
2012-12-20 14:51:20 +11:00
Pat Hickey
2c14a77693
AP_HAL_AVR: add ISRRegistry class, member of HAL_AVR
...
* derived from Arduino_Mega_ISR_Registry class
2012-12-20 14:51:20 +11:00
Pat Hickey
db76562cd5
AP_HAL: global rename PPMInput -> RCInput, PWMOutput -> RCOutput
...
* for clarity. nobody cares that PPM/PWM is the implementation, and with
sbus etc it might not be
2012-12-20 14:51:20 +11:00
Pat Hickey
46f31aa69c
AP_HAL_AVR: Implement I2CDriver based on libraries/I2C
...
* Removed a ton of code we don't need from that driver, which should make
writing new drivers easier.
2012-12-20 14:51:20 +11:00
Pat Hickey
e14729e7d9
AP_HAL_AVR: FastSerial port passes FastSerial example sketch tests
2012-12-20 14:51:20 +11:00
Pat Hickey
cae931a93a
AP_HAL_AVR UARTDriver does basic hello world printing
...
* will import more complex tests next
2012-12-20 14:51:20 +11:00
Pat Hickey
83887cfc87
AP_HAL_APM: basic LiquidCrystal based sketch to test hal gpio & scheduler
2012-12-20 14:51:20 +11:00
Pat Hickey
e9c5f07db2
AP_HAL: Working GPIO interface & implementation
...
* actually, tested the output only... gotta do input next
2012-12-20 14:51:20 +11:00
Pat Hickey
474f57a90a
AP_HAL_AVR: Blink sketch - first working code on coreless
2012-12-20 14:51:20 +11:00
Pat Hickey
ea8242ace1
AP_HAL: Add scheduler interface, move Arduino init code to implementation
2012-12-20 14:51:19 +11:00
Pat Hickey
59a94d5aac
AP_HAL_AVR: implement ::init method in derived HAL_AVR class.
...
* Implementation of ::init taken from Arduino core. Not tested yet
2012-12-20 14:51:19 +11:00
Pat Hickey
18329b1a5d
AP_HAL: add virtual init method to HAL class
2012-12-20 14:51:19 +11:00
Pat Hickey
3b2719dd8c
AP_HAL_AVR: build APM1 example sketch with no Arduio core via nocore.inoflag
2012-12-20 14:51:19 +11:00
Pat Hickey
75279dfa43
AP_HAL_AVR: header include fixups
2012-12-20 14:51:19 +11:00
Pat Hickey
0d342a3293
AP_Common: use EXCLUDECORE macro to hack some debug messages away
2012-12-20 14:51:19 +11:00
Pat Hickey
7854c54880
Arduino.mk: when core is excluded, add -DEXCLUDECORE to flags
2012-12-20 14:51:19 +11:00
Pat Hickey
4493dbb4d2
Arduino.mk: support nocore.inoflag to do coreless builds of each sketch
2012-12-20 14:51:19 +11:00
Pat Hickey
8eb9b39a44
AP_HAL_AVR move library classes to their own AP_HAL_AVR namespace
2012-12-20 14:51:19 +11:00
Pat Hickey
afd1f36400
AP_HAL: add BetterStream, Stream, and Print interfaces
...
* BetterStream Means AP_HAL depends on AP_Common, for now, in order to have
the AVR specific pgm_char_t defined.
I'll need to factor that out in the future but for now it can stay
2012-12-20 14:51:19 +11:00
Pat Hickey
b34d4cdb17
Remove empty AP_Var_menufuncs.cpp
2012-12-20 14:51:19 +11:00
Pat Hickey
3f1d9d7f69
AP_Param: #include <AP_Param.h> fixups for libraries & sketches
...
* I mostly went through with grep and added an #include <AP_Param.h> below
every #include <AP_Common.h>. Not all of these example sketches might
strictly need AP_Param.
2012-12-20 14:51:19 +11:00
Pat Hickey
c4dbe8c627
AP_Param: move from AP_Common to its own library
2012-12-20 14:51:19 +11:00
Pat Hickey
e82d1402ef
AP_Loop: moved to APO library, which is the only code that uses it
2012-12-20 14:51:19 +11:00
Pat Hickey
29a425c0dd
AP_HAL: import utility Print, Stream, and BetterStream headers
2012-12-20 14:51:18 +11:00
Pat Hickey
00920b0483
AP_HAL_AVR: Stub implementations of AP_HAL_AVR concrete classes
2012-12-20 14:51:18 +11:00
Pat Hickey
dc03b1190f
AP_HAL: Stub implementations of pure virtual AP_HAL classes
2012-12-20 14:51:18 +11:00
Craig@3DR
2586c7a32a
Updated the MediaTek configuration
...
to set the minimum speed the GPS must be moving to update the position to 0 m/s.
to enable SBAS / WAAS / DGPS position fixes.
2012-12-11 15:35:52 -08:00
rmackay9
24317e721b
AC_PID, AP_AHRS: added descriptions to some parameters
2012-12-10 22:28:39 +09:00
rmackay9
a38db6744f
AP_Motors: add comments for parameters
2012-12-10 21:37:20 +09:00
rmackay9
6cf94e20e7
AP_InertialNav_test: small change to #include in example sketch
2012-12-10 00:49:09 +09:00
rmackay9
395eb25041
ThirdOrderCompFilter: delete because now combined with AP_InertialNav library
2012-12-10 00:48:43 +09:00
rmackay9
154e3c33f7
ArduCopter, AP_InertialNav: consolidated ThirdOrderComplementaryFilter into AP_InertialNav to save about 200bytes of RAM
2012-12-10 00:43:11 +09:00
rmackay9
a84d9110bd
AP_Buffer: add size 5 float fifo buffer to predeclared types
2012-12-10 00:41:59 +09:00
rmackay9
49619b15dd
RC_Channel: move RC_CHANNEL_ANGLE, RANGE, ANGLE_RAW type definitions to .h file so they can be used by the main sketch
2012-12-09 16:42:58 +09:00
rmackay9
b4e5176e2a
ArduCopter, AP_InertialSensor: restore mpu6k sample rate to 200hz but keep default filtering at 42hz.
2012-12-09 14:27:33 +09:00
Robert Lefebvre
0eb57bf93d
ACM: TradHeli
...
Fix to make update_throttle_cruise work with stab_throttle scaling.
2012-12-08 15:12:39 -05:00
rmackay9
35f94a6f71
AP_InertialNav: increase Z axis default time constant to 3.0 (was 1.5)
2012-12-07 12:57:12 +09:00
rmackay9
d11ee04888
AP_Camera: add three new parameters DURATION, SERVO_ON and SERVO_OFF to allow better shutter control when using servo.
...
Removed unused variables to save 4 bytes.
Renamed some variables and functions to make more consistent with existing code base.
2012-12-06 17:46:09 +09:00
rmackay9
eac26b2313
RC_Channel_aux: immediately send output to servos when set_radio, set_radio_to_min, set_radio_to_max, set_radio_to_trim or set_servo_out functions are called.
2012-12-06 17:41:42 +09:00
rmackay9
e6686dcab8
ThirdOrderCompFilter: remove last_time_constant_xy and _z static variables to save 8 bytes.
2012-12-06 10:24:58 +09:00
rmackay9
06d1c6b0c1
AP_Buffer: bug fix to allow buffer to completely fill up.
...
Also removed redundant _tail parameter which saves 1 byte.
2012-12-06 10:18:00 +09:00
rmackay9
8b5f66255e
AP_InertialSensor: add comments to give credit for accel calibration method to Rolfe Schmidt
2012-12-05 09:35:55 +09:00
rmackay9
a92b7f3477
AP_InertialSensor: add comments to give credit for accel calibration method to Rolfe Schmidt
2012-12-05 09:20:31 +09:00
Robert Lefebvre
a5c4e65cdf
ACM: TradHeli
...
Fix for Rotor Speed Controller to switch on/off with Ch8 as opposed to the old way (throttle).
2012-12-04 15:09:27 -05:00
Andrew Tridgell
3b18c57691
AP_InertialSensor: removed axis getters for accel/gyro
...
these were only being used in one place, and in that place were used
incorrectly!
2012-12-04 09:11:55 +11:00
Andrew Tridgell
d2f9a705ea
MAVLink: clarify frame of reference for HIL_STATE
2012-12-03 23:31:34 +11:00
Andrew Tridgell
15abc784ec
MAVLink: use a smaller maximum payload to reduce memory
...
this limits the sizes of the MAVLink buffers. It doesn't make a big
difference now, but it will matter when we update to the latest
mavlink code which has some very large packets
2012-12-03 23:28:23 +11:00
Andrew Tridgell
5e77119377
AP_InertialSensor: fixed stub driver to work correctly with sensors HIL
2012-12-03 23:27:21 +11:00
Andrew Tridgell
b237c0583d
AP_InertialSensor: Added INS_MPU6K_FILTER option
...
this allows the user to select the MPU6000 filtering frequency
2012-11-30 07:15:19 +11:00
Andrew Tridgell
4f868e04cc
AP_InertialSensor: return the example sample count in Oilpan
2012-11-30 07:15:19 +11:00
Andrew Tridgell
c7dd042909
InertialNav: update example for new interface
2012-11-30 07:15:19 +11:00
Andrew Tridgell
51080d3e9e
AHRS: update example for new ins interface
2012-11-30 07:15:19 +11:00
Andrew Tridgell
089ae0f9f3
AP_InertialSensor: allow specification of sample rate in init() call
...
this lets the caller not need to know the underlying sample rate. They
just ask for what rate updates happen.
This also changes the MPU6k filtering to be less than half the sample
rate
2012-11-30 07:15:18 +11:00
Andrew Tridgell
951e764442
SITL: prevent the GPS pipe filling up and delaying GPS readings
2012-11-28 14:23:53 +11:00
Andrew Tridgell
471ed9429a
SITL: cleanup RC control for rover support
...
added vehicle type, and setup right initial throttle
2012-11-28 09:35:42 +11:00
Andrew Tridgell
5e7ca5b0f8
AC_PID: suppress the derivative immediately after reset
...
use _last_derivative == NAN to flag that the derivative is invalid
2012-11-27 18:45:49 +11:00
Andrew Tridgell
816fe9d35a
PID: use NAN to flag a D reset
...
this saves a byte per PID for a flag, and gives us a safe way to
reset_I() without causing a spike in D
2012-11-27 18:41:31 +11:00
Andrew Tridgell
eac1ad49d6
AC_PID: save 8 bytes per AC_PID object
...
we don't need the _derivative or _output variables
2012-11-27 18:06:22 +11:00
Andrew Tridgell
1dad9e4e94
AHRS: improved some more doc strings
2012-11-27 15:56:53 +11:00
Andrew Tridgell
eb1d5c2c68
AHRS: improved docs for AHRS_GPS_USE
...
some people are setting this to zero to prevent jitter, which results
in their plane flying off into the distance and never coming back
2012-11-27 15:41:52 +11:00
Andrew Tridgell
5b4321d367
cleanup: removed unused AP_PID library
2012-11-27 13:39:45 +11:00
Andrew Tridgell
f6fce1e238
PID: don't reset _last_error on reset_I()
...
resetting _last_error when you have a non-zero D term causes the D
contribution to the next call to be massively amplified. This can
cause crazy behaviour on auto takeoff in ArduPlane if you have a
non-zero D term for the roll or picth controllers
Thanks to Chris Miser for providing the tlog that allowed this bug to
be found.
2012-11-27 13:35:09 +11:00
Robert Lefebvre
1d12b781a0
AC_PID: Create Leaky Integrator Function.
2012-11-26 21:01:20 -05:00
Robert Lefebvre
6b1fee767a
ACM: TradHeli
...
Creating Stab_Collective Function to allow for different collective ranges between Stabilize and other modes.
This makes for a smoother collective action in Stabilize mode with manual throttle, while still allowing full collective travel in Acro and other modes.
2012-11-26 19:37:20 -05:00
Andrew Tridgell
1059ef2a54
Plane: fixed secondary aileron and manual aux servos in failsafe
...
the servo value wasn't being written to APM_RC while in failsafe for
these aux channels
2012-11-26 23:32:57 +11:00
Michael Oborne
1a3a7d173a
AP remove debug include
2012-11-26 19:02:17 +08:00
Michael Oborne
ed61ef61ed
AP: fix ap hil.
2012-11-26 18:53:51 +08:00
Andrew Tridgell
471d672e54
examples: mark some examples as unable to build
...
some are not worth fixing. Some can't build on 1280/2560
2012-11-24 21:09:55 +11:00
Andrew Tridgell
9c3865b924
RC_Channel: fixed example build
2012-11-24 21:09:00 +11:00
Andrew Tridgell
5a0632340c
Filter: fixed example build
2012-11-24 21:08:48 +11:00
Andrew Tridgell
e7ad044019
DigitalWriteFast: fixed example build
2012-11-24 21:08:36 +11:00
Andrew Tridgell
2f8e467ab2
RangeFinder: fixed example build
2012-11-24 21:08:25 +11:00
Andrew Tridgell
a096a3fda1
AP_PID: fixed example build
2012-11-24 21:08:14 +11:00
Andrew Tridgell
7ea18d5a61
AP_InertialSensor: fixed example build
2012-11-24 21:08:06 +11:00
Andrew Tridgell
57d3609d00
AP_GPS: fixed examples build
2012-11-24 21:07:53 +11:00
Andrew Tridgell
3552f3f9c5
AP_Baro: fixed example build
2012-11-24 21:07:41 +11:00
Andrew Tridgell
eb5ac90e12
AC_PID: fixed example build
2012-11-24 21:07:34 +11:00
rmackay9
74daf73c49
AP_InertialSensor: increase acceptable Z accel offset to be 3.0 G
...
Note: Z offsets do tend to be larger than x and y offsets
2012-11-23 00:34:42 +09:00
Andrew Tridgell
2e63b3ae8e
AP_GPS: added in two more dynamic model enums
2012-11-22 16:23:29 +11:00
Andrew Tridgell
d5e1a75616
APM_RC: fixed APM1 example sketch
2012-11-22 15:42:33 +11:00
Andrew Tridgell
d0a2feb99c
APM_RC: added a test for ISR masking in APM_RC
2012-11-22 15:42:33 +11:00
rmackay9
e32e0b03b4
DigitalWriteFast: added keywords for syntax colouring in Arduino IDE
2012-11-22 12:25:57 +09:00
Andrew Tridgell
0dc8dd5394
SITL: run the timer_scheduler() when there are no SITL packets
...
otherwise we can block in the ADC code
2012-11-21 22:20:14 +11:00
Andrew Tridgell
a71c7b336d
Revert "APM_RC: Modified get_last_update() to be more interrupt friendly"
...
This reverts commit 50ba0ce4fa41c6d4101dff8da17c267a65750522.
It didn't build, and I want to do a release based on tested code
2012-11-21 21:48:02 +11:00
Andrew Tridgell
11141d0af0
INS: make it possible to do accel cal on a different serial port
2012-11-21 21:41:34 +11:00
Andrew Tridgell
d44ceb3fa5
FastSerial: added a vprintf_P() function
...
used by CLI on UART2
2012-11-21 21:41:34 +11:00
Andrew Tridgell
ba4b9b9961
AP_Menu: allow menus to work on ports other than UART0
2012-11-21 21:41:34 +11:00
John Arne Birkeland
e194c6c740
APM_RC: Modified get_last_update() to be more interrupt friendly
2012-11-21 10:34:04 +01:00
Andrew Tridgell
d2170230f4
RC_Channel: added aileron_with_input aux function
2012-11-21 13:34:26 +11:00
Andrew Tridgell
07f5baea9e
SITL: added in recursion check in timer_handler()
2012-11-21 09:10:10 +11:00
Andrew Tridgell
833d433caf
Semaphore: switch to SREG = oldSREG pattern for interrupt mask/restore
2012-11-20 22:31:23 +11:00
Andrew Tridgell
6836a986f3
PeriodicProcess: switch to SREG = oldSREG pattern for interrupt mask/restore
2012-11-20 22:31:23 +11:00
Andrew Tridgell
f843705da3
INS: switch to SREG = oldSREG pattern for interrupt mask/restore
2012-11-20 22:31:23 +11:00
Andrew Tridgell
e331634bc5
AP_Baro: switch to SREG = oldSREG pattern for interrupt mask/restore
2012-11-20 22:31:17 +11:00
Andrew Tridgell
fc63087cb8
AnalogSource: switch to SREG = oldSREG pattern for interrupt mask/restore
2012-11-20 22:31:09 +11:00
Andrew Tridgell
c1a02e49a0
ADC: switch to SREG = oldSREG pattern for interrupt mask/restore
2012-11-20 22:30:03 +11:00
Andrew Tridgell
ccb1f1722e
SITL: fixed a interrupt recursion bug
...
this can be triggered by the timer scheduler re-enabling interrupts
2012-11-20 22:29:26 +11:00
Andrew Tridgell
3c88b0d204
AP_Param: fixed Vector3f elements with 16 character names
2012-11-20 22:27:11 +11:00
Andrew Tridgell
b0713ba412
AP_Param: support up to 16 character parameter names
...
MAVLink allows for 16 chars, with no null termination if all 16 are
used
2012-11-20 21:35:22 +11:00
Andrew Tridgell
a7e537d6c0
INS: set the acceptable calibration error equal on all axes
2012-11-20 19:28:49 +11:00
Andrew Tridgell
40fc0feaf9
INS: show calibration values on failure
...
this will help debug bad calibrations
2012-11-20 19:28:15 +11:00
Andrew Tridgell
85e050f16c
INS: get check for send_msg the right way around!
...
I broke this in my previous commit
2012-11-20 19:10:30 +11:00
Andrew Tridgell
fd3993287d
INS: disable accel calibration on the 1280
...
this would put us well over 128k in sketch size
2012-11-20 18:41:04 +11:00
Andrew Tridgell
9c811671f1
INS: make calibrate_accel() return a bool
...
this will allow APM to auto set MANUAL_LEVEL to 1
2012-11-20 18:32:27 +11:00
Andrew Tridgell
152c12c283
INS: fixed raw accel offset for APM1
...
we now get reasonable offset values
2012-11-20 18:32:27 +11:00
Andrew Tridgell
3776e6108f
INS: use vector subtraction to make code clearer
2012-11-20 18:32:27 +11:00
rmackay9
8ccac5da3d
AP_InertialSensor: correct typo to datasheet's filename
2012-11-20 00:37:42 +09:00
Andrew Tridgell
5a214acca3
AHRS: changed the docs for AHRS_YAW_P and AHRS_RP_P
...
a user had set AHRS_YAW_P to zero. Make it clear that zero is not a
good value. MichaelO will change MP to give a warning for a value
below 0.1
2012-11-19 22:50:05 +11:00
Andrew Tridgell
17c115d2aa
SITL: don't define __AVR_ATmega2560__ on desktop build
...
this allows us to properly separate the desktop build in the code
2012-11-19 09:03:35 +11:00
Andrew Tridgell
7181780d3a
DigitalWriteFast: added README about license and author
2012-11-19 08:46:47 +11:00
Andrew Tridgell
8311062610
AP_OpticalFlow: fixed some memory cast warnings
2012-11-19 08:42:36 +11:00
Andrew Tridgell
10b8030e62
AP_Limits: fixed some memory cast warnings
2012-11-19 08:42:36 +11:00
Andrew Tridgell
fe23d27904
SITL: added SREG declaration
2012-11-19 08:42:36 +11:00
Andrew Tridgell
9e9c08b6d7
DigitalWriteFast: fixed memory cast to work on SITL build
2012-11-19 08:25:53 +11:00
Andrew Tridgell
8d1905a40b
APM: change WIND direction to match convention
...
Thanks to Leo Hogg for pointing this out
2012-11-19 07:16:47 +11:00
rmackay9
67fadd337d
DigitalWriteFast: first addition of lib to speed up read and writes of analog pins
2012-11-19 01:07:10 +09:00
rmackay9
957d366cca
Filter: improved low pass filter allows setting gain using time_step and cutoff freq
2012-11-19 01:06:06 +09:00
rmackay9
01dc9fbe3e
APM_RC: allow ppm sum for as few as 5 channels
2012-11-16 11:07:11 +09:00
rmackay9
47b1bc30d3
APM_RC: fix _last_update definition to resolve build error
2012-11-16 10:00:56 +09:00
John Arne Birkeland
4258490cd8
APM_RC - Interupt safe get_last_update();
2012-11-15 22:42:28 +01:00
rmackay9
73ed6c9dbf
ArduCopter, APM_RC: failsafe if PPM encoder fails to update for 2 seconds
2012-11-15 23:35:36 +09:00
Andrew Tridgell
8561f08b2f
AP_AHRS: prevent a large delta_t from affecting DCM solution
...
this should fix large changes in attitude directly after arming
ArduCopter
2012-11-13 15:33:10 +11:00
Andrew Tridgell
e9e01ae28a
SITL: fixed build with new sonar driver
2012-11-13 15:12:38 +11:00