Commit Graph

45 Commits

Author SHA1 Message Date
Daniel Agar 2529f07d44 restore format check 2015-10-06 18:28:30 -04:00
Lorenz Meier 74a9850439 Param: Be less verbose 2015-09-20 16:40:33 +02:00
Lorenz Meier 7c3725772a Param: Be less verbose when nothing changes 2015-09-20 15:22:15 +02:00
Lorenz Meier 4fb6e135d6 param: report open failure 2015-09-12 16:57:50 +02:00
James Goppert 1d6b31d196 Switch to cmake build system. 2015-09-07 20:37:45 -04:00
Daniel Agar 11027836c6 format src/systemcmds/param 2015-09-05 12:21:11 -04:00
Lorenz Meier 8dc3c0025a param command: Support greater comparison 2015-08-08 14:13:45 +02:00
Lorenz Meier 454becdae5 Merged release_v1.0.0 branch into master 2015-06-25 21:45:17 +02:00
Lorenz Meier 475c28803e param command: Fix error handling if param is not found 2015-06-25 09:28:22 +02:00
Lorenz Meier 4c975a11e5 param command: Complete help text 2015-06-23 09:33:07 +02:00
Mark Charlebois 872a26e6da Fixed passed ot open() for O_CREAT
In nuttx the mode parameter to open is not required but in Linux,
and per the POSIX spec, mode is required if the O_CREAT flag is
passed.

The mode flags are different for NuttX and Linux so a new set of
PX4 defines was added:

PX4_O_MODE_777 - read, write, execute for user, group and other
PX4_O_MODE_666 - read, and write for user, group and other
PX4_O_MODE_600 - read, and write for user

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-14 11:26:40 +02:00
Mark Charlebois cb231e89f6 QuRT: Changes to enable qurt target to build
QuRT doesn't support unlink and does not provide getpid().
The DSPAL layer provides access to usleep so an implementation is
no longer needed.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-06-08 22:22:00 -07:00
tumbili f4a25097c1 use open/close instead of px4_open/px4_close for parameter file 2015-06-01 23:01:48 +02:00
Mark Charlebois 60080dd9e7 QuRT: fixed print of INT32_t type
In QuRT, this is a long but the variable was being printed with "%d"

Need to cast variable as long and use "%ld"

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-19 11:10:06 -07:00
Lorenz Meier e5fad077df Merge master into linux 2015-05-18 23:28:57 +02:00
Lorenz Meier c06ba047e2 param lib: Fix index used routine 2015-05-18 23:15:20 +02:00
Mark Charlebois 6db77dc8bb Experimental virtual file support
QuRT does not have a filesystem, so creating a virtual filesystem
that could be implemented as an in-memory file or a remote file
over fastRPC.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-06 22:12:45 -07:00
Mark Charlebois 190814bc97 Merge remote-tracking branch 'upstream/master' into linux
Signed-off-by: Mark Charlebois <charlebm@gmail.com>

Conflicts:
	src/drivers/rgbled/rgbled.cpp
	src/modules/commander/PreflightCheck.cpp
	src/modules/commander/airspeed_calibration.cpp
	src/modules/commander/calibration_routines.cpp
	src/modules/commander/gyro_calibration.cpp
	src/modules/commander/mag_calibration.cpp
	src/modules/mc_att_control/mc_att_control_main.cpp
2015-04-28 11:48:26 -07:00
Lorenz Meier 6755c0de01 param cmd: Show used and normal list indices 2015-04-27 09:04:07 +02:00
Mark Charlebois 8737d77947 QuRT and POSIX changes - part 2
Second staged group of changes for QuRT and related POSIX changes

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-24 01:01:36 -07:00
Mark Charlebois e3f137ce23 Fixed gcc 4.8 warnings
Disabled gcc warnings that are tripped by Eigen.

Removed signal code that is not needed in Linux port and was
causing gcc warnings.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:16:26 -07:00
Mark Charlebois 977036faf9 Linux: changed param to nit use errx or exit
Thread based implementaton can't call errx or exit

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:16:26 -07:00
Mark Charlebois 9758112e31 Use px4_config.h instead of nuttx/config.h
Modified code to use OS independent header file for config settings.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:55:41 -07:00
Lorenz Meier 4c6ddf9372 Param command: Add functionality to view active params 2015-03-28 13:07:01 -07:00
Lorenz Meier fe12bffefa param subsystem: Only send the instantiated parameters via telemetry 2015-03-28 13:07:01 -07:00
Lorenz Meier 38ad35fd77 param tool: Fix code style 2015-02-10 08:40:41 +01:00
Andreas Antener f2c1d6d66d implemented reset excludes in systemcmd "param", updated autoconfig parameter doc 2015-02-10 08:39:46 +01:00
Lorenz Meier f7b79bfaf2 Param interface: Allow to check return value of param_reset. Reset test param prior to running test 2015-02-08 16:39:37 +01:00
Daniel Agar d511e39ea7 turn on -Werror and fix resulting errors 2014-12-22 17:56:59 -05:00
Lorenz Meier ea4de4adc3 param command: fix warnings 2014-07-08 13:54:01 +02:00
Don Gagne 680ebf29c3 Fix compiler warnings 2014-07-07 15:11:46 -07:00
Don Gagne b9299e68d4 Compiler warning fixes 2014-07-05 13:35:12 -07:00
Lorenz Meier d0b78aa8a0 Add param command which does not reset the autostart params to not hamper auto-config 2014-07-01 13:42:32 +02:00
Don Gagne 92adbe9216 Fix compiler warnings 2014-06-29 17:47:24 -07:00
Lorenz Meier b2945fda53 param command: Reduce stack size to 1800 after careful testing 2014-05-15 09:03:05 +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 e4c0a224af Fix a param save issue where a state variable might preven the parameters from being saved (identified and fixed by ultrasystem) 2014-05-08 20:21:02 +02:00
Anton Babushkin 7d17a48b3c param set: fixed float format 2014-01-31 17:34:46 +01:00
Lorenz Meier ea8ab2793a More param command related improvements 2014-01-12 18:52:10 +01:00
Lorenz Meier 8b5adac0d9 Support for better param printing 2014-01-12 15:53:06 +01:00
Lorenz Meier 01be817c59 Allow N comparisons of a param value, returns success if one matches 2013-12-28 22:14:28 +01:00
Lorenz Meier eb2a9ded69 Only printing value if equal 2013-07-15 14:17:42 +02:00
Lorenz Meier 0b47ed86e0 Implemented new, simple system boot config and sane default value system based on two parameters evaluated at boot time 2013-07-15 13:58:43 +02:00
Lorenz Meier bb94847511 Allowed parsing of floating point params from scripts 2013-05-05 11:43:29 +02:00
Lorenz Meier 574e765321 Moved all system commands to the new world 2013-04-27 11:50:10 +02:00