Beat Küng
99beb03f83
ekf2_replay: switch to new vision topics
8 years ago
Beat Küng
eb8bce4825
sdlog2: fix PARAM name truncation
...
if a parameter name was 16 characters long (which is valid), the last
character got truncated due to 0-terminated string.
This raises the param name to 64 chars, which is quite wasteful, but there
is no other length in between.
8 years ago
Beat Küng
54c8e3b26b
commander: fix excessive orb_advertise calls for vehicle_status_flags
...
vehicle_status_flags_pub passed to publish_status_flags() was always null,
thus orb_advertise() was called each time.
Note that it did not produce a memory leak.
8 years ago
Beat Küng
b2d47adf56
jmavsim_run.sh: add -r option to set the update rate
...
currently jmavsim uses a default rate of 500 Hz which is too much.
8 years ago
Beat Küng
2bbe04c3d6
mavlink_receiver: don't publish sensor_combined for MAVLINK_MSG_ID_HIL_SENSOR
...
In hil mode, sensors is responsible for publishing this topic.
8 years ago
Beat Küng
8957b473a8
px4fmu rcS: start sensors in hil mode if HIL is set, don't load rc.sensors
...
This makes sure no sensor publishes sensor topics, instead they will be
published from mavlink.
8 years ago
Beat Küng
881f2d2d36
sensors: add 'sensors start -hil' parameter
...
This does the following if given:
- don't initialize the sensors (the sensor drivers are not started)
- publish sensor_combined even in hil mode
- do not apply or publish thermal corrections
8 years ago
Beat Küng
3f6783fce7
mc_att_control: make sure to update the polling fd when the selected gyro changes
8 years ago
Beat Küng
ec33607912
mc_att_control_main: make sure to initialize at least one gyro sensor
...
in HIL mode, gyros are published after mc_att_control started.
8 years ago
Beat Küng
570aca98a3
pwm_out_sim: make sure g_pwm_sim is initialized with nullptr
8 years ago
ustbguan
68701b197a
use mBar
8 years ago
Dennis Mannhart
f5ae90a7cb
mavlink_main: add POSITION_TARGET_LOCAL_NED to mavlink stream
8 years ago
Sander Smeets
9ef87f1311
VTOL QuadChute Maximum roll and pitch angles ( #6665 )
8 years ago
Dennis Mannhart
e892a51afb
mc_pos_control: delta_t needs to be positive
8 years ago
Matthias Grob
2b90224075
land_detector: added parameter for manual position stick takeoff threshold
8 years ago
Dennis Mannhart
9c2dd48814
landdetector: m/s to m
8 years ago
Dennis Mannhart
7f54f891c1
land_detector: set max height to 100
8 years ago
Dennis Mannhart
6939583650
mc_pos_control: _run_altitude if close to max altitude
8 years ago
Dennis Mannhart
3d4e7819a0
landdetector: delete function update_alt_max
8 years ago
Dennis Mannhart
1774e01c00
rtl: keep rtl altitude below max altitude
...
land_detector: delete unused class enum
8 years ago
Dennis Mannhart
b887654d69
mc_pos_control: fix limit_altitude function
8 years ago
Dennis Mannhart
ca84cc7439
mc_pos_control: delete max altitude, which is not set by landdetector
8 years ago
Dennis Mannhart
a1982e0392
land_detector: battery level status to adjust maximum altitude possible
8 years ago
Dennis Mannhart
c8690fd072
mc_pos_control: limit altitude
...
mc_pos_control: delete spaces
mc_pos_control: cleanup and threshold for velocity control to altitude control when close to max altitude
8 years ago
Michael Schaeuble
497a210742
lis3mdl: Fix check_calibration() output
...
The previous implementation returned OK when the sensor was not calibrated and vice
versa. This fixes a preflight fail due to selftest failed.
8 years ago
Daniel Agar
cff430e137
px4fmu-v2 enable ll40ls and frsky_telemetry
...
- closes #6686
- closes #6294
8 years ago
Lorenz Meier
5c524e15f8
Battery params: Enforce system reboot
8 years ago
Michael Schaeuble
3961c46d68
UAVCAN: Incorporate manual loackdown
...
This flag is triggered when the manual kill switch is activated. The motors
did not stop when the kill switch was engaged before adding this check.
8 years ago
Julian Oes
12c7421be9
px_uploader.py: remove unused exception vars
8 years ago
Julian Oes
974a9a0673
px_uploader.py: enable file to be used as module
...
In order to use px_uploader as a module from another Python script, all
the action needs to be moved into a main() function which is only called
if the file is run directly.
8 years ago
Julian Oes
090d7ebd6b
px_uploader: fix SerialException error
...
Sometimes right after reboot, we got a `raise SerialException(
msg.errno, "could not open port {}: {}".format(self._port, msg))`.
If this happens now, we will just try again later.
8 years ago
Julian Oes
b0a8073e15
px_uploader.py: small whitespace fix
...
Found by PEP8 checker.
8 years ago
Julian Oes
ff87d43be0
px_uploader.py: vim modeline for indent settings
8 years ago
Julian Oes
172f35042f
px_uploader.py: use consistent indenting
...
This file had the indentending mixed up between 4 and 8 spaces.
This changes it to the Pythonic way of 4 spaces.
8 years ago
Lorenz Meier
16530e15db
Commander: Differentiate between emergency battery level and critical battery level
8 years ago
Lorenz Meier
029c6de4a9
Battery estimator: Warn on dangerously low levels.
...
We need to differentiate between a level where the user should act and where we are about to fall out of the sky (emergency). This helps performing more suitable failsafe actions.
8 years ago
Lorenz Meier
7372014aee
Battery: Implement an emergency warn level
8 years ago
Beat Küng
85708063d6
fix tap_esc: use correct ORB_ID for esc_status advertisement
8 years ago
Lorenz Meier
7710b64d27
Navigator: Re-initialize RTL every time it gets re-enabled
8 years ago
José Roberto de Souza
6ce5807240
mavlink: Send message to control onboard camera as broadcast
...
The target was it self.
8 years ago
Daniel Agar
c1bd0d5733
sync attitude setpoint messages
8 years ago
Daniel Agar
fe4ea6dd63
VTOL mc_pos reset internal state during FW mode
8 years ago
Daniel Agar
1b2973f602
VTOL fw_att don't reset integrators during transition
8 years ago
Lorenz Meier
e18fe0a8a8
Port PWM command to POSIX
8 years ago
Matthias Grob
8fd27fddcd
mc_pos_control: moved responsibility of the x,y stick deadzone to a mathematical function
...
to prevent a setpoint step when moving the stick over the border of the deadzone
and to enable very small inputs even from a control stick that needs a big deadzone
8 years ago
Lorenz Meier
ad3d0391ab
Navigator: Only update params as they change
8 years ago
Daniel Agar
ecb2511a7b
add matrix copyTo
8 years ago
Beat Küng
f43f3baa02
ATT_VIBE_THRESH param: move the definition of this param to sensors
...
since it's only used in sensors module (otherwise it could get pruned)
8 years ago
Beat Küng
3cc1c9d0a9
param command: warnx -> PX4_{WARN,ERR}
8 years ago
Beat Küng
cfa84954ea
param_get: add null-pointer check
...
If param_find() returned PARAM_INVALID, and this was directly passed to
param_get(), param_get_value_ptr() returned null and we read garbage data
(or segfaulted on systems with virtual memory).
On px4fmu-v2, this happened for the param ATT_VIBE_THRESH in sensors.
Because of the recently added parameter scoping, this param got pruned, as
it's defined in attitude_estimator_q.
credits for finding this go to Jeyong Shin (jeyong).
8 years ago