Lorenz Meier
c5cb3cfd21
Make the IO mixer upload report not only a global success / fail flag, but on transfer basis. Also use a crude lock to avoid updating the mixer while it runs (we have no proper mutexes on IO, and this is a pure read/write locking case with two locks, which should make the execution even with this crude approach thread-safe).
2014-01-24 17:34:42 +01:00
Lorenz Meier
92a6c7d734
Set timeouts back to short, now that we have multiple tries in the uploader. This ensures we try often enough in the 200 ms IO bootloader wait phase to hit it.
2014-01-24 17:33:04 +01:00
Lorenz Meier
73a483c265
Finally fix the timing race between the IO driver, IO uploader and the on-IO firmware by making the uploader tolerant of timing offsets.
2014-01-24 17:30:40 +01:00
Lorenz Meier
1960f7d6c5
Initialize null pointers correctly, always set the pointer to null after deletes. Remove some verbosity from startup and do not try to initialise IO when we just want to reboot it into the bootloader.
2014-01-24 17:29:27 +01:00
Lorenz Meier
2f968357a3
Make the protocol version more descriptive - helps to understand when / how px4io detect fails.
2014-01-24 17:28:04 +01:00
Lorenz Meier
4f78c3e605
Disable PX4IO debug - spams console on comms failure. Each command does report the failure separately, so we get a better feedback level without the spam.
2014-01-24 17:27:28 +01:00
Lorenz Meier
65118f0c2e
Disable debug in the airspeed sensor driver - prevents console spam if it fails (and on probing during startup)
2014-01-24 17:26:13 +01:00
Lorenz Meier
7cd2296e1d
Merge branch 'master' into sbus2
2014-01-24 14:20:55 +01:00
Andrew Tridgell
d8c1131f1e
px4io: improved reliability of forceupdate re-starting px4io
...
this adds a 0.1s delay after update to give px4io time to boot. It
removes the need for the user to reboot after an IO update
2014-01-24 12:35:19 +01:00
Anton Babushkin
58792c5ca6
Use double for lat/lon in vehicle_global_position topic, use filed names lat, lon, alt, vel_n, vel_e, vel_d for global positions
2014-01-24 00:06:10 +01:00
Anton Babushkin
b3d98e4a19
Merge branch 'master' into beta
2014-01-23 23:10:05 +01:00
Anton Babushkin
1cffa9d2f7
position_setpoint_triplet refactoring finished
2014-01-23 22:41:26 +01:00
Lorenz Meier
8bdbce5fe2
We do not know all secret S.BUS2 codes yet
2014-01-23 22:27:04 +01:00
Lorenz Meier
0c116e8de5
Implemented S.Bus 2 decoding support
2014-01-23 22:10:03 +01:00
Andrew Tridgell
4524fe3e48
px4fmu: added PWM_SERVO_SET_COUNT API
...
this allows the balance between PWM channels and GPIOs to be changed
after the main flight code has started, which makes it possible to
change the balance with a parameter in APM
2014-01-23 21:41:07 +01:00
Andrew Tridgell
dda50c62bf
hmc5883: much faster calibration code with bug fixes
...
this fixes two bugs in "hmc5883 calibrate" and also makes it much
faster, so it can be run on every boot. It now uses the correct 2.5Ga
range when calibrating, and fixes the expected values for X/Y/Z axes
The basic calibration approach is similar to the APM2 driver, waiting
for 10 good samples after discarding some initial samples. That allows
the calibration to run fast enough that it can be done on every boot
without causing too much boot delay.
2014-01-23 21:40:29 +01:00
Anton Babushkin
6ed6c5bb1f
cammander, navigator: code style fixed
2014-01-23 17:56:38 +01:00
Anton Babushkin
3fe5e88fbe
Reverse offboard changes in mc_att_control
2014-01-23 17:53:55 +01:00
Anton Babushkin
0877fcba03
offboard setpoint support
2014-01-23 17:52:02 +01:00
Anton Babushkin
f529bd463c
Merge branch 'beta' into offboard
2014-01-23 17:34:56 +01:00
Anton Babushkin
d4ae1c01ad
Revert "added offboard data handling in mc_att_control_main.cpp"
...
This reverts commit 6bb85a323c .
2014-01-23 12:24:04 +01:00
Anton Babushkin
6acb8fa66f
Replace mission_item_triplet with position_setpoint_triplet, WIP
2014-01-23 12:16:02 +01:00
Diogo Machado
6bb85a323c
added offboard data handling in mc_att_control_main.cpp
2014-01-23 11:01:22 +00:00
Lorenz Meier
6a40acdbdc
Fixed PPM warning to be only printed with PPM inputs enabled
2014-01-23 09:58:22 +01:00
Lorenz Meier
9e72e72644
Make SBUS switching conditional to be friendly to IO v1
2014-01-23 09:29:59 +01:00
Lorenz Meier
c74660fec5
Merge branch 'rssi' of github.com:PX4/Firmware into rssi
2014-01-23 09:18:01 +01:00
Lorenz Meier
2aa76f1a3c
Fixes to memory check handling, split out switch handling to allow separate initialization
2014-01-23 09:17:46 +01:00
Lorenz Meier
d77a15e94f
Last small fixes to IO driver to support updates with and without switch pressed and with and without px4io start call before the forceupdate call
2014-01-23 09:16:40 +01:00
px4dev
0994412cca
Fix the initialisation and operation of the PX4IO ADC - now RSSI and VSERVO voltages should be read correctly.
2014-01-22 23:52:06 -08:00
px4dev
1ac8501d95
Clear the screen more properly.
2014-01-22 23:52:06 -08:00
Lorenz Meier
8833f81b48
Do not make PX4IO start mandatory for forceupdate
2014-01-23 08:45:29 +01:00
Lorenz Meier
c3e4e4ee68
Build fix, replaced usleep with up_udelay in memory lockdown state
2014-01-23 08:26:53 +01:00
Lorenz Meier
8c8e9a4ff9
Enable the PX4IO self check and debug interfaces. No reason to disable them, since they are runtime-configured (and needed, for the case of memory)
2014-01-23 08:25:37 +01:00
Lorenz Meier
1c40ce968a
RC config params set to more useful default values - needs more testing
2014-01-23 08:01:55 +01:00
Lorenz Meier
ba19a1ba15
Merge branch 'master' of github.com:PX4/Firmware into rssi
2014-01-23 07:49:18 +01:00
Anton Babushkin
c9b82d262e
Merge branch 'master' into beta
2014-01-23 00:31:15 +01:00
Anton Babushkin
f069fe9f61
OFFBOARD mode support in commander, mavlink, mc_att_control, WIP
2014-01-22 19:25:14 +01:00
Lorenz Meier
6c23e2f159
Added Doxygen main page
2014-01-22 17:20:55 +01:00
Anton Babushkin
37e28e7fa8
commander: OFFBOARD mode added, WIP
2014-01-22 17:04:07 +01:00
Anton Babushkin
1dc9785083
OFFBOARD switch added, WIP
2014-01-22 16:52:35 +01:00
Anton Babushkin
93e096f63b
position_estimator_inav: minor bug fixed, write debug log on crash
2014-01-22 16:17:56 +01:00
Thomas Gubler
30cf4097c5
fw: remove duplicate feedforward
2014-01-22 15:07:49 +01:00
Thomas Gubler
480d31f754
fw: increase invalid airspeed threshold
2014-01-22 14:58:09 +01:00
Anton Babushkin
fdef07912c
mc_pos_control: altitude setpoint offset limiting fixed
2014-01-22 11:19:00 +01:00
Lorenz Meier
5bc61c3c57
S.BUS output disable cleanup
2014-01-22 08:30:48 +01:00
Anton Babushkin
bdf440e375
mc_att_control: reset integrals when disarmed
2014-01-21 19:02:03 +01:00
Anton Babushkin
29759ce092
mc_pos_control: MPC_LAND_TILT_MAX param name is too long, replace with MPC_LAND_TILT
2014-01-21 19:00:06 +01:00
Anton Babushkin
eb9fd154fe
commander: more robust RC failsafe, but still hotfix, needs to be rewritten
2014-01-21 15:26:51 +01:00
Anton Babushkin
2e472cf918
attitude_estimator_ekf: acc comp bug fixed, estimated gravity vector logging
2014-01-20 23:44:04 +01:00
Anton Babushkin
7956c8b08e
position_estimator_inav: default parameters updated
2014-01-20 18:35:06 +01:00