Commit Graph

2568 Commits

Author SHA1 Message Date
Andrew Tridgell c8b592f8a7 purple: there are no dipswitches on the purple board 2011-11-25 20:00:18 -08:00
Pat Hickey 5c13aa33be Arducopter: each motors_ pde uses APM_RC.SetFastOutputChannels 2011-11-25 20:00:18 -08:00
Pat Hickey 0549a50e9e APM_RC: _set_speed functions implemented for APM_RC_APM1 and _Purple
* I have not tested any of these on real hardware.
2011-11-25 20:00:18 -08:00
Pat Hickey 718f3dee00 APM_RC: OCR register init moved from ArduCopter/radio.pde to lib inits. 2011-11-25 20:00:18 -08:00
Andrew Tridgell 67e5c89226 compass: added AP_COMPASS_APM2_SHIELD
this makes the orientation clearer
2011-11-25 20:00:18 -08:00
Andrew Tridgell b6bab1d92d purple: adc test not useful if no ADC 2011-11-25 20:00:18 -08:00
Andrew Tridgell 6c856dde4e purple: fixed LED and IO pin defintitions 2011-11-25 20:00:18 -08:00
Andrew Tridgell 2259bacd67 barometer: fixed for purple build 2011-11-25 20:00:18 -08:00
Andrew Tridgell e3a74626d6 barometer: support 'make purple' for barometer example code 2011-11-25 20:00:18 -08:00
Andrew Tridgell 2db5a2b5e2 purple: add the remaining hw defines for purple hardware 2011-11-25 20:00:18 -08:00
Andrew Tridgell 252e858011 fixed InertialSensor stub build 2011-11-25 20:00:18 -08:00
Pat Hickey 8300e21a8c hil-sensors ArduCopter: fixes to make hil-sensors build work properly
* requires new stub libraries for InertialSensor and PeriodicProcess.
2011-11-25 20:00:18 -08:00
Pat Hickey 48f92c49fa hil-sensors: added stub libraries for InertialSensor and PeriodicProcess
* Also added dummy ivar to APM_BMP085_hil
2011-11-25 20:00:18 -08:00
Andrew Tridgell 1a8a1973a1 AP_IMU: fixed shim driver prototype 2011-11-25 20:00:18 -08:00
Andrew Tridgell 01cfd64327 timer_scheduler doesn't exist in HIL_MODE_ATTITUDE 2011-11-25 20:00:18 -08:00
Andrew Tridgell 0d3e07c2f7 build: added hlsensors target 2011-11-25 20:00:18 -08:00
Andrew Tridgell 446a9aac84 re-organiser sensor declarations
this tries to make the #ifdef nesting easier to understand
2011-11-25 20:00:17 -08:00
Andrew Tridgell bbd6a6cdbb desktop: fixed build with updated dataflash interface 2011-11-25 20:00:17 -08:00
Andrew Tridgell 55bd85fe90 desktop: make AP_InertialSensor pure virtual
fixed a link error in Desktop build

thanks to Pat for the C++ foo
2011-11-25 20:00:17 -08:00
Andrew Tridgell 01cd9cc6d6 dataflash: fixed datatypes to be compatible with desktop build 2011-11-25 20:00:17 -08:00
Andrew Tridgell da50903649 desktop: make DataFlash for Desktop build replace APM1 build 2011-11-25 20:00:17 -08:00
Andrew Tridgell ee3254ef8f adc.Init() takes timer_scheduler 2011-11-25 20:00:17 -08:00
Andrew Tridgell 992fc87112 purple: always declare timer_scheduler 2011-11-25 20:00:17 -08:00
Andrew Tridgell c11ea91721 test: fixed test code for HIL build 2011-11-25 20:00:17 -08:00
Andrew Tridgell 8e9851c217 adc.Init() needs timer_scheduler 2011-11-25 20:00:17 -08:00
Andrew Tridgell 23ccce23d0 purple: timer_scheduler should be in all builds 2011-11-25 20:00:17 -08:00
Andrew Tridgell 3b5c124fc6 make configure default to 2560
1280 is less common for devs these days
2011-11-25 20:00:17 -08:00
Andrew Tridgell 3945d6702b test: neaten up the output of the dcm test 2011-11-25 20:00:17 -08:00
Pat Hickey c93d7a9560 purple: added new parameters to Init() functions
this adapts the test code for the purple API changes
2011-11-25 20:00:17 -08:00
Pat Hickey ed74d1c987 test: added new passthru test
this passes radio inputs direct to servo outputs, which is useful for
hardware testing
2011-11-25 20:00:17 -08:00
Pat Hickey 71ebf1f543 removed old commented out code 2011-11-25 20:00:17 -08:00
Pat Hickey fefc7da1d1 purple: added new parameters needed for new library APIs
new APIs pass in timer_scheduler. We also to init the isr_registry
2011-11-25 20:00:17 -08:00
Pat Hickey 5626f4a127 purple: fixed APM_RC.Init() to add isr_registry parameter 2011-11-25 20:00:17 -08:00
Pat Hickey d3a45a053d purple: declare sensors for purple library rework
we need some different declarations to match the new APIs
2011-11-25 20:00:17 -08:00
Pat Hickey d5ebf30d74 purple: added config options for purple/APM1 hardware 2011-11-25 20:00:17 -08:00
Pat Hickey f580a4bea0 purple: added hardware defines for ArduPlane 2011-11-25 20:00:17 -08:00
Pat Hickey d2f4fea58a remove BROKEN_SLIDER code
use the new CLI_SLIDER_ENABLED option and the "hit ENTER 3 times"
method
2011-11-25 20:00:17 -08:00
Pat Hickey 36923c0996 purple: enable dcm test, and fixed imu test to test the IMU API 2011-11-25 20:00:17 -08:00
Pat Hickey ddbb6c3348 purple: fixed CLI code for non-ADC hardware and no sonar
purple hardware does not use the ADC driver
2011-11-25 20:00:17 -08:00
Pat Hickey 99ae313695 purple: added ins test
this tests the InertialSensor library API
2011-11-25 20:00:17 -08:00
Pat Hickey 0f25ae0fd7 purple: fixed system init for purple sensor objects 2011-11-25 20:00:16 -08:00
Pat Hickey 8dffdd18d4 purple: pass isr_registry to APM_RC.Init() 2011-11-25 20:00:16 -08:00
Pat Hickey bbae76efb5 purple: switch ArduCopter to new sensor objects
this uses the new sensor abstractions for the purple/APM1 hardware
choice
2011-11-25 20:00:16 -08:00
Pat Hickey bc5a59e5fe purple: use the new LED_ON/LED_OFF macros for LED level
this gets this right on both APM1 and purple for ArduCopter
2011-11-25 20:00:16 -08:00
Pat Hickey 1fc57f06b6 purple: added configuration logic for APM1 versus purple hardware
This abstracts the names for LED on/off (due to the different wiring
of LEDs on APM1 and purple), and adds the needed config defines for
the two hardware types
2011-11-25 20:00:16 -08:00
Pat Hickey 910a94fcbe purple: added defines for APM hardware selection
we can now choose APM_HARDWARE_APM1 or APM_HARDWARE_PURPLE
2011-11-25 20:00:16 -08:00
Pat Hickey 395f43bee8 build: added new command line build targets
this makes it more convenient to build common options
2011-11-25 20:00:16 -08:00
Pat Hickey 0c2e443f75 purple: added comment for enabling purple hardware 2011-11-25 20:00:16 -08:00
Pat Hickey 075bd91a62 git: added a couple more ignore lines 2011-11-25 20:00:16 -08:00
Pat Hickey afef359ee9 purple: rework DataFlash to separate purple and APM1 hardware support
the purple support is still a work in progress, but the APM1 support
should be fine
2011-11-25 20:00:16 -08:00