Commit Graph

13526 Commits

Author SHA1 Message Date
Beat Küng 737f7df6b8 Subscription & SubscriptionArray: add forcedUpdate() methods
Can be used to immediately get & use the data, as needed for the flight
tasks.
2018-04-05 07:30:12 +02:00
Beat Küng 9b571abb47 FlightTasks: add SubscriptionArray class that contains all subscriptions
This is to avoid dynamic (re-)allocations on task switching, due to
orb_{un,}subscribe calls.
2018-04-05 07:30:12 +02:00
Beat Küng b821297f20 logger: add board subtype 2018-04-04 13:30:52 -04:00
DanielePettenuzzo 20f5de33df PX4IO Firmware: bug fix in variable initialization 2018-04-04 12:08:34 +02:00
Lorenz Meier 97e8ec9551 PX4IO Firmware: Only decode DSM if no other input method matched
This ensures that the DSM decoder does not accidentally decode noise on the bus as DSM is not well-protected against CRC errors.
2018-04-04 12:08:34 +02:00
Daniel Agar f145b65cbb mavlink static streams_list array 2018-04-03 18:37:51 -04:00
Daniel Agar 450229c2a4 dataman operations table is constexpr 2018-04-03 18:37:51 -04:00
dw.xiong 381c2b52ac commander: Remove the ekf pre-flight check variables that are not used in commander. (#9226) 2018-04-02 10:52:32 -04:00
Roman 2257cfc0fa vtol_att_control: set flag in_transition_to_fw properly
Signed-off-by: Roman <bapstroman@gmail.com>
2018-03-30 00:46:23 -04:00
Daniel Agar f0528d28fb commander once armed safety should only request ARMING_STATE_STANDBY 2018-03-29 10:25:56 -04:00
Daniel Agar 95ff860f4e commander cleanup includes and sort 2018-03-29 10:25:56 -04:00
Daniel Agar 0f6a94894d commander state machine helper fix code style 2018-03-29 10:25:56 -04:00
Daniel Agar db7e8635a2 commander state machine helper pass battery and safety as const references 2018-03-29 10:25:56 -04:00
Daniel Agar 4ccfc280c8 commander arming_state_transition add HIL boolean 2018-03-29 10:25:56 -04:00
Daniel Agar c547866029 Commander::handle_command() remove unused safety parameter 2018-03-29 10:25:56 -04:00
Daniel Agar e395b3578f delete unused ARMING_STATE_ARMED_ERROR state 2018-03-29 10:25:56 -04:00
Daniel Agar e29b568d33 state machine helper remove unused headers 2018-03-29 10:25:56 -04:00
Daniel Agar bff2136db0 commander state machine helper use constexpr for strings 2018-03-29 10:25:56 -04:00
Daniel Agar f59b7c7399 commander is_safe() use const references 2018-03-29 10:25:56 -04:00
Daniel Agar 376b5e4747 state machine helper make vehicle_status_flags const 2018-03-29 10:25:56 -04:00
Daniel Agar 8c8fe17ff3 commander delete unused main_state_prev 2018-03-29 10:25:56 -04:00
Daniel Agar c194c1acb5 commander use const where possible
- this helps tease apart the various pieces of commander.
2018-03-29 10:25:56 -04:00
Beat Küng 0038a5e755 uorb: fix constness for _uorb_topics_list
_uorb_topics_list was marked as 'const char *' array, which means the data
of the array was not actually const and thus landed in the data section
(so in RAM instead of FLASH).
The size of the array is 436 bytes.
2018-03-29 10:06:21 -04:00
Daniel Agar d40d165b4b mavlink delete deprecated HIL_CONTROLS 2018-03-28 15:37:57 -04:00
Daniel Agar 3db287ba67 mavlink messages delete unnecessary timestamps and cleanup 2018-03-28 15:37:57 -04:00
Daniel Agar c181501e27 commander home position update swap incorrect eph/epv for auto update 2018-03-28 15:37:57 -04:00
Daniel Agar deb5cbcc82 mavlink GLOBAL_POSITION_INT use vehicle_local_position for altitude 2018-03-28 15:37:57 -04:00
Daniel Agar 6af989e8c0 mavlink VFR_HUD use vehicle_local_position for altitude 2018-03-28 15:37:57 -04:00
Daniel Agar 354181be24 mavlink update ALTITUDE message to always use vehicle_local_position 2018-03-28 15:37:57 -04:00
Daniel Agar 5fba1f38b2 drivers start using uORB message print instead of custom 2018-03-28 09:15:41 -04:00
Oleg Kalachev 8d6bff08bb precland: support receiving LANDING_TARGET message 2018-03-27 20:45:58 -04:00
Oleg Kalachev 5b030535c8 precland: fix incorrect converting microseconds to seconds 2018-03-27 20:45:58 -04:00
Oleg Kalachev 749a590c1c precland: fix landing_target_pose subscription check 2018-03-27 20:45:58 -04:00
Oleg Kalachev fef2e2ba82 precland: fix typos and code style 2018-03-27 20:45:58 -04:00
Daniel Agar 29b3950747 move geo and geo_lookup to PX4/ecl 2018-03-26 23:16:55 -04:00
Matthias Grob 76bf9c6465 mc_att_control: reenable TPA for I term
In commit
eb67686b11
the TPA scaled integral gain was reverted back to the
normal unscaled gain which rendered the I part of TPA
useless.
2018-03-26 19:00:18 +02:00
Matthias Grob 11ea7dc928 mc_att_control: refactor: switch to matrix library 2018-03-26 16:20:57 +02:00
Beat Küng 693e9ffd46 mc_att_control: remove unused include <systemlib/param/param.h> 2018-03-26 16:20:57 +02:00
Beat Küng 1e09139fcc refactor mc_att_control: move private method declarations above private data members 2018-03-26 16:20:57 +02:00
Beat Küng b04a3a969d refactor mc_att_control: use ModuleParams & Param classes 2018-03-26 16:20:57 +02:00
Beat Küng 22e8204de8 refactor mc_att_control: move class initializer to member initializer 2018-03-26 16:20:57 +02:00
Beat Küng d68d9b522b fix mc_att_control: add missing orb_unsubscribe 2018-03-26 16:20:57 +02:00
Beat Küng 673fa75e58 mc_att_control: refactor to ModuleBase & add module documentation 2018-03-26 16:20:57 +02:00
Daniel Agar 25300a6b11 VtolLandDetector add airspeed finite check 2018-03-26 09:42:50 -04:00
Daniel Agar fda2edb7c4 sensors only publish airspeed if finite 2018-03-26 09:42:50 -04:00
Matthias Grob 2acd431fcb mc_att_control: revert to tested cutoff frequency
Revert the disabled d term filter which needs to be enabled
after reducing IMU filtering and was probably unintentionally
during a rebase.
2018-03-26 14:23:03 +02:00
Daniel Agar a48e3bf68d sensors fix uninitialized diffferential_pressure message
- fixes coverity CID 260383
2018-03-24 13:39:31 -04:00
Daniel Agar 0ef5d892a1 navigator precland initialize all fields
- fixes coverity CID 264259
2018-03-24 13:39:31 -04:00
stmoon ed261c76da add timestamp for sensor_preflight 2018-03-24 07:57:04 +01:00
Daniel Agar d2712dcb05 mc_pos_control move to matrix lib (#9141) 2018-03-23 12:53:49 -04:00