25490 Commits

Author SHA1 Message Date
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
Beat Küng
576f4e02da tunes: fix constness for _default_tunes
_default_tunes 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 64 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
Phillip Kocmoud
8f1c84ce56 Enable internal SPI LIS3MDL on R15 Pixracer 2018-03-28 13:47:22 -04:00
Phillip Kocmoud
c3b64f6d2a Corrected rotation for internal SPI LIS3MDL Sensor on R15 Pixracer 2018-03-28 13:47:22 -04:00
Julian Oes
e08ab0646f sitl_gazebo: update submodule
This brings Gazebo 9 compatibility.
2018-03-28 16:26:54 +02:00
Daniel Agar
416feea9e4 uORB print_message cleanup
- indent field print with tabs instead of spaces
 - print a newline before printing a nested field
 - cmake add generator dependencies
2018-03-28 09:15:41 -04:00
Daniel Agar
c4c4441c87 generate_listener.py combine message exclusion 2018-03-28 09:15:41 -04:00
Daniel Agar
e76a7e48c8 generate uorb topic helper ignore _padding properly 2018-03-28 09:15:41 -04:00
Daniel Agar
a98c7cf5c8 generate uorb topic helper rename px4_printf to print_field 2018-03-28 09:15:41 -04:00
Daniel Agar
55466e539b topic_listener report never published and cleanup
- don't ignore position_setpoint_triplet
2018-03-28 09:15:41 -04:00
Daniel Agar
0a0044fc29 uORB print message add timestamp elapsed 2018-03-28 09:15:41 -04:00
Daniel Agar
f172171928 listener replace custom uORB print code 2018-03-28 09:15:41 -04:00
Daniel Agar
5fba1f38b2 drivers start using uORB message print instead of custom 2018-03-28 09:15:41 -04:00
Daniel Agar
3db17a04fc uORB generate message print functions 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
d8de624851 update ECL to latest with geo lib 2018-03-26 23:16:55 -04:00
Daniel Agar
0baf3e39aa tests clang-tidy ignore eadability-function-size 2018-03-26 23:16:55 -04:00
Daniel Agar
f46ea75c9d mag declinataion test switch to ut_compare_float 2018-03-26 23:16:55 -04:00
Daniel Agar
d585218060 tests clang-tidy ignore readability-function-size 2018-03-26 23:16:55 -04:00
Paul Riseborough
2b87e5a790 tests: Test all data points for declination model 2018-03-26 23:16:55 -04:00
Daniel Agar
0814ac585e declination test update values
- test values entered from https://www.ngdc.noaa.gov/geomag-web/
2018-03-26 23:16:55 -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
eb67686b110a995a258e80298fe180149c41c2a5
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
ksschwabe
500a1c808d ROMFS list files explicitly instead of using GLOB_RECURSE (#9107)
* Lists ROMFS files explicity instead of using GLOB_RECURSE

Previously, when ROMFS files that were not airframes were touched, the ROMFS
would not be rebuilt. The ROMFS files are now specified explicityl in a
CMakeLists.txt file that is located in the root ROMFS directory.

Now when one of the ROMFS files is touched the whole ROMFS is rebuilt.

When new files are added to the ROMFS, they need to be explicity added to
the CMakeLists in the ROMFS root directory.

* ROMFS: adds individual CMakeLists files in each subdirectory

Also moves the temporary ROMFS build directory to ${PX4_BINARY_DIR}/ROMFS/genromfs
so that the cmake_install.cmake files and the CMakeFiles directories (generated whenever
are not add_subdirectory() is called) are not generated in the temporary ROMFS directory
from which the ROMFS binary is created.

* cmake ROMFS generate add px4_add_romfs_files function

* ROMFS CMakeLists: adds explanatory comment to px4_add_romfs_files function

* ROMFS CMakeLists: updates copyright headers
2018-03-26 11:19:00 -04: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