157 Commits

Author SHA1 Message Date
Daniel Agar
6a443765a5 cmake only include mavlink where used 2017-06-19 20:24:09 +02:00
Daniel Agar
17c1114b3e clang-tidy readability-named-parameter 2017-06-02 19:35:18 -04:00
Mohamed Abdelkader Zahana
cd1e04d43c support of multi uav simulation in SITL 2017-05-14 15:46:18 +02:00
Mohamed Abdelkader Zahana
239370d72c use 1E7 instead 10000000.0f 2017-04-13 11:18:10 +02:00
Mohamed Abdelkader Zahana
a9ec1a35bc divide lat/lon received from HIL_STATE_QUATERNION msg by 1E7 2017-04-13 11:18:10 +02:00
Matthias Grob
2955a2c317 simulator: typo in initial output message 2017-04-12 18:58:37 +02:00
Beat Küng
b0439836f6 refactor drv_led.h: rename to drv_board_led.h
This makes it clear that it's used to control the board LED's, not external
LED's.
2017-03-12 00:08:35 +01:00
Beat Küng
b1e27f4395 simulator: handle ctrl-c during startup correctly
This makes sure the px4 process does not hang when Ctrl-C is pressed
during startup.
2017-03-10 11:28:41 +01:00
Daniel Agar
ecb2511a7b add matrix copyTo 2017-02-25 11:04:02 +01:00
James Goppert
7659402fdb WIP: valgrind runtime analysis and fixes (#6521)
* Fix several valgrind identified mem leaks

* Added callgrind target.

* px4_posix_tasks use nullptr
2017-02-17 12:36:52 -05:00
Lorenz Meier
dfd02d8372 Plane interface: Fix motor scaling in simulator 2017-02-13 21:33:01 +01:00
Daniel Agar
e927f3e040 clang-tidy modernize-use-nullptr 2017-02-01 22:15:50 -05:00
Lorenz Meier
aab04141f0 Initialize raw GPS data 2017-01-28 16:23:04 +01:00
Lorenz Meier
7fd06ee913 MAVLLink simulator interface: Simulate minimum airspeed noise 2017-01-16 08:26:37 -08:00
ChristophTobler
06436e753e acount for SENS_FLOW_ROT in simulation 2016-12-29 15:10:29 +01:00
Lorenz Meier
556938aebd Sim: Header cleanup 2016-12-27 21:00:51 +01:00
Anton Matosov
3a17c07b1e Implement RC and DL failsafe action handling for multirotors
Move RC and DL failsafe actions handling from navigator to commander (credits to @AndreasAntener)
Separate manual kill switch handling via manual_lockdown to prevent override and release of software lockdown by RC switch

Other changes:
Add failsafe tune
Fix LED blinking for Pixracer
Return back support for rc inputs in simulator but now it is configurable via cmake
2016-12-27 00:38:13 +01:00
Lorenz Meier
1141079a3b Fix Simulator: Set correct rotor count for standard VTOL
The rotor count was incorrect which meant that control surfaces like elevons were scaled incorrectly. This was the main reason for really bad SITL performance
2016-12-25 18:15:51 +01:00
Lorenz Meier
ca59d4cddb Simulator: Initialize ground truth topic handle 2016-12-19 20:34:52 +01:00
James Goppert
4b6a11161e Fixes for sitl gazebo ground truth. (#5932)
* Fixes for sitl gazebo ground truth.

* Switch ekf2 to new logging module for sitl.
2016-12-03 11:40:53 -05:00
Lorenz Meier
8ebc846ae7 Simulator: Do not open hardware UART in SITL 2016-11-17 09:11:58 +01:00
James Goppert
3511f8abfb Add position ground truth. (#5819)
Have confirmed this works with gazebo sitl.
2016-11-09 19:38:38 -05:00
Julian Oes
62603bee45 simulation: SITL outputs from 0..1
Instead of sending actuator controls from -1..1 for SITL, we should send
0..1 like we already do for HIL. This will enable negative thrust in the
future, e.g. for pusher props that spin backwards, or for vehicles with
variable pitch propellers.
2016-10-28 23:56:46 +02:00
Beat Küng
7ed81e5edb simulator_mavlink: send MAV_CMD_SET_MESSAGE_INTERVAL to enable ground truth 2016-10-20 18:54:47 +02:00
Lorenz Meier
526fb8f515 Remove q_valid flag from attitude topic 2016-10-18 20:46:08 +02:00
Lorenz Meier
0bd42402fb Sim: Remove euler angles 2016-10-18 20:46:08 +02:00
Beat Küng
c81a1631ec simulator_mavlink: init hil_attitude with 0 & set angular speed 2016-10-04 12:56:25 +02:00
Mark Whitehorn
ec1609350f fix jMAVSim body-fixed XYZ Euler Angles 2016-10-04 12:54:58 +02:00
Beat Küng
ac189704ed simulator: flush output after waiting message output
Just to make sure the user sees the message.
2016-09-30 13:50:51 +02:00
Lorenz Meier
adf56050b9 Use monotonic clock for simulator 2016-09-27 11:56:49 +02:00
Mark Whitehorn
95f899fee7 always publish simulator groundtruth attitude 2016-09-19 13:07:02 +02:00
Mark Whitehorn
f24b199775 add HIL_STATE message handler and publish to uORB
add missing break

uorb topics generator: add multi-topics to the list of all topics

topic names with '# TOPICS <name>' were previously not in orb_get_topics().
This means the logger could not find them.

Affects for example actuator_controls_0.

px_generate_uorb_topic_files.py: add multitopics to generate_topics_list_file_from_files method

switch simulated attitude to new topic: vehicle_attitude_groundtruth

logger: add input_rc topic. needed for web plotting

input_rc.msg: remove timestamp_publication, use timestamp instead

mixer.cpp: warnx -> PX4_ERR

logger: initialize timer_call to 0 (hrt_call_every reads some fields)

position_setpoint_triplet topic: set the timestamp when publishing

px_generate_uorb_topic_files.py: add multitopics to generate_topics_list_file_from_files method

add vehicle_attitude_groundtruth to default topics

change to hil_state_quaternion
2016-09-19 13:05:14 +02:00
Beat Küng
d297d31c23 input_rc.msg: remove timestamp_publication, use timestamp instead 2016-09-19 13:02:31 +02:00
Lorenz Meier
29d33a12dc Simulator: Adjust way too small task stack 2016-09-11 20:07:30 +02:00
Beat Küng
010c9e937b SITL: switch to HIL_ACTUATOR_CONTROLS mavlink message & add pwm_out_sim support for 16 outputs 2016-09-06 11:33:18 +02:00
James Goppert
05315abc89 Optical flow simulator and install cleanup. (#5132)
sitl CI is having some issue cloning, but I have verified it locally for various configs
2016-07-24 13:07:14 -04:00
Lorenz Meier
024a86c309 Simulator: fix battery sim 2016-06-23 22:32:14 +02:00
Lorenz Meier
229208610e Fix simulator code style 2016-06-18 17:03:11 +02:00
Lorenz Meier
85e3073f14 Simulator: Send all actuator output groups 2016-06-18 01:50:42 +02:00
Lorenz Meier
f11d42aab3 Simulator MAVLink: Forward port cleanly 2016-06-17 22:44:42 +02:00
Daniel Agar
2487dbfc92 remove Wpacked and cleanup unused warning flags 2016-05-19 21:49:34 +02:00
korotkoves
1a992c2d02 fix code style for Travis 2016-05-13 13:24:30 +02:00
korotkoves
7f9ab9b7cb fix code style for Travis 2016-05-13 13:24:13 +02:00
korotkoves
22e3ce7d7a simulator udp port from command line 2016-05-13 13:23:20 +02:00
Lorenz Meier
755176b247 Sim compile fix 2016-05-06 19:22:18 +02:00
Lorenz Meier
b883b30404 Simulator: Drain the battery to 15%, reffill it once disarmed to allow for more testing 2016-05-03 13:45:15 +02:00
Julian Oes
944acfaf75 simulator: change after perf_counter API change 2016-04-25 12:48:48 +02:00
Lorenz Meier
4beca408b9 Fix Jenkins build error 2016-04-23 16:59:40 +02:00
Lorenz Meier
a49ba1a383 Sensors: Code style 2016-04-23 14:45:12 +02:00
Lorenz Meier
0733651d01 Simulator: Fix battery interface 2016-04-23 14:25:01 +02:00