Commit Graph

2314 Commits

Author SHA1 Message Date
Pat Hickey
b8c44d2fc0 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
ea4c220ee9 APM_RC: OCR register init moved from ArduCopter/radio.pde to lib inits. 2011-11-25 20:00:18 -08:00
Andrew Tridgell
6093db948b compass: added AP_COMPASS_APM2_SHIELD
this makes the orientation clearer
2011-11-25 20:00:18 -08:00
Andrew Tridgell
649da8e05d purple: adc test not useful if no ADC 2011-11-25 20:00:18 -08:00
Andrew Tridgell
40459653b5 purple: fixed LED and IO pin defintitions 2011-11-25 20:00:18 -08:00
Andrew Tridgell
18986d1d9f barometer: fixed for purple build 2011-11-25 20:00:18 -08:00
Andrew Tridgell
0601f7e8ce barometer: support 'make purple' for barometer example code 2011-11-25 20:00:18 -08:00
Andrew Tridgell
ca76f6d0ec purple: add the remaining hw defines for purple hardware 2011-11-25 20:00:18 -08:00
Andrew Tridgell
41caa949ca fixed InertialSensor stub build 2011-11-25 20:00:18 -08:00
Pat Hickey
1d50bb80fd 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
d2a0bd35f4 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
94423bc335 AP_IMU: fixed shim driver prototype 2011-11-25 20:00:18 -08:00
Andrew Tridgell
1e41b4b2b0 timer_scheduler doesn't exist in HIL_MODE_ATTITUDE 2011-11-25 20:00:18 -08:00
Andrew Tridgell
a3701e521a build: added hlsensors target 2011-11-25 20:00:18 -08:00
Andrew Tridgell
1c20efe4b8 re-organiser sensor declarations
this tries to make the #ifdef nesting easier to understand
2011-11-25 20:00:17 -08:00
Andrew Tridgell
e0488e134f desktop: fixed build with updated dataflash interface 2011-11-25 20:00:17 -08:00
Andrew Tridgell
8245835ea3 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
bb7af8c15a dataflash: fixed datatypes to be compatible with desktop build 2011-11-25 20:00:17 -08:00
Andrew Tridgell
a9c0cbac77 desktop: make DataFlash for Desktop build replace APM1 build 2011-11-25 20:00:17 -08:00
Andrew Tridgell
3d175c449e adc.Init() takes timer_scheduler 2011-11-25 20:00:17 -08:00
Andrew Tridgell
03c7d7bfb6 purple: always declare timer_scheduler 2011-11-25 20:00:17 -08:00
Andrew Tridgell
2a5a15abce test: fixed test code for HIL build 2011-11-25 20:00:17 -08:00
Andrew Tridgell
3072fdda85 adc.Init() needs timer_scheduler 2011-11-25 20:00:17 -08:00
Andrew Tridgell
c0898ab3b9 purple: timer_scheduler should be in all builds 2011-11-25 20:00:17 -08:00
Andrew Tridgell
6e9e857157 make configure default to 2560
1280 is less common for devs these days
2011-11-25 20:00:17 -08:00
Andrew Tridgell
2d8cfc0c3f test: neaten up the output of the dcm test 2011-11-25 20:00:17 -08:00
Pat Hickey
1895458dbf 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
f9d6facdda 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
bad177bfdc removed old commented out code 2011-11-25 20:00:17 -08:00
Pat Hickey
ad0cac670c 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
4015cb0a40 purple: fixed APM_RC.Init() to add isr_registry parameter 2011-11-25 20:00:17 -08:00
Pat Hickey
9e47536924 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
08675a91d8 purple: added config options for purple/APM1 hardware 2011-11-25 20:00:17 -08:00
Pat Hickey
3300032a89 purple: added hardware defines for ArduPlane 2011-11-25 20:00:17 -08:00
Pat Hickey
3131ab16ef 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
475afd6ac2 purple: enable dcm test, and fixed imu test to test the IMU API 2011-11-25 20:00:17 -08:00
Pat Hickey
c2972ff1f9 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
63393b206a purple: added ins test
this tests the InertialSensor library API
2011-11-25 20:00:17 -08:00
Pat Hickey
f1bad83d21 purple: fixed system init for purple sensor objects 2011-11-25 20:00:16 -08:00
Pat Hickey
e3027fe54e purple: pass isr_registry to APM_RC.Init() 2011-11-25 20:00:16 -08:00
Pat Hickey
660174e610 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
4869ac3385 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
3f2692d1da 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
90c5eb8487 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
cc67062442 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
5ee5036fa1 purple: added comment for enabling purple hardware 2011-11-25 20:00:16 -08:00
Pat Hickey
f129909b74 git: added a couple more ignore lines 2011-11-25 20:00:16 -08:00
Pat Hickey
82e7551c90 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
Pat Hickey
a159669cee build: added jtag-program make target
useful for when you have hosed your USB
2011-11-25 20:00:16 -08:00
Pat Hickey
e53bcba4d9 purple: rework AP_IMU library to use AP_IntertialSensor library
the AP_IMU keeps the handling of the calibration, but most of the real
work happens in the lower level AP_IntertialSensor library
2011-11-25 20:00:16 -08:00