Commit Graph

6808 Commits

Author SHA1 Message Date
Felix Ruess 2e82195de4 [sim] really add launchsitl as symlink to pprzsim-lauch for backwards compat 2013-02-08 16:26:07 +01:00
Felix Ruess 043cf7246d [build system] more makefile cleanup for lpc stuff
- removed usb_lib target, not used anywhere
- fix lpc bootloader makefile
2013-02-08 15:12:34 +01:00
Felix Ruess 6fddc8c5f4 Merge first round of peripheral refactoring from branch 'peripherals_imu_refactor'
See issue #345

Refactored so far:
- hmc58xx magnetometer refactoring #105
- itg3200 gyro (also imu3000) refactoring
- adxl345 i2c peripheral
- adxl345 spi peripheral
- imu_navgo driver
- imu_umarim driver
- imu_aspirin (via spi) refactoring (only polling, no interrupt handling)
- imu aspirin (i2c)
- imu_ppzuav refactoring #192

* peripherals_imu_refactor: (23 commits)
  [stm32][ppm] compile time config info
  [ms2100] removed superflous var
  [ms2100] fix input buffer reading order
  [stm32][spi] attempt to fix issue #348 - added extra status flags and interrupt to handle different transaction input and output lengths - added support for before_cb, made the callbacks happen while slave is still selected - added support for 0 output_length case
  [peripherals] first shot at refactoring ms2100, not quite nice yet...
  [imu] signs for mag in aspirin imu should be correct again, still needs checking though
  [subsystems][imu] cleaned up imu_ppzuav driver no modules for imu_ppzuav and imu_aspirin_i2c anymore
  [imu] minor config name change for aspirin
  [peripherals] max1168: set spi transaction status to SPITransDone in init
  [subsystems][imu] add aspirin_i2c_v1.[0|5] subsystems, should replace imu_ppzuav closes #192
  [peripherals][itg3200] enable data ready interrupt by default is this really needed to read the RAW_DATA_RDY flag in the status register??
  [peripherals][imu] add adxl345_spi; update adxl345_i2c, itg3200, hmc58xx; update imu_aspirin, imu_b2 and imu_navgo drivers
  aspirin driver seems to work without arch depedent eoc/irq handling, ready for next step
  some more refactoring for hmc58xx and itg3200
  renamed some asprin config options
  [conf][i2c] changed all FOO_I2C_DEVICE defines to FOO_I2C_DEV to be consistent While FOO_I2C_DEVICE is less ambiguous, FOO_I2C_DEV was choosen since most modules already use that. Since this is a user facing config, rather keep existing configs working...
  aspirin1 cleanup, seems to work fine so far...
  working on aspirin1 driver
  macros to print vars with values during compile time
  [peripherals] started reworking the itg3200 peripheral driver - update imu_navgo driver
  ...
2013-02-07 18:05:30 +01:00
Felix Ruess fd36199f34 [rotorcraft] from Ewoud: change feedback gain scale in vertical control for better resolution
The bit shifts are reduced by 5 (increasing the gain by factor 32), GUIDANCE_V_GAIN_SCALER (48) removed
So to get the same gains as before, multiply them by 1.5

Maybe also adjust the GUIDANCE_V_MAX_SUM_ERR, which should really have a sensible default anyway!!!!
On the other hand the max sum error was not adjusted in any airframe file when the GAIN_SCALER was added by Bart 2012-04-03.
So now it's nearly back to the same level as we had then, which was probably good?
2013-02-07 17:56:24 +01:00
Christophe De Wagter 25a1341f24 [warnings] return value 2013-02-07 16:45:16 +01:00
Gautier Hattenberger 5537fd342f [actuators/asctec] fix path and add support for motor configuation to v2 2013-02-07 11:15:20 +01:00
Gautier Hattenberger f6cc321db3 [actuators/asctec] disable the i2c hack for the general case
It can be activated for lisa/m boards with the flag:
USE_I2C_ACTUATORS_REBOOT_HACK

This issue should be handled at the i2c level (#71)
2013-02-07 10:07:02 +01:00
Gautier Hattenberger f4564218ec [ppm] check some rssi level to have a valid ppm frame
Default is always true
It is required on some receivers that are still produicing valid frames
after RC lost (futaba R617FS). It is still possible to get the lost
flag from an rssi reading or at least with a GPIO (usually possible when
the receiver has a led to indicate the RC lost state).
2013-02-07 09:57:30 +01:00
Felix Ruess 7b8a6df1dc [dfu] minor: exit code 1 if it fails 2013-02-07 01:31:24 +01:00
Felix Ruess a57d6e865a [dfu] add dry-run and product options, only matches on Lisa/M by default 2013-02-07 01:21:24 +01:00
Felix Ruess 29a73b0b67 [energy_control] use CONTROL_FREQUENCY instead of hardcoded 100HZ 2013-02-07 00:29:37 +01:00
Felix Ruess 26aa3e2269 [tools/dfu] make the dfu flasher more robust, add verbose option
It doesn't accecpt a "Black Sphere Technologies" manufacturer device anmyore,
this should prevent you from accidentally uploading ap firmware to your BMP.
Should close #349
2013-02-06 19:34:09 +01:00
Felix Ruess 9c3335c7b4 [dfu] pep8: 4spaces, print function for python3 compat 2013-02-06 19:34:08 +01:00
Felix Ruess e981f80475 [lpc21] cleanup the VIC slot assignments
see sw/airborne/arch/lpc21/vic_slots.txt for a summary of used VIC slots
2013-02-05 23:50:16 +01:00
Felix Ruess 92aa49534d [lpc21] removed unused ADCx_VIC_SLOT defines 2013-02-05 22:06:41 +01:00
Felix Ruess e84e488bf9 [rotorcraft] settings for ahrs_int_cmpl_quat (gravity_heuristic), send gyro bias, update fraser to use gravity heuristic 2013-01-24 19:18:17 +01:00
Felix Ruess d5a843ef91 [nps] disable buffering for stdout, so it works nicely in paparazzi center 2013-01-24 13:20:18 +01:00
Felix Ruess e4e9d7e2dd [supervision] removed debug print when launching sim 2013-01-24 13:19:51 +01:00
Felix Ruess 17c6cf2cac [sim] removed launchsitl and replaced it with symlink to pprzsim-launch 2013-01-24 13:01:44 +01:00
Felix Ruess bab3e018af [simulators] renamed ppzsim-launch to pprzsim-launch, minor updates to help 2013-01-24 12:05:26 +01:00
Gautier Hattenberger c3f63ca63b [sim] check targets and ask which simulator to use 2013-01-24 11:35:41 +01:00
Felix Ruess 419f68b0f2 [supervision] add a simple popup to choose the simtype and launch via the new ppzsim-launch python script 2013-01-23 19:00:48 +01:00
Felix Ruess 3e58b39e52 [simulator] added ppzsim-launch script to launch all sims with appropriate parameter checking 2013-01-23 17:11:10 +01:00
Felix Ruess 471ae7cca0 [nps] added option to specify ivy bus 2013-01-23 17:11:09 +01:00
Felix Ruess 9d55d6f19c [nps] added --fg_time_offset parameter to set an offset in seconds so you can fly e.g. in daylight 2013-01-23 16:21:26 +01:00
Felix Ruess a7501408b0 [nps] if NPS_JS_MODE_AXIS is defined: use it as axis for the mode channel instead of buttons
add fraser jsbsim quadrotor model with front/back motors turning CCW, left/right CW
2013-01-23 13:24:58 +01:00
Christophe De Wagter f59fb791a8 [fix][lpc21] LPC + xbee_api in rotorcraft
workaround for lpc: sys_time_usleep only seems to work after a enableIRQ()
closes #352
2013-01-22 17:25:09 +01:00
Felix Ruess c2d60afcb0 [stm32][ppm] compile time config info 2013-01-21 12:01:17 +01:00
Felix Ruess 513852fff1 [ms2100] removed superflous var 2013-01-21 11:56:22 +01:00
Gautier Hattenberger b5229d62f2 [ms2100] fix input buffer reading order 2013-01-21 11:33:52 +01:00
podhrmic 3789ea8c40 [subsystems][imu][ahrs] Drivers for CH Robotic UM6 IMU/AHRS (see www.chrobotics.com).
Generic AHRS for all external AHRS systems (such as GX3 etc) added.
closes #347
2013-01-18 18:48:46 +01:00
Felix Ruess 82e4f5dc46 [dox] add/fix doxygen file blocks for ahrs/ins subsystems 2013-01-18 18:07:40 +01:00
Stephen Dwyer cfc534088a [stm32][spi] attempt to fix issue #348
- added extra status flags and interrupt to handle different transaction input and output lengths
- added support for before_cb, made the callbacks happen while slave is still selected
- added support for 0 output_length case
2013-01-18 01:14:13 +01:00
Felix Ruess 930a3bb655 [dox][navigation] cleanup indentation, add headers and doxygen file blocks 2013-01-18 01:01:29 +01:00
Ewoud Smeur fedcde1366 [feature] magnetometer calibration with current
closes #346
2013-01-17 20:05:02 +01:00
Felix Ruess d35ca39c9d [peripherals] first shot at refactoring ms2100, not quite nice yet... 2013-01-17 20:00:44 +01:00
Felix Ruess 6562e2502d [state_interface] fix validity test functions to not modify state.pos_status 2013-01-17 16:13:35 +01:00
Felix Ruess b5c8fb624a [state_interface] fix float hmsl, thx Freek 2013-01-17 16:12:21 +01:00
Felix Ruess 0dff3b8d83 removed stray endif 2013-01-17 16:08:02 +01:00
Felix Ruess 51accc5fb0 [build_system] removing duplicates for all airborne targets should work now.
pkg-config and the like need to be expanded via $(shell instead of using backquotes.
No spaces between -I and dir for generated module includes"
2013-01-17 15:22:53 +01:00
Felix Ruess 61e219598f Revert "[conf] remove duplicates after setting all flags and sources"
Doesn't work as intended (yet).
The sorting e.g. splits up `pkg-config glib-2.0 --cflags` into
--cflags` glib-2.0 `pkg-config
so it doesn't work anymore...
One way could be to make sure to resolve these first before sorting.

This reverts commit 70168207ab.
2013-01-17 13:58:49 +01:00
Gautier Hattenberger 70168207ab [conf] remove duplicates after setting all flags and sources 2013-01-16 23:23:03 +01:00
Felix Ruess 8685d221b7 [imu] signs for mag in aspirin imu should be correct again, still needs checking though 2013-01-16 20:41:17 +01:00
Felix Ruess 17dbd8ff1f [subsystems][imu] cleaned up imu_ppzuav driver no modules for imu_ppzuav and imu_aspirin_i2c anymore 2013-01-16 18:52:18 +01:00
Felix Ruess 82af4d1d55 [actuators] throw informative error if still attempting to use MIN|MAX_MOTOR with new motor_mixing 2013-01-16 17:35:15 +01:00
Felix Ruess 49f28d4529 [dox] fix some doxygen file blocks for fixedwing firmware 2013-01-16 16:49:40 +01:00
Felix Ruess 297401ca3b Merge branch 'master' into peripherals_imu_refactor 2013-01-16 15:49:38 +01:00
Felix Ruess b1d79819b3 [imu] minor config name change for aspirin 2013-01-16 15:49:30 +01:00
Felix Ruess 961f662a75 [boards/lisa] fix test baro for lisa_l as well.. 2013-01-16 15:45:28 +01:00
Felix Ruess 64ee11a24c [lisa_m] fix test_baro, remove trailing whitespaces and fix indentation in baro_board* 2013-01-16 13:29:12 +01:00