764 Commits

Author SHA1 Message Date
Dario Röthlisberger
3edc5942e4 versioning: fix style 2017-10-09 14:41:58 +02:00
Dario Röthlisberger
e3b8c0512e versioning: refactor unit tests
Use one function which tests flight and vendor version tag parsing.
2017-10-09 14:41:58 +02:00
Dario Röthlisberger
3dd4454a87 version: include FIRMWARE_TYPE in vendor version 2017-10-09 14:41:58 +02:00
Dario Röthlisberger
bb644ee087 unittests: add versioning test 2017-10-09 14:41:58 +02:00
Beat Küng
e1b970c30d ver hwcmp: allow to specify multiple hardware identifiers
E.g: ver hwcmp PX4FMU_V4 PX4FMU_V5
2017-10-09 09:34:31 +02:00
David Sidrane
391d103bfd hardfault_log:Not having a ulog file to append to is not an error
The hardfault keeps track of the number of reboot without a
   commit to disk. A commit to disk is the act of writing the
   fault data from the bbsram to the hardfault file, not the
   ulog file. The sucessful commit rearms the hardfault system.

   When ulog appending was added it treated the lack of a ulog
   file as an error. This prevented the hardfault_log reset
   from being called because the hardfault_log commit returned
   an error.

   	if hardfault_log check
	then
		if hardfault_log commit
		then
			hardfault_log reset
		fi
	fi

   This change treats the lack a a ulog as a non error.
2017-10-06 12:16:08 -10:00
Beat Küng
cdf17c5447 led: add MODE_FLASH 2017-10-06 20:40:02 +02:00
Daniel Agar
48f1e3ed1c uORB generation move to msg/ 2017-09-29 10:13:51 -04:00
David Sidrane
e967e02c4d HW Rev & Ver:0 for no value, -1 for not supported 2017-09-29 10:13:51 -04:00
David Sidrane
cb21aced5e PX4 System: Upstream NuttX defconfig changes
was:CONFIG_STM32_STM32F40XX is:CONFIG_STM32_STM32F4XXX
2017-09-29 10:13:51 -04:00
David Sidrane
f4992e64f7 mtd:24xxxx_mtd add AT24C02 - AT24C16 2017-09-29 10:13:51 -04:00
David Sidrane
1af3ea322c BUGFIX:mtd hardfault in no SPI
NULL check needed to be done before SPI_XXXX calls
2017-09-29 10:13:51 -04:00
David Sidrane
25c8ceaf91 mtd:spi_dev_e is now uint32_t in NuttX
Using new type of uint32_t for spi device
2017-09-29 10:13:51 -04:00
David Sidrane
7a4c5c3475 Added board_read_VBUS_state to board_common API 2017-09-29 10:13:51 -04:00
Daniel Agar
28a9e32753 test perf use stdout, not stdin 2017-09-28 16:50:47 +01:00
Daniel Agar
4e5b223a08 hrt test decrease time 2017-09-28 16:50:47 +01:00
Daniel Agar
af9690cf08 add simple posix tests to SITL 2017-09-28 16:50:47 +01:00
Daniel Agar
414b4d4a40 ver silence hwcmp 2017-09-25 10:30:22 -04:00
Daniel Agar
4e6ca271e7 more px4fmu-v1 cleanup (#7981) 2017-09-20 00:04:23 -04:00
Daniel Agar
26f00609ac multirotor_motor_limits only publish for MC 2017-09-19 02:25:30 +01:00
Daniel Agar
a031552756 systemcmds remove extra semicolons 2017-09-16 21:29:52 +01:00
Daniel Agar
7e90716661 motor_ramp remove unreachable code (#7973) 2017-09-16 14:50:28 -04:00
Daniel Agar
9b5fe8c476 ignore -Wsign-compare per module 2017-09-07 10:27:36 +02:00
CarlOlsson
6135179202 generate_listener: Add support for uint16, int32 and int16 arrays
Signed-off-by: CarlOlsson <carlolsson.co@gmail.com>
2017-08-26 22:34:25 +02:00
CarlOlsson
49c0947cc2 generate_listener: Add space in array output
Signed-off-by: CarlOlsson <carlolsson.co@gmail.com>
2017-08-26 22:34:25 +02:00
Daniel Agar
c8bc6f961f topic_listener move generator to same directory 2017-08-23 08:07:36 +02:00
Daniel Agar
a02caff1bc unit_test inline implementation and remove module build 2017-08-23 08:06:55 +02:00
Daniel Agar
b70b8288b9 px4_includes cleanup incomplete list 2017-08-20 20:42:42 +02:00
sanderux
220bd82b93 Per channel PWM disarmed values 2017-08-09 22:28:05 +02:00
Peter Duerr
b845edba64 Yet another erroneous call to px4_close instead of close
* As indicated by @bkueng
2017-08-07 22:05:17 +02:00
Peter Duerr
6e808ad0a6 Fix additional erroneous px4_close call
* As indicated by @bkueng
2017-08-07 22:05:17 +02:00
Peter Duerr
73ef772537 Fix erroneous use of px4_close
* Close handle opened with `open` with `close` as indicated by @bkueng
2017-08-07 22:05:17 +02:00
Peter Duerr
5be23060e7 Fix resource leaks identified by cppcheck
* Where possible rearrange error checks to avoid branching
* Otherwise add missing `fclose`, `close`, `px4_close` calls before return
2017-08-07 22:05:17 +02:00
David Sidrane
4832ad3191 ver:Add support for HW versioning
1) Add hwtypecmp command to allow rc to further enumerate PX4FMU_V2
      for sub types of 'V2' -FMUv2  'V2M' PixhawkMini, 'V30' Cube

   2) Extend hw to report to display
      HW type
      HW version
      HW revision
2017-08-05 19:26:20 +02:00
Beat Küng
9d924bea3f reboot command: add lock/unlock commands to test the shutdown lock
If needed it could be used in scripts as well.
2017-07-29 23:10:47 +02:00
Beat Küng
5a2723ab9c test_mixer.cpp: remove bogus comments 2017-07-21 19:59:45 +02:00
Julien Lecoeur
61d6903b40 Fix -Werror=stringop-overflow on gcc 7
The error was:
Firmware/src/systemcmds/hardfault_log/hardfault_log.c:312:7: error: specified bound 30 equals the size of the destination [-Werror=stringop-overflow=]
       strncat(marker, sp_name, sizeof(marker));
       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2017-07-18 08:24:37 +02:00
David Sidrane
4349f49610 PX4 System:Expunge the nuttx adc structure from the system
This PR is preliminary ground work for FMUv5.

   PX4 does not use the NuttX adc driver. But used the same format
   for the data returned by the nuttx ADC driver.

   There was a fixme:in src/platforms/px4_adc.h "this needs to be
   a px4_adc_msg_s type" With this PR the need for
   src/platforms/px4_adc.h goes away as the driver drv_adc.h now
   describes the px4_adc_msg_t.
2017-07-17 22:28:29 +02:00
Beat Küng
913cbc773e px4moduledoc: extend validation: limit max line length to 120 2017-07-14 11:57:11 +02:00
Beat Küng
a43f135ad4 minor documentation updates to some commands 2017-07-14 11:57:11 +02:00
Beat Küng
05c3b711f3 fix bl_update: move definition of print_usage into the ifdef
fixes the compile error:
error: 'print_usage' defined but not used [-Werror=unused-function]
2017-07-14 11:57:11 +02:00
Beat Küng
a4ca3fc607 ver: add documentation 2017-07-14 11:57:11 +02:00
Beat Küng
68d754b65e usb_connected: add documentation 2017-07-14 11:57:11 +02:00
Beat Küng
8e965a7a2a topic_listener: add documentation 2017-07-14 11:57:11 +02:00
Beat Küng
1b4467f674 sd_bench: add documentation 2017-07-14 11:57:11 +02:00
Beat Küng
06178392ce reboot: add documentation 2017-07-14 11:57:11 +02:00
Beat Küng
16e0e1f7ca perf: add documentation 2017-07-14 11:57:11 +02:00
Beat Küng
ba1a483cd6 nshterm: add documentation 2017-07-14 11:57:11 +02:00
Beat Küng
65b11d39a9 mtd: add documentation & do cleanup (remove err(), ...) 2017-07-14 11:57:11 +02:00
Beat Küng
e362f760c4 motor_test: add documentation & do cleanup (remove err(), ...) 2017-07-14 11:57:11 +02:00