Commit Graph

246 Commits

Author SHA1 Message Date
CAI Dongcai 0dfd8cd039 Update fw_att_control_main.cpp
Make the declarations of the  variables "roll_sp, pitch_sp, yaw_sp, throttle_sp," in the main loop more readable.
2017-06-04 18:17:29 +08:00
Daniel Agar 64ed96d81a clang-tidy readability-simplify-boolean-expr 2017-06-02 19:35:18 -04:00
Daniel Agar c5e0bf1c2f uORB combine VTOL FW and MC virtual topics (#7008) 2017-04-09 13:17:20 -04:00
Daniel Agar e63ee9d8bd fw_att wheel controller enable param (default off) 2017-03-05 11:41:14 +08:00
Daniel Agar 1b2973f602 VTOL fw_att don't reset integrators during transition 2017-02-25 17:57:05 +01:00
Daniel Agar ecb2511a7b add matrix copyTo 2017-02-25 11:04:02 +01:00
Daniel Agar e81e6a8296 fw_att_control add rattitude mode 2017-02-18 08:03:19 +01:00
Daniel Agar 9120082b0c fw_att_control stabilized mode publish att_sp quat 2017-02-18 08:03:19 +01:00
Daniel Agar 12e5aca028 fw_att_control remove unused accel sub 2017-02-18 08:03:19 +01:00
Andreas Antener 459b8b7c7e FW att: removed unused fields again 2017-02-18 08:03:19 +01:00
Andreas Antener b19cd19411 FW Acro: udpate ECL and implemented fixed-wing Acro 2017-02-18 08:03:19 +01:00
Lorenz Meier 51c8e90508 FW att control: Increase stack size to ensure limits 2017-02-17 22:31:55 +01:00
aivian 7a77e27a79 fixed wing offboard attitude setpoint fix (#6112) 2017-02-15 23:51:50 -05:00
Daniel Agar e927f3e040 clang-tidy modernize-use-nullptr 2017-02-01 22:15:50 -05:00
Daniel Agar b721f5fc7c fw_att_control init all fields and delete unused 2017-01-04 16:08:20 -05:00
Sander Smeets 8defe7e7d9 Revert scaling change 2016-12-26 16:56:22 +01:00
Sander Smeets ba3796ebaf Work with double scaling 2016-12-26 16:56:22 +01:00
Sander Smeets 17a089af31 Fix orb poll 2016-12-26 16:56:22 +01:00
Sander Smeets 7fd5aae834 Apply battery voltage throttle scaling to FW (ported from #5778) 2016-12-26 16:56:22 +01:00
CarlOlsson 93fb02bfa3 fw_att_ctrl: Code cleanup
Signed-off-by: CarlOlsson <carlolsson.co@gmail.com>
2016-10-31 15:17:14 +01:00
Julian Oes 2fff2ab9ac Add switch for landing gear, pass it to actuators 2016-10-20 23:17:05 +02:00
Beat Küng 241fd629ce ERROR macro: get rid of the many 'oddly, ERROR is not defined for c++', use PX4_ERROR 2016-09-30 13:50:51 +02:00
Julian Oes 8ff237c69f Remove size optimization for individual modules
It makes more sense to set the optimization flags on a platform basis
instead of individually for each module. This allows for different
optimization options for SITL, NuttX, Snapdragon, etc.
2016-09-30 08:11:51 +02:00
Beat Küng 670697b0ac fw_att_control_main: fix implicit float to double conversion issue
GCC 6.1.1 output:
../src/modules/fw_att_control/fw_att_control_main.cpp:884:41: error:
implicit conversion from ‘float’ to ‘double’ to match other operand of
binary expression [-Werror=double-promotion]
2016-09-13 11:43:22 +02:00
Andreas Antener 3163cf90c9 FW: simplified flap/flaperon logic and always move them at the same rate (don't jump) 2016-09-07 19:29:32 +02:00
Andreas Antener 2dd29ec4a1 VTOL: publish stabilized FW attitude to correct topic 2016-08-06 20:43:49 +02:00
Roman aea7bd5b47 fw_attitude_control: calculate attitude setpoint for STAB mode
- attitude setpoint generation for stabilized mode was shifted back
to the fw attitude controller. since the fw position controller is polling
on global position attitude setpoints were not generated when global
position was not published.

Signed-off-by: Roman <bapstroman@gmail.com>
2016-07-25 08:56:19 +02:00
Andreas Antener 0a997577f5 allow manual yaw in all manual modes and also use it as threshold to snap into heading lock 2016-07-25 08:56:19 +02:00
tumbili fd51bf44d5 fw position / fw attitude control: move attitude setpoint generation to
position controller

- attitude setpoints for all modes are now computed in the fw position
controller

Signed-off-by: tumbili <roman@px4.io>
2016-07-25 08:56:18 +02:00
tumbili f0dd5a103c allow scaling controls in full manual mode for fixed wings 2016-07-13 09:29:12 +02:00
tumbili 784883af22 added parameters to allow scaling controls in full manual mode
for fixed wings
2016-07-13 09:29:12 +02:00
tumbili 099becb353 added parameter for airspeed mode selection
this will enable small planes flying without an
airspeed sensor
2016-06-23 09:08:34 +02:00
Daniel Agar 1ecdb0f6fb adjust stack sizes 2016-05-19 21:49:34 +02:00
Daniel Agar 76387b1693 uorb autogeneration 2016-05-14 11:27:07 +02:00
Daniel Agar b471d94069 fw_att_control_params.c param metadata 2016-05-11 12:29:49 -04:00
Lorenz Meier 901461f301 FW att ctrl: Reduce perf counters 2016-05-05 20:08:54 +02:00
Daniel Agar 41c1e56075 FW stabalized mode properly initialize att_sp 2016-04-23 15:50:43 +02:00
James Goppert 967e4dd127 Modified cmake to use STACK_MAX and STACK_MAIN 2016-04-14 13:36:36 -04:00
Julian Oes 1f44fb1efd commander: internalize system status bools
Most condition bools in the commander are not used anywhere but in the
commander. It therefore makes sense to move them to a different internal
struct and remove them from the vehicle_status message.

Also, the land_detected should be used by all the modules instead of
getting it through the commander and system_status.
2016-04-11 18:01:47 +02:00
Daniel Agar 6888545037 remove @unit enum 2016-03-25 20:33:25 -04:00
Daniel Agar ff9b8118ab fw_att_control add units 2016-03-25 17:24:48 -04:00
Daniel Agar 7a9427bc34 param remove empty @unit 2016-03-14 09:12:34 +01:00
Daniel Agar 344555e086 fw_att_control param @unit 2016-03-14 09:10:29 +01:00
Lorenz Meier 32d062836e Moved ECL into its own submodule 2015-12-23 06:23:15 +01:00
Roman 4df4d2ff93 code style 2015-12-11 09:49:04 +01:00
Roman 27e1aaeea5 control state: indicate if airspeed is not valid 2015-12-11 09:49:04 +01:00
Daniel Agar 18cd49292e split FW_ATT_TC into FW_R_TC and FW_P_TC 2015-12-08 20:43:31 +01:00
Lorenz Meier f0a4979da6 Merged master into driver_framework 2015-12-01 12:34:02 +01:00
tumbili d1dc8ed432 if vtol, publish virtual attitude setpoint
Conflicts:
	src/modules/mc_pos_control/mc_pos_control_main.cpp
2015-11-25 13:28:22 +01:00
Lorenz Meier 17653113d5 FW att control: Run all topics at full rate 2015-11-22 13:59:24 +01:00