Mark Charlebois
872e1ebda0
GCC fixes for warnings
...
GCC was more picky about prototypes for inlines being required.
The generate_listener.py script used incorrect printf formats and
was casting %f params to float, but printf casts all %f params to
double per the spec.
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-05-06 11:45:23 -07:00
Mark Charlebois
12a25e4b63
Merge remote-tracking branch 'upstream/master' into linux
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
Conflicts:
makefiles/firmware.mk
src/modules/commander/module.mk
src/modules/mavlink/mavlink_ftp.h
src/modules/mavlink/mavlink_tests/module.mk
2015-05-04 16:36:59 -07:00
tumbili
4b34d0c297
improved topic listener
2015-05-04 23:10:23 +02:00
Thomas Gubler
07f6165290
make parameter parser work with python3
2015-05-04 14:04:09 +02:00
Mark Charlebois
8e589adb24
topic_listener: added missing build deps
...
The posix build would complain that toipc_listener.cpp did not exist
and there was no rule to create it.
The required rule was added to src/systemcmds/topic_listener/module.mk
The script generate_listener.py is run from the Build tree and needs to
access $(PX4_BASE)/msgs so $(PX4_BASE) is now passed as an argument to
generate_listener.py
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-26 20:02:58 -07:00
tumbili
3af6e9d76e
added autogenerated code for topic listener tool
2015-04-26 22:17:16 +02:00
Mark Charlebois
f63ab3d5e3
Merge branch 'master' into linux
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
Conflicts:
makefiles/firmware.mk
2015-04-22 10:38:46 -07:00
Mark Charlebois
19162ba5be
Posix: Changed PreflightCheck to read Vdev
...
PreflightCheck was failing because it was trying to read actual
devices instad of virtual devices.
ADCSIM had a LINUXTEST ifdef that was removed.
posix_run.sh was using the wrong path
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-21 17:14:52 -07:00
Don Gagne
6bf0a2618b
Add support for board attribute to parse output
...
This allows for writing parameter meta data which is specific to a
board type
2015-04-21 12:31:08 -07:00
Mark Charlebois
f3b5076d70
Linux to posix conversion
...
Changed "linux" target to "posix". Most of the changes are shared with
QuRT and with OSX. The Linux specific parts are in for i2c which uses
<linux/i2c.h> and <linux/i2c-dev.h>.
There is also a check for __PX4_LINUX in mavlink for a tty ioctl that is
not supported.
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-21 09:53:09 -07:00
Mark Charlebois
6ce0b7b753
QuRT: added missing make pieces
...
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:37:51 -07:00
Mark Charlebois
d2f0572ce6
Linux: added builtins to show devices and topics
...
list_devices will list virtual devices starting with "/dev/".
list_topics will list topics ("/obj/")
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:37:50 -07:00
Mark Charlebois
87a8289a22
Linux: changed adc to adcsim and add barosim
...
The name of the app was adc but should have been adcsim.
Added a barometer simulator.
This will allow ms56711_linux to depend on real devices and not
simulation.
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:35:48 -07:00
Mark Charlebois
f0312d2da0
Linux: Added commands to show threads and devices
...
The list_tasks and list_devices commands will show
lists of running px4 threads and created virtual device nodes.
The list_builtins command was removes and the list of commands
will be shown if return is pressed.
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:35:47 -07:00
Mark Charlebois
80c5812861
Linux: run socat as user not as root
...
If sudo is used to run socat the tty cannot be opened by a regular user
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:35:47 -07:00
Mark Charlebois
cf71db74d7
Support to specify build time OS target
...
Now run:
make PX4_TARGET_OS=nuttx
or
make PX4_TARGET_OS=linux
To test the linux build and make sure that the required directories
exist, run:
make linuxrun
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:16:26 -07:00
Mark Charlebois
2cd44a24ea
Linux: Added linker script support for param and added mc_att_control
...
Added linker script to resolve __param_start and __param_end.
Added mc_att_control to list of supported builtins.
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:16:26 -07:00
Mark Charlebois
526b0e68eb
Linux: modified shell to not show _main suffix
...
The builtin commands all have _main suffix by convention so
no need to show _main. Also nsh calls the commmands without the
_main suffix.
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 11:15:13 -07:00
Mark Charlebois
520459062d
Initial Linux support including execution shell
...
Uncomment the following line in setup.mk and comment out the line above
to enable the Linux build.
export PX4_TARGET_OS = linux
The build uses the clang compiler by default. The final bundled executable
is mainapp located in:
Build/linux_default.build/mainapp
When you run mainapp it will provide a list of the built-in apps. You can
type in the commands to run such as:
hello_main start
Because the Linux build is threaded and does not support tasks or processes,
it cannot call errx, exit() _exit(), etc. It also requires unique scoped
variables to test if a thread is running or if an application should exit.
The px4::AppMgr class was added in px4_app.h for this purpose. The
hello sample app demonstrates how this is used.
Signed-off-by: Mark Charlebois <charlebm@gmail.com>
2015-04-20 10:46:43 -07:00
Lorenz Meier
f8cf495494
Revert "Added ability for board specific meta data generation"
...
This reverts commit 9ac350a7d1
.
2015-04-18 11:38:23 +02:00
Don Gagne
9ac350a7d1
Added ability for board specific meta data generation
...
Use new @board meta data attribute for board specific ifdef support
2015-04-18 11:14:12 +02:00
Don Gagne
202cfd21d0
Change to V2 spec of param meta data
...
Had to switch to ElementTree to get attribute support
2015-04-16 10:21:18 -07:00
Don Gagne
2fa0c333cb
Add version number to parameter meta data
2015-04-15 14:53:06 -07:00
Don Gagne
05c351183f
Parameter meta data fixes
2015-04-15 11:29:37 -07:00
Don Gagne
c8452bb9d6
Store parameter xml size
...
This is needed in order to decompress in QGroundControl
2015-04-14 19:17:30 -07:00
Andreas Antener
e2d27ade2e
remove ROS install scripts, they are now in PX4/containers
2015-04-06 14:02:14 +02:00
Daniel Agar
5cc1a5dfda
check_code_style exclude eigen
2015-03-27 19:08:44 -04:00
Lorenz Meier
7554eb515a
Fix ROS install instructions
2015-03-25 01:02:29 -07:00
Lorenz Meier
8a584be530
Fix missing dependencies
2015-03-24 14:55:17 -07:00
Lorenz Meier
f26edd20f6
Add missing gflags
2015-03-24 14:50:22 -07:00
Lorenz Meier
14247d95dd
Ensure Eigen is installed as submodule
2015-03-20 00:01:32 +01:00
Daniel Agar
0eaf41a048
check_code_style.sh properly ignore src/modules/attitude_estimator_ekf/codegen/*
2015-03-19 23:49:36 +01:00
Andrew Tridgell
9d8931328b
Tools: added boot_now.py script
2015-03-14 21:12:24 +11:00
Andrew Tridgell
2c2359dcf0
px_uploader.py: added --boot-delay option
...
this sets the bootloader delay
2015-03-14 21:12:21 +11:00
Lorenz Meier
86970eead7
Matlab tools: Motor transfer function curves
2015-03-11 09:24:30 +01:00
Andrew Tridgell
332d42b105
px_uploader: print chip version
2015-03-07 09:46:27 +01:00
Andrew Tridgell
d9b4f5b170
px_loader: added --force option
...
this can be used to override the board type check. Useful when
changing bootloaders
2015-03-07 09:45:51 +01:00
Lorenz Meier
200f0e9a93
Better error handling for multi-board setups
2015-03-02 23:05:03 +01:00
Lorenz Meier
a31fccb0b0
Uploader: Fix flashing if multiple board types are connected
2015-03-02 22:36:48 +01:00
Daniel Agar
265147ce7f
make check_format ignore src/modules/attitude_estimator_ekf/codegen
2015-03-02 12:48:24 -05:00
Daniel Agar
8de2b8af14
check_code_style.sh ignore mathlib/CMSIS
2015-03-02 12:48:24 -05:00
Daniel Agar
b2082c124a
git pre-commit hook don't echo files changed
2015-03-02 12:48:24 -05:00
Daniel Agar
b5a2c8708c
check_code_style.sh ignore unittests/build directory
2015-03-02 12:48:24 -05:00
Daniel Agar
92a3b9ce1f
add astyle pre-commit git hook
2015-03-02 12:48:24 -05:00
Daniel Agar
b1dcb10f25
add make check_format to check astyle code formatting
2015-03-02 12:48:19 -05:00
Lorenz Meier
6d2e8b9d08
Reduce delay between board search attempts, code style
2015-02-26 13:07:43 +01:00
Johan Jansen
74177a2688
px4_uploader: Push program bytes faster by using bigger blocks
2015-02-26 11:14:54 +01:00
Johan Jansen
a8f9caaaa5
px4_uploader: Prevent spin-lock from hogging CPU
2015-02-26 11:14:06 +01:00
Andreas Antener
172179ee2e
removed docker/vagrant stuff, is now in a separate repository
2015-02-19 22:12:28 +01:00
Lorenz Meier
786e2ad9cd
uORB header generator: Fix typo in feedback text
2015-02-16 06:52:58 +01:00
Andrew Tridgell
4c8ac04877
PX4: better error msg in python uorb generation error
2015-02-16 06:52:21 +01:00
Andrew Tridgell
36870cf44b
Tools: improve python package error message
2015-02-16 06:52:00 +01:00
Thomas Gubler
775e35ceaf
fix syntax in uorb header generation script
...
This fixes syntax and indentation of a58d73b5d0
2015-02-08 13:35:28 +01:00
Thomas Gubler
a2a0451094
ros workspace setup scripts: use master branch
2015-02-06 21:16:24 +01:00
Lorenz Meier
a58d73b5d0
Add error message with installation instruction if empy is missing.
2015-02-06 08:54:19 +01:00
Lorenz Meier
515266c163
Update header generation script
2015-02-03 20:28:14 +01:00
Lorenz Meier
37ec1ec8de
Improve submodule checking
2015-02-03 20:27:51 +01:00
Thomas Gubler
33a32fca14
Tools/ros: add license info
2015-02-01 12:55:15 +01:00
Thomas Gubler
e547176ba1
Merge pull request #1734 from PX4/ros_messagelayer_merge_attctrl_posctrl
...
Ros messagelayer merge attctrl posctrl
2015-02-01 11:58:37 +01:00
Thomas Gubler
2728889f78
Merge remote-tracking branch 'upstream/master' into ros_messagelayer_merge_attctlposctl
2015-01-28 16:29:14 +01:00
Simon Wilks
a25dbb3c8e
Add a compiler coloring tool to highlight warning and errors in the output.
2015-01-28 11:19:52 +01:00
Andreas Antener
8194cb1071
added ros-joy package and drcsim
2015-01-24 12:39:15 +01:00
Andreas Antener
700ca3c7d0
naming updates
2015-01-24 12:39:15 +01:00
Andreas Antener
c4b309c06e
added readme for docker container
2015-01-24 12:39:15 +01:00
Andreas Antener
aae96a1b16
updated docs, fixed script copy, renamed stuff
2015-01-24 12:39:15 +01:00
Andreas Antener
6ab1f21680
updated setup, added maintainer
2015-01-24 12:39:15 +01:00
Andreas Antener
6db56b8df0
added privileged options to support hardware acceleration
2015-01-24 12:39:14 +01:00
Andreas Antener
4fda482a73
updated copy instruction
2015-01-24 12:39:14 +01:00
Andreas Antener
da8c9af37b
fixed some stuff
2015-01-24 12:39:14 +01:00
Andreas Antener
353c230db5
restructured things a little bit
2015-01-24 12:39:14 +01:00
Andreas Antener
0bfeedef89
updated build and notes
2015-01-24 12:39:14 +01:00
Andreas Antener
05589e40df
updated docker instrumentalization and info
2015-01-24 12:39:14 +01:00
Andreas Antener
2d65e8cb3b
initial commit for vagrant/docker based ros setup
2015-01-24 12:39:14 +01:00
Thomas Gubler
6357fa7597
header generation script: create dir if it does not exist
2015-01-23 15:39:34 +01:00
Thomas Gubler
6f7fa3b4e7
header generation script: add option to set output filename prefix
2015-01-23 10:33:18 +01:00
Thomas Gubler
8e15a5b9d0
install script: add missing joy dependency
2015-01-22 15:07:06 +01:00
Thomas Gubler
dcdde8ea88
Merge remote-tracking branch 'upstream/master' into ros_messagelayer_merge
...
Conflicts:
src/modules/attitude_estimator_ekf/attitude_estimator_ekf_main.cpp
src/modules/uORB/topics/vehicle_attitude.h
2015-01-21 14:41:03 +01:00
Simon Wilks
0a99a26fcc
Cleanup uploader output.
2015-01-19 16:51:08 +01:00
Andreas Antener
a5caf1c99b
adding '-y' option to apt-get and missing update before drcsim installation
2015-01-19 10:17:58 +01:00
Thomas Gubler
4c9cc4175b
ros: update ubuntu install scripts
2015-01-19 07:47:12 +01:00
Andreas Antener
43f3e3ac78
adding drcsim binary installation
2015-01-17 16:52:02 +01:00
Andreas Antener
93173190fd
removed drcsim, set bash as executing shell
2015-01-17 16:52:02 +01:00
Thomas Gubler
dfba2f3cb0
add drcsim to workspace setup script
2015-01-16 15:18:53 +01:00
Andreas Antener
18b4e15836
added needed dependencies because or recent changes in ROS
2015-01-16 12:16:02 +01:00
Andreas Antener
ac76cdbc37
added catkin_make
2015-01-16 12:16:02 +01:00
Thomas Gubler
96db9e8188
Merge remote-tracking branch 'upstream/master' into ros
...
Conflicts:
src/platforms/px4_middleware.h
2015-01-15 12:42:28 +01:00
Thomas Gubler
1f26e1f5eb
remove hector from install script
2015-01-15 12:36:30 +01:00
Johan Jansen
11469ad9b5
px_uploader: Small fix to properly display timeouts
2015-01-12 12:25:30 +01:00
Thomas Gubler
b2366aaa22
Merge remote-tracking branch 'upstream/master' into ros
2015-01-09 08:07:00 +01:00
Johan Jansen
1eda1f816b
px_uploader: Minor code cleanup
2015-01-08 16:30:47 +01:00
Johan Jansen
2aa7b3038a
px_uploader: Added progress bar for erasing and uploading firmware
2015-01-08 13:18:50 +01:00
Thomas Gubler
417a82c699
add ros setup scripts
2015-01-07 13:48:20 +01:00
Thomas Gubler
25af4b266c
Merge remote-tracking branch 'upstream/master' into dev_ros
...
Conflicts:
.gitignore
src/lib/uavcan
2014-12-25 09:48:15 +01:00
Lorenz Meier
84d744707d
UAVCAN: Move into lib directory
2014-12-23 14:34:53 +01:00
Lorenz Meier
6e0cf50029
Move unittests into a more perceivable directory
2014-12-20 13:54:58 +01:00
Thomas Gubler
6f9cbd9751
add genmsg and gencpp python modules, ros not required anymore for message generation
2014-12-04 16:40:46 +01:00
Thomas Gubler
8e8f84bde0
uorb topic header generator: only create new files if the file content really changed
2014-12-04 10:39:24 +01:00
Thomas Gubler
8b5bc703a1
initial version of msg to uorb script
...
Standard and embedded types work, may need small refinements for some
types
2014-12-01 16:39:27 +01:00
Don Gagne
f3f7f08e0d
Parameter xml metadata in .px4
2014-11-18 17:20:50 -08:00
Lorenz Meier
8e8dd62fbd
Let the uploader print the binary size
2014-11-15 13:49:06 +01:00