Commit Graph

6154 Commits

Author SHA1 Message Date
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
f63fb29d52 REAME_AP_HAL: minor fixes
reved date, fixed declaration of console, line wrapping issues
2012-12-20 14:51:24 +11:00
Pat Hickey
e932abb7b5 AP_HAL: Documentation for ConsoleDriver 2012-12-20 14:51:24 +11:00
Pat Hickey
95bfe29298 AP_HAL Readme: documentation for Scheduler added 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