Closed LukasAKeen closed 3 years ago
I can reproduce this. There seems to be no GPS lat/lon/alt.
pxh> gpssim status
INFO [gpssim] protocol: SIM
INFO [gpssim] sat info: disabled, noise: 0, jamming detected: NO
vehicle_gps_position_s
timestamp: 79564000 (0.000000 seconds ago)
time_utc_usec: 0
lat: 0
lon: 0
alt: 0
alt_ellipsoid: 0
s_variance_m_s: 0.2500
c_variance_rad: 0.0000
eph: 655.3500
epv: 655.3500
hdop: 0.0000
vdop: 0.0000
noise_per_ms: 0
jamming_indicator: 0
vel_m_s: 0.0000
vel_n_m_s: 0.0000
vel_e_m_s: 0.0000
vel_d_m_s: 0.0000
cog_rad: 0.0000
timestamp_time_relative: 0
heading: nan
heading_offset: nan
fix_type: 0
vel_ned_valid: False
satellites_used: 0
@LukasAKeen I suggest you do a git bisect
to figure out when it broke. That's assuming there is some version in the past where it still works.
Hi @julianoes : I'm also facing this issue while trying to simulate Hippocampus UUV: barometer and magnetometer's simulated readings go stale on PX4's boot.
Noticed the following:
lockstep
by setting PX4_SIM_SPEED_FACTOR
to 10 from the default value of 1 in debug mode without any breakpoints, and the issue persists.Please find below my console log from running make px4_sitl_default gazebo_hippocampus
.
Would like to know how this can be fixed so that a more complete controls-simulation test could be achieved.
Appreciate your help very much.
______ __ __ ___
| ___ \ \ \ / / / |
| |_/ / \ V / / /| |
| __/ / \ / /_| |
| | / /^\ \ \___ |
\_| \/ \/ |_/
px4 starting.
INFO [px4] Calling startup script: /bin/sh etc/init.d-posix/rcS 0
INFO [param] selected parameter default file eeprom/parameters_1020
[param] Loaded: eeprom/parameters_1020
INFO [dataman] Unknown restart, data manager file './dataman' size is 11798680 bytes
INFO [simulator] Waiting for simulator to connect on TCP port 4560
INFO [simulator] Simulator connected on TCP port 4560.
Gazebo multi-robot simulator, version 9.0.0
Copyright (C) 2012 Open Source Robotics Foundation.
Released under the Apache 2 License.
http://gazebosim.org
[Msg] Waiting for master.
[Msg] Connected to gazebo master @ http://127.0.0.1:11345
[Msg] Publicized address: 192.168.2.220
INFO [init] Mixer: etc/mixers/uuv_quad_x.mix on /dev/pwm_output0
INFO [mavlink] mode: Normal, data rate: 4000000 B/s on udp port 14570 remote port 14550
ERROR [sensors] Baro #0 fail: STALE!
ERROR [sensors] Sensor Baro #0 failed. Reconfiguring sensor priorities.
WARN [sensors] Remaining sensors after failover event 0: Baro #0 priority: 1
INFO [mavlink] mode: Onboard, data rate: 4000000 B/s on udp port 14580 remote port 14540
INFO [logger] logger started (mode=all)
INFO [logger] Start file log (type: full)
INFO [logger] Opened full log file: ./log/2019-12-05/08_47_28.ulg
INFO [mavlink] MAVLink only on localhost (set param MAV_BROADCAST = 1 to enable network)
INFO [px4] Startup script returned successfully
pxh> INFO [mavlink] partner IP: 127.0.0.1
ERROR [sensors] Mag #0 fail: STALE!
ERROR [sensors] Sensor Mag #0 failed. Reconfiguring sensor priorities.
WARN [sensors] Remaining sensors after failover event 0: Mag #0 priority: 1
Exiting...
pxh> Shutting down
Have you tried without lockstep? https://dev.px4.io/master/en/simulation/#disable-lockstep-simulation
Thanks for replying. Baro/Magnetometer error exists after disabling lockstep in Gazebo and SITL board.
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.
Baro/Magnetometer error exists after disabling lockstep in Gazebo and SITL board.
Only initially and it still let's you execute everything, right?
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.
This has been fixed on latest master, closing
I get the following error when attempting to
make px4_sitl gazebo_hippocampus
I believe this is related to me not being able to use the
commander takeoff
function as it returnsERROR [commander] rejecting takeoff, no position lock yet. Please retry..