Commit Graph

7404 Commits

Author SHA1 Message Date
Anton Babushkin 42a7d80a81 mc_att_control: limit max yaw setpoint offset 2014-05-14 14:55:14 +02:00
Lorenz Meier c646a8ff1d Let the param set command default to non-failing, because unknown params are in the script default init not a reason to give up on the complete boot 2014-05-14 14:23:16 +02:00
Lorenz Meier e5d28b2393 Hotfix: Fixed wing default parameters contained an unknown name 2014-05-14 14:15:40 +02:00
Lorenz Meier 63905265eb Save code size on commander, reduce stack size of starting tool (NOT OF THE APP ITSELF!) 2014-05-14 14:04:04 +02:00
Lorenz Meier a1aa8e84ff Reduce top stack usage 2014-05-14 14:03:47 +02:00
Lorenz Meier 6018ffa462 nshterm: Use only the stack we really need 2014-05-14 14:02:01 +02:00
Lorenz Meier 15eaa3aed4 eeprom driver: Use less excessive perf counters on EEPROM 2014-05-14 14:00:51 +02:00
Lorenz Meier 332e08b44a px4io driver: Deallocate perf counters in destructor properly 2014-05-14 14:00:31 +02:00
Anton Babushkin ae1faa6de6 MC mixer input limiting implemented. 2014-05-14 13:45:43 +02:00
Anton Babushkin b60964eb9c Multirotor mixer: more careful limiting 2014-05-14 13:27:53 +02:00
Lorenz Meier c2f825647e px4io driver: Small fix 2014-05-14 13:06:20 +02:00
Lorenz Meier a62ac72b2e px4io: Hotfix for IO driver, do not rely on the reported channel count to limit array lengths 2014-05-14 12:48:54 +02:00
Lorenz Meier 8deb1c9160 Read out the RC status at the same transfer as the channels to ensure we got synchronized data 2014-05-14 08:00:41 +02:00
Lorenz Meier 97fb361ea9 Set an RC status flag so that we can read out the RC status in parallel to the RC data 2014-05-14 08:00:00 +02:00
Jean Cyr cd9a72e391 Free data manager work items the same way they were allocated
Since data manager work items are allocated in groups of 8, they need to
be freed the same way should the manager need to stop.
2014-05-13 20:24:19 -04:00
Jean Cyr 8d3fed0944 Reduce potential dataman memory fragmentation
The data manager dynamically allocates relatively small work item blocks
on an as needed basis. It never frees these, instead maintaining then in
a list of available block for reuse when needed. Even if these blocks
are small, the are required at non-deterministic times and can end up
scattered in memory thus causing memory fragmentation. In order to
mitigate this problems work item blocks are allocated in groups of 8 in
contiguous memory to reduce the number of scattered memory allocations.
In reality, based on current usage, rarely will more than one group of 8
be allocated.
2014-05-13 19:59:44 -04:00
Ash Charles 2d29c5bd72 [aerocore] Remove commented code for GPIO2
GPIO2 is currently used for the tone alarm, not an arbitrary GPIO.

Signed-off-by: Ash Charles <ashcharles@gmail.com>
2014-05-13 14:06:59 -07:00
Ash Charles 7d0850a710 [l3gd20] Style fixes for l3g4200d integration
As requested here [1], this fixes some of the style errors
introduced with the addition of l3g4200d support to the l3gd20
driver.  Gyro orientation is set conditionally for the aerocore
board.

[1] https://github.com/PX4/Firmware/pull/937

Signed-off-by: Ash Charles <ashcharles@gmail.com>
2014-05-13 14:00:44 -07:00
Ash Charles 9db966e058 [gps] Conditionally set default GPS port
AeroCore uses ttyS0 not ttyS3 as the serial port connected to the GPS.
Now, a board can set GPS_DEFAULT_UART_PORT to override the default setting
in a board-specific fashion.

Signed-off-by: Ash Charles <ashcharles@gmail.com>
2014-05-13 13:47:40 -07:00
Ash Charles 3b72e31e83 [l3gd20] Add support for L3G4200D chip
The L3G4200D chip is very similar to the L3GD20[H] parts and can use
the same driver with minor adjustments.  There are four differences:
 * WHO_AM_I register is 0xD3 (not 0xD4 or 0xD7):
   - added an extra case to the driver probe
 * Sampling rates are marginally different:
   - setting sampling rate now depends on the detected chip
 * I2C address range is different:
   - no changes as the driver doesn't support i2c access
 * the L3G4200D has a self-test function:
   - no changes---chose not to implement feature in driver

Signed-off-by: Ash Charles <ashcharles@gmail.com>
2014-05-13 10:01:17 -07:00
Ash Charles e5508a1aa0 Add Gumstix AeroCore device
Based on the work of Andrew Smith [1], add board configuration and device
drivers to support the Gumstix AeroCore (previously Aerodroid) board [2]. The
AeroCore is an autopilot board based on a STM32F427 similar to the FMUv2.

[1] https://github.com/smithandrewc/Firmware
[2] https://store.gumstix.com/index.php/products/585/

Signed-off-by: Ash Charles <ashcharles@gmail.com>
2014-05-13 09:41:41 -07:00
Lorenz Meier c9162f428a sdlog2: Remove an unreachable comparison 2014-05-13 10:53:54 +02:00
Lorenz Meier c04064fd6a sdlog2: Log minimalistic GPS SNR for first 16 satellites 2014-05-13 10:53:18 +02:00
Lorenz Meier 178a3e8567 Merge pull request #927 from PX4/ram_cleanup
Ram cleanup
2014-05-13 01:10:05 -07:00
Julian Oes 634157210c Merge pull request #922 from PX4/manualcontrolrename
Rename variables for manual control setpoint
2014-05-13 09:40:56 +02:00
Thomas Gubler 8f6cd3a3ae Merge remote-tracking branch 'upstream/master' into manualcontrolrename
Conflicts:
	src/modules/fw_att_control/fw_att_control_main.cpp
2014-05-13 09:28:46 +02:00
Lorenz Meier 80ecaf7946 Merge pull request #931 from PX4/fwtrim
fw att control: manual setpoint: fix comment and trim sign
2014-05-13 00:04:46 -07:00
Thomas Gubler bafa344dcb fw att control: manual setpoint: fix comment and trim sign 2014-05-13 09:00:12 +02:00
Lorenz Meier 965b42fe96 Merge pull request #926 from ultrasystem/patch-2
Output a debug string is Invalid @ parameter #1
2014-05-12 23:58:35 -07:00
Lorenz Meier ec409a1337 EKF / Paul Riseborough: Added guards for mag and airspeed innovations 2014-05-13 08:53:09 +02:00
Lorenz Meier b8aae38e84 Merge branch 'ekf_params' of github.com:PX4/Firmware into ekf_params 2014-05-13 08:52:01 +02:00
Lorenz Meier f10395e05a HoTT driver: Add timestamp, rename function-level variable from _esc to esc to match conventions 2014-05-13 08:38:07 +02:00
Lorenz Meier 37970c5828 hrt driver: Make a debug data array compiling condiditional on PPM debug, we are never accessing it in normal operation 2014-05-13 08:06:33 +02:00
Lorenz Meier be6b9a1b36 hmc5883: Change static topic publication to the class member it should be, initialize collect phase (linter find) 2014-05-13 08:05:36 +02:00
Lorenz Meier 227d52b02c blinkm: Remove the barrage of static variables in mainloop, eating up RAM for everybody 2014-05-13 08:04:53 +02:00
Lorenz Meier 7e9f234da7 Reduce buffer sizes to reasonable quantities for UART 2014-05-13 08:03:39 +02:00
Lorenz Meier 1e0e795de7 Start the data manager and navigator at the last moment to leverage their dynamic allocations to use smaller chunks of RAM 2014-05-13 08:03:01 +02:00
Lorenz Meier e09c0dd8b9 Reduce RAM footprint of HoTT driver, fix publication to contain ESC data 2014-05-12 22:57:07 +02:00
Lorenz Meier 29ffb3bad3 mkblctrl: Moved motor data struct into class 2014-05-12 22:11:28 +02:00
Lorenz Meier 51e5a73a7e mavlink: Removed static buffers where no static buffers where necessary 2014-05-12 22:10:52 +02:00
Lorenz Meier 95e6fc30e2 navigator: Removed static where no static should have been used 2014-05-12 22:10:28 +02:00
ultrasystem ad51b4c24b Update paramters for warnx() 2014-05-12 23:08:34 +08:00
Lorenz Meier 15e65fda26 Merge pull request #925 from PX4/linewidth
fix code style script: enforce max line width of 120 chars
2014-05-12 06:39:52 -07:00
Lorenz Meier 157c360caa Merge pull request #894 from PX4/yawrate_limit
mc_att_control: MC_YAWRATE_MAX parameter added
2014-05-12 06:37:08 -07:00
ultrasystem db2b85cbd4 Output a debug string is Invalid @ parameter #1
line 143 may be crash or buffer overflow. because the argument must is a pointer as char type  that and have a valid buffer
2014-05-12 21:17:19 +08:00
Thomas Gubler 47d21f0c57 Merge pull request #744 from thomasgubler/fw_landing_rangefinder
Fw landing rangefinder
2014-05-12 14:52:33 +02:00
Thomas Gubler 15699549a2 manual control setpoint: add comment about sign 2014-05-12 13:35:11 +02:00
Lorenz Meier 6906dc4eda Minor improvements to estimator 2014-05-12 11:23:48 +02:00
Thomas Gubler f169497e86 fix code style script: enforce max line width of 120 chars 2014-05-12 11:13:05 +02:00
Lorenz Meier c384dc993c Merge pull request #924 from PX4/qu4d
Steadidrone Qu4d startup script
2014-05-12 01:03:34 -07:00