Andrew Tridgell
30b50a858d
Filter: fixed a warning on PX4
12 years ago
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()
12 years ago
Andrew Tridgell
7c7a215934
HAL_PX4: fixes for new Scheduler API
12 years ago
Andrew Tridgell
6aecdb3d7d
HAL_AVR: tweak the default serial buffer sizes
...
this reduces memory fragmentation a lot, saving memory
12 years ago
Andrew Tridgell
0cb8192861
HAL_AVR: ensure we can handle a 256 size buffer
12 years ago
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
12 years ago
Pat Hickey
7b5153c79b
AP_HAL_AVR_SITL: main calls system_initialized
12 years ago
Pat Hickey
4d5d08ad10
AP_HAL_Empty: main calls system_initialized
12 years ago
Pat Hickey
2b621dc579
AP_HAL_AVR: main calls system_initialized
12 years ago
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.
12 years ago
James Bielman
edfddbab57
AP_HAL_SMACCM: Implement new scheduler methods.
...
- Set the system initialized after call to "setup" in main.
12 years ago
Pat Hickey
910e09fc96
AP_InertialSensor_MPU6000: fix sync/async semaphore usage with new scheduler
12 years ago
Pat Hickey
83adb72f16
AP_HAL_Empty: Stub out new Scheduler methods
12 years ago
Pat Hickey
a228519b18
AP_HAL_AVR_SITL: Implement new Scheduler methods
12 years ago
Pat Hickey
930a789b25
AP_HAL_AVR: Implement new scheduler methods
12 years ago
Pat Hickey
7a0f95c11c
AP_HAL: add Scheduler methods in_timerprocess, system_initialize
12 years ago
Pat Hickey
6d64bf2921
AP_HAL_SMACCM: Semaphores fixup
12 years ago
James Bielman
9abf3d2c0f
AP_HAL_SMACCM: Panic if taking a semaphore held by current thread.
...
- Catches bugs with attempted recursive semaphore taking.
12 years ago
Andrew Tridgell
ea3b405959
MAVLink: moved CRC table into program
...
this saves 256 bytes of memory
12 years ago
Andrew Tridgell
f3783b0306
AP_GPS: put SIRF init_messages in progmem
...
this saves 32 bytes of memory
12 years ago
Andrew Tridgell
dbad61816b
AP_InertialSensor: only build Oilpan driver on APM1
12 years ago
Andrew Tridgell
2c603a0960
AP_Baro: only build BMP085 driver on APM1
12 years ago
Andrew Tridgell
63634c4e8a
HAL_SMACCM: fixed build warning
12 years ago
Andrew Tridgell
130aaae168
HAL_AVR: switched to 8 bit mask
...
max buffer size is now 256. This makes serial faster
12 years ago
Andrew Tridgell
03b26c7d6d
AP_Motors: fixed setup of ESC update speeds
12 years ago
Pat Hickey
ea6147162a
AP_HAL_SMACCM: fix to goofed PPM_MAX_CHANNELS macro
12 years ago
Pat Hickey
8f5da03f93
AP_HAL_SMACCM: guard compilation on CONFIG_HAL_BOARD
12 years ago
Pat Hickey
59365f1b90
AP_HAL_AVR: UARTDriver guard needs AP_HAL_Boards.h
12 years ago
Pat Hickey
ab5522a20a
AP_HAL_SMACCM: remove meaningless example dir
12 years ago
James Bielman
0160a10ba7
AP_HAL_SMACCM: Increase scheduler stack sizes.
12 years ago
James Bielman
46b0742710
AP_HAL_SMACCM: Fix pin conflict between uartC and I2C.
...
- uartC is currently disconnected.
- Set uartB to USART6 for GPS communication.
12 years ago
James Bielman
7827a4a54a
ArduCopter: Add AP_HAL_SMACCM support.
...
- Added default configuration to "config.h".
- Added main function to run under FreeRTOS with HWF4.
12 years ago
James Bielman
4e0806186f
AP_HAL_SMACCM: Implement RCInput driver.
12 years ago
James Bielman
8e38ef6567
MPU6000: Flip Y and Z axes for SMACCM_HAL.
...
- The accelerometer is upside-down on the PX4FMU vs the APM2.
12 years ago
James Bielman
1309b7332a
MPU6000: Use signed addition when accumulating readings.
...
- Fixes very erratic accel readings on the PX4 board.
12 years ago
Andrew Tridgell
8cb0ed364a
AP_Baro: read 4 pressure values for every temperature value on BMP085
12 years ago
Andrew Tridgell
1ce1fa3864
AP_Baro: update example to use accumulate()
12 years ago
Andrew Tridgell
8ceabc97f1
AP_Baro: added accumulate() function
...
this allows us to read the BMP085 much faster
12 years ago
Andrew Tridgell
8f424cdf21
AP_Compass: ensure we check we got the semaphore
12 years ago
Andrew Tridgell
e76c77e86a
AP_HAL: mark semaphore take operations as WARN_IF_UNUSED
...
this prevents common bugs
12 years ago
Andrew Tridgell
90523ae975
AP_HAL: added WARN_IF_UNUSED macro
...
useful for key functions
12 years ago
Andrew Tridgell
8e1bee3a5e
HAL_AVR: make _taken volatile
12 years ago
Andrew Tridgell
f48790a56e
AP_InertialSensor: poll for new data in num_samples_available()
...
this lowers the latency for new data
12 years ago
Andrew Tridgell
4ab1cddd15
AP_InertialSensor: ensure we always have the SPI semaphore for MPU6k
12 years ago
Andrew Tridgell
9b972af307
AP_Baro: skip timer if we don't get the SPI semaphore
12 years ago
Andrew Tridgell
dc66708856
MAVLink: cope with available() returning -1
12 years ago
Andrew Tridgell
7be1335b3a
AP_Param: removed copy_name() and add token to find_by_index()
...
this allows callers to avoid another var_info traverse
12 years ago
Andrew Tridgell
c9fe7fe932
MAVLink: use buffer send and fast CRC if possible
12 years ago
Andrew Tridgell
df91734883
MAVLink: import latest upstream messages and headers
12 years ago
Andrew Tridgell
feeebae03f
GCS_MAVLink: added comm_send_buffer()
...
this reduces the overhead of sending messages
12 years ago