Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide an 'usb is connected' API #418

Closed
LorenzMeier opened this issue Sep 22, 2013 · 1 comment
Closed

Provide an 'usb is connected' API #418

LorenzMeier opened this issue Sep 22, 2013 · 1 comment

Comments

@LorenzMeier
Copy link
Member

We might want to add a general API to figure out if the USB connection is up to configure a few things in the system differently. Most prominently:

  • Ignore battery voltage, because the power brick is probably not connected
  • Dim the led
  • Disallow a few things including a few arming transitions

This should be enabled by default but also depend on a parameter to allow it, as some people might power from USB or do other funny things in flight.

@LorenzMeier
Copy link
Member Author

Not needed any more.

PX4BuildBot pushed a commit that referenced this issue Apr 9, 2018
 - https://github.com/PX4/ecl/tree/master
 - PX4/PX4-ECL@02055ac

Changes from PX4/ecl (PX4/PX4-ECL@ba2b9df) in current PX4/master (95f17d5)
PX4/PX4-ECL@ba2b9df...02055ac

02055ac (HEAD, origin/master, origin/HEAD, master) EKF: Fix non GPS aiding data reset logic (#418)
PX4BuildBot pushed a commit that referenced this issue Apr 10, 2018
    - ecl in PX4/Firmware (036d920): PX4/PX4-ECL@ba2b9df
    - ecl current upstream: PX4/PX4-ECL@02055ac
    - Changes: PX4/PX4-ECL@ba2b9df...02055ac

    02055ac 2018-04-09 Paul Riseborough - EKF: Fix non GPS aiding data reset logic (#418)
PX4BuildBot pushed a commit that referenced this issue Apr 10, 2018
 - https://github.com/PX4/ecl/tree/pr-float_warn
 - PX4/PX4-ECL@9735aeb

Changes from PX4/ecl (PX4/PX4-ECL@ba2b9df) in current PX4/master (0c2b9dc)
PX4/PX4-ECL@ba2b9df...9735aeb

9735aeb (HEAD, origin/pr-float_warn) geo std pressure constants and update ecl yaw
1419ece cmake check float conversions and double promotions
02055ac (origin/master, origin/HEAD, master) EKF: Fix non GPS aiding data reset logic (#418)
PX4BuildBot pushed a commit that referenced this issue Apr 11, 2018
    - ecl in PX4/Firmware (259f2a5): PX4/PX4-ECL@ba2b9df
    - ecl current upstream: PX4/PX4-ECL@02055ac
    - Changes: PX4/PX4-ECL@ba2b9df...02055ac

    02055ac 2018-04-09 Paul Riseborough - EKF: Fix non GPS aiding data reset logic (#418)
PX4BuildBot pushed a commit that referenced this issue Apr 12, 2018
 - https://github.com/PX4/ecl/tree/pr-attitude_fw-cleanup
 - PX4/PX4-ECL@cb4c507

Changes from PX4/ecl (PX4/PX4-ECL@ba2b9df) in current PX4/master (a78ab02)
PX4/PX4-ECL@ba2b9df...cb4c507

cb4c507 (HEAD, origin/pr-attitude_fw-cleanup) attitude_fw delete unused and cleanup
02e3194 (origin/master, origin/HEAD, master) cmake remove embedded vim settings
91b5bfe attitude_fw remove unused perf include
02055ac EKF: Fix non GPS aiding data reset logic (#418)
PX4BuildBot pushed a commit that referenced this issue Apr 12, 2018
 - https://github.com/PX4/ecl/tree/pr-ekfNoAidTimeAdj
 - PX4/PX4-ECL@3f4f593

Changes from PX4/ecl (PX4/PX4-ECL@ba2b9df) in current PX4/master (a78ab02)
PX4/PX4-ECL@ba2b9df...3f4f593

3f4f593 (HEAD, origin/pr-ekfNoAidTimeAdj) EKF: Rework nav validity reporting
02e3194 (origin/master, origin/HEAD, master) cmake remove embedded vim settings
91b5bfe attitude_fw remove unused perf include
02055ac EKF: Fix non GPS aiding data reset logic (#418)
PX4BuildBot pushed a commit that referenced this issue Apr 12, 2018
 - https://github.com/PX4/ecl/tree/pr-float_warn
 - PX4/PX4-ECL@a17bd0e

Changes from PX4/ecl (PX4/PX4-ECL@ba2b9df) in current PX4/master (a78ab02)
PX4/PX4-ECL@ba2b9df...a17bd0e

a17bd0e (HEAD, origin/pr-float_warn) geo std pressure constants and update ecl yaw
532ca15 cmake check float conversions and double promotions
02e3194 (origin/master, origin/HEAD, master) cmake remove embedded vim settings
91b5bfe attitude_fw remove unused perf include
02055ac EKF: Fix non GPS aiding data reset logic (#418)
PX4BuildBot pushed a commit that referenced this issue Apr 13, 2018
    - ecl in PX4/Firmware (354d443): PX4/PX4-ECL@ba2b9df
    - ecl current upstream: PX4/PX4-ECL@02e3194
    - Changes: PX4/PX4-ECL@ba2b9df...02e3194

    02e3194 2018-04-11 Daniel Agar - cmake remove embedded vim settings
91b5bfe 2018-04-11 Daniel Agar - attitude_fw remove unused perf include
02055ac 2018-04-09 Paul Riseborough - EKF: Fix non GPS aiding data reset logic (#418)
PX4BuildBot pushed a commit that referenced this issue Apr 14, 2018
    - ecl in PX4/Firmware (163fdde): PX4/PX4-ECL@ba2b9df
    - ecl current upstream: PX4/PX4-ECL@02e3194
    - Changes: PX4/PX4-ECL@ba2b9df...02e3194

    02e3194 2018-04-11 Daniel Agar - cmake remove embedded vim settings
91b5bfe 2018-04-11 Daniel Agar - attitude_fw remove unused perf include
02055ac 2018-04-09 Paul Riseborough - EKF: Fix non GPS aiding data reset logic (#418)
dagar added a commit that referenced this issue Apr 14, 2018
- ecl in PX4/Firmware (163fdde): PX4/PX4-ECL@ba2b9df
    - ecl current upstream: PX4/PX4-ECL@02e3194
    - Changes: PX4/PX4-ECL@ba2b9df...02e3194

02e3194 2018-04-11 Daniel Agar - cmake remove embedded vim settings
91b5bfe 2018-04-11 Daniel Agar - attitude_fw remove unused perf include
02055ac 2018-04-09 Paul Riseborough - EKF: Fix non GPS aiding data reset logic (#418)
TSC21 pushed a commit to TSC21/Firmware that referenced this issue Feb 15, 2019
* EKF: Move optical flow specific state reset to helper functions

* EKF: Ensure loss of optical flow aiding is handled correctly

If data is only source of aiding and has been rejected for too long - reset using flow data as a velocity reference.
If flow data is unavailable for too long - declare optical flow use stopped.
Use consistent time periods for all resets

* EKF: Ensure loss of external vision aiding is handled correctly

If data is only source of aiding and has been rejected for too long - reset using data as a position.
Don't reset velocity if there is another source of aiding constraining it.
If data is unavailable for too long, declare external vision use stopped.
Use consistent time periods for all resets.

* EKF: Update parameter documentation

Make the distinction between the no_gps_timeout_max and no_aid_timeout_max parameters clearer

* EKF: make class variable units consistent with documentation

* EKF: Don't reset states when optical flow use commences if using external vision

* EKF: Stop optical flow fusion when on ground if excessive movement is detected.

* EKF: fix terrain estimator vulnerabilities

Reset estimate to sensor value if rejected for 10 seconds
Protect against user motion when on ground.
Fix unnecessary duplication of terrain validity check and separate validity update and reporting.

* EKF: remove unnecessary Info console prints

Optical flow use information can be obtained from the estimator_status.control_mode_flags message

* EKF: fix inaccurate comment

* EKF: remove duplicate calculation from terrain validity accessor function
PX4BuildBot added a commit that referenced this issue Mar 8, 2020
    - sitl_gazebo in PX4/Firmware (d7a9b12): PX4/PX4-SITL_gazebo-classic@8569aec
    - sitl_gazebo current upstream: PX4/PX4-SITL_gazebo-classic@5669e5c
    - Changes: PX4/PX4-SITL_gazebo-classic@8569aec...5669e5c

    5669e5c 2020-03-07 leftytechie - Version check (#418)
82657d3 2020-03-07 Lorenz Meier - Fix geotagged images GPS position The GPS position was invalid, leading to incorrectly displayed geotag markers and to incorrect geotags in images.
8794a70 2020-03-02 Julian Oes - cmake: remove warning
7aba744 2020-02-26 TSC21 - gazebo_mavlink_interface: use class enum; use binary notation with the bitmask operations
0dc43a4 2020-02-26 TSC21 - gazebo_mavlink_interface: make sure to always send gyro and accel data in the HIL_SENSOR msgs
0c954a2 2020-02-25 TSC21 - mavlink_interface: split groundtruth stream from sensor stream; only apply rotations where needed
bc92d96 2020-02-25 TSC21 - set baro rate at 50Hz (averaging the PX4 baro drivers ODR)
94d16e6 2020-02-25 TSC21 - update magnetometer rate to 100Hz (fitting the ODR in most of the support PX4 mag drivers)
6cae120 2020-02-25 TSC21 - mavlink_interface: send HIL_SENSOR messages with the bitmask correctly defined IOT set each sensor stream rate separately
PX4BuildBot added a commit that referenced this issue Mar 9, 2020
    - sitl_gazebo in PX4/Firmware (b897067): PX4/PX4-SITL_gazebo-classic@8569aec
    - sitl_gazebo current upstream: PX4/PX4-SITL_gazebo-classic@5669e5c
    - Changes: PX4/PX4-SITL_gazebo-classic@8569aec...5669e5c

    5669e5c 2020-03-07 leftytechie - Version check (#418)
82657d3 2020-03-07 Lorenz Meier - Fix geotagged images GPS position The GPS position was invalid, leading to incorrectly displayed geotag markers and to incorrect geotags in images.
8794a70 2020-03-02 Julian Oes - cmake: remove warning
7aba744 2020-02-26 TSC21 - gazebo_mavlink_interface: use class enum; use binary notation with the bitmask operations
0dc43a4 2020-02-26 TSC21 - gazebo_mavlink_interface: make sure to always send gyro and accel data in the HIL_SENSOR msgs
0c954a2 2020-02-25 TSC21 - mavlink_interface: split groundtruth stream from sensor stream; only apply rotations where needed
bc92d96 2020-02-25 TSC21 - set baro rate at 50Hz (averaging the PX4 baro drivers ODR)
94d16e6 2020-02-25 TSC21 - update magnetometer rate to 100Hz (fitting the ODR in most of the support PX4 mag drivers)
6cae120 2020-02-25 TSC21 - mavlink_interface: send HIL_SENSOR messages with the bitmask correctly defined IOT set each sensor stream rate separately
PX4BuildBot added a commit that referenced this issue Mar 10, 2020
    - sitl_gazebo in PX4/Firmware (e43aa4e): PX4/PX4-SITL_gazebo-classic@8569aec
    - sitl_gazebo current upstream: PX4/PX4-SITL_gazebo-classic@c13057d
    - Changes: PX4/PX4-SITL_gazebo-classic@8569aec...c13057d

    c13057d 2020-03-07 JaeyoungLim - Clear formatting and cleanups
639a6bb 2020-03-07 JaeyoungLim - Add parachute plugin
42d05bd 2020-03-09 RomanBapst - standard vtol: decrease rotorDragCoefficient to more realistic values
5669e5c 2020-03-07 leftytechie - Version check (#418)
82657d3 2020-03-07 Lorenz Meier - Fix geotagged images GPS position The GPS position was invalid, leading to incorrectly displayed geotag markers and to incorrect geotags in images.
8794a70 2020-03-02 Julian Oes - cmake: remove warning
7aba744 2020-02-26 TSC21 - gazebo_mavlink_interface: use class enum; use binary notation with the bitmask operations
0dc43a4 2020-02-26 TSC21 - gazebo_mavlink_interface: make sure to always send gyro and accel data in the HIL_SENSOR msgs
0c954a2 2020-02-25 TSC21 - mavlink_interface: split groundtruth stream from sensor stream; only apply rotations where needed
bc92d96 2020-02-25 TSC21 - set baro rate at 50Hz (averaging the PX4 baro drivers ODR)
94d16e6 2020-02-25 TSC21 - update magnetometer rate to 100Hz (fitting the ODR in most of the support PX4 mag drivers)
6cae120 2020-02-25 TSC21 - mavlink_interface: send HIL_SENSOR messages with the bitmask correctly defined IOT set each sensor stream rate separately
PX4BuildBot added a commit that referenced this issue Mar 10, 2020
    - sitl_gazebo in PX4/Firmware (04ec204): PX4/PX4-SITL_gazebo-classic@8569aec
    - sitl_gazebo current upstream: PX4/PX4-SITL_gazebo-classic@89db01c
    - Changes: PX4/PX4-SITL_gazebo-classic@8569aec...89db01c

    89db01c 2020-03-09 Matej Frančeškin - Handle MAV_CMD_SET_CAMERA_MODE
dae26ba 2020-03-08 JaeyoungLim - Handle videostream info and status
c13057d 2020-03-07 JaeyoungLim - Clear formatting and cleanups
639a6bb 2020-03-07 JaeyoungLim - Add parachute plugin
42d05bd 2020-03-09 RomanBapst - standard vtol: decrease rotorDragCoefficient to more realistic values
5669e5c 2020-03-07 leftytechie - Version check (#418)
82657d3 2020-03-07 Lorenz Meier - Fix geotagged images GPS position The GPS position was invalid, leading to incorrectly displayed geotag markers and to incorrect geotags in images.
8794a70 2020-03-02 Julian Oes - cmake: remove warning
7aba744 2020-02-26 TSC21 - gazebo_mavlink_interface: use class enum; use binary notation with the bitmask operations
0dc43a4 2020-02-26 TSC21 - gazebo_mavlink_interface: make sure to always send gyro and accel data in the HIL_SENSOR msgs
0c954a2 2020-02-25 TSC21 - mavlink_interface: split groundtruth stream from sensor stream; only apply rotations where needed
bc92d96 2020-02-25 TSC21 - set baro rate at 50Hz (averaging the PX4 baro drivers ODR)
94d16e6 2020-02-25 TSC21 - update magnetometer rate to 100Hz (fitting the ODR in most of the support PX4 mag drivers)
6cae120 2020-02-25 TSC21 - mavlink_interface: send HIL_SENSOR messages with the bitmask correctly defined IOT set each sensor stream rate separately
PX4BuildBot added a commit that referenced this issue Mar 11, 2020
    - sitl_gazebo in PX4/Firmware (ab3670e): PX4/PX4-SITL_gazebo-classic@8569aec
    - sitl_gazebo current upstream: PX4/PX4-SITL_gazebo-classic@458e58f
    - Changes: PX4/PX4-SITL_gazebo-classic@8569aec...458e58f

    458e58f 2020-03-10 JaeyoungLim - Fix sweep cosine (Continuing #302) (#429)
ea2568d 2019-12-27 JaeyoungLim - Increase rudder angle limit
8b905c9 2019-12-27 JaeyoungLim - Add rudder control to sitl
08f8e6f 2020-03-10 Jan-Hendrik Ewers - Update README.md
de10edd 2020-03-10 iwishiwasaneagle - Fixes PX4/PX4-SITL_gazebo-classic#424 for arch and ubuntu
4f596be 2020-03-10 Christian Clauss - Remove unused function isstring() in scripts/names.py (#346)
89db01c 2020-03-09 Matej Frančeškin - Handle MAV_CMD_SET_CAMERA_MODE
dae26ba 2020-03-08 JaeyoungLim - Handle videostream info and status
c13057d 2020-03-07 JaeyoungLim - Clear formatting and cleanups
639a6bb 2020-03-07 JaeyoungLim - Add parachute plugin
42d05bd 2020-03-09 RomanBapst - standard vtol: decrease rotorDragCoefficient to more realistic values
5669e5c 2020-03-07 leftytechie - Version check (#418)
82657d3 2020-03-07 Lorenz Meier - Fix geotagged images GPS position The GPS position was invalid, leading to incorrectly displayed geotag markers and to incorrect geotags in images.
8794a70 2020-03-02 Julian Oes - cmake: remove warning
7aba744 2020-02-26 TSC21 - gazebo_mavlink_interface: use class enum; use binary notation with the bitmask operations
0dc43a4 2020-02-26 TSC21 - gazebo_mavlink_interface: make sure to always send gyro and accel data in the HIL_SENSOR msgs
0c954a2 2020-02-25 TSC21 - mavlink_interface: split groundtruth stream from sensor stream; only apply rotations where needed
bc92d96 2020-02-25 TSC21 - set baro rate at 50Hz (averaging the PX4 baro drivers ODR)
94d16e6 2020-02-25 TSC21 - update magnetometer rate to 100Hz (fitting the ODR in most of the support PX4 mag drivers)
6cae120 2020-02-25 TSC21 - mavlink_interface: send HIL_SENSOR messages with the bitmask correctly defined IOT set each sensor stream rate separately
PX4BuildBot added a commit that referenced this issue Mar 11, 2020
    - sitl_gazebo in PX4/Firmware (88c9761): PX4/PX4-SITL_gazebo-classic@8569aec
    - sitl_gazebo current upstream: PX4/PX4-SITL_gazebo-classic@458e58f
    - Changes: PX4/PX4-SITL_gazebo-classic@8569aec...458e58f

    458e58f 2020-03-10 JaeyoungLim - Fix sweep cosine (Continuing #302) (#429)
ea2568d 2019-12-27 JaeyoungLim - Increase rudder angle limit
8b905c9 2019-12-27 JaeyoungLim - Add rudder control to sitl
08f8e6f 2020-03-10 Jan-Hendrik Ewers - Update README.md
de10edd 2020-03-10 iwishiwasaneagle - Fixes PX4/PX4-SITL_gazebo-classic#424 for arch and ubuntu
4f596be 2020-03-10 Christian Clauss - Remove unused function isstring() in scripts/names.py (#346)
89db01c 2020-03-09 Matej Frančeškin - Handle MAV_CMD_SET_CAMERA_MODE
dae26ba 2020-03-08 JaeyoungLim - Handle videostream info and status
c13057d 2020-03-07 JaeyoungLim - Clear formatting and cleanups
639a6bb 2020-03-07 JaeyoungLim - Add parachute plugin
42d05bd 2020-03-09 RomanBapst - standard vtol: decrease rotorDragCoefficient to more realistic values
5669e5c 2020-03-07 leftytechie - Version check (#418)
82657d3 2020-03-07 Lorenz Meier - Fix geotagged images GPS position The GPS position was invalid, leading to incorrectly displayed geotag markers and to incorrect geotags in images.
8794a70 2020-03-02 Julian Oes - cmake: remove warning
7aba744 2020-02-26 TSC21 - gazebo_mavlink_interface: use class enum; use binary notation with the bitmask operations
0dc43a4 2020-02-26 TSC21 - gazebo_mavlink_interface: make sure to always send gyro and accel data in the HIL_SENSOR msgs
0c954a2 2020-02-25 TSC21 - mavlink_interface: split groundtruth stream from sensor stream; only apply rotations where needed
bc92d96 2020-02-25 TSC21 - set baro rate at 50Hz (averaging the PX4 baro drivers ODR)
94d16e6 2020-02-25 TSC21 - update magnetometer rate to 100Hz (fitting the ODR in most of the support PX4 mag drivers)
6cae120 2020-02-25 TSC21 - mavlink_interface: send HIL_SENSOR messages with the bitmask correctly defined IOT set each sensor stream rate separately
dagar pushed a commit that referenced this issue Mar 11, 2020
    - sitl_gazebo in PX4/Firmware (88c9761): PX4/PX4-SITL_gazebo-classic@8569aec
    - sitl_gazebo current upstream: PX4/PX4-SITL_gazebo-classic@458e58f
    - Changes: PX4/PX4-SITL_gazebo-classic@8569aec...458e58f

    458e58f 2020-03-10 JaeyoungLim - Fix sweep cosine (Continuing #302) (#429)
ea2568d 2019-12-27 JaeyoungLim - Increase rudder angle limit
8b905c9 2019-12-27 JaeyoungLim - Add rudder control to sitl
08f8e6f 2020-03-10 Jan-Hendrik Ewers - Update README.md
de10edd 2020-03-10 iwishiwasaneagle - Fixes PX4/PX4-SITL_gazebo-classic#424 for arch and ubuntu
4f596be 2020-03-10 Christian Clauss - Remove unused function isstring() in scripts/names.py (#346)
89db01c 2020-03-09 Matej Frančeškin - Handle MAV_CMD_SET_CAMERA_MODE
dae26ba 2020-03-08 JaeyoungLim - Handle videostream info and status
c13057d 2020-03-07 JaeyoungLim - Clear formatting and cleanups
639a6bb 2020-03-07 JaeyoungLim - Add parachute plugin
42d05bd 2020-03-09 RomanBapst - standard vtol: decrease rotorDragCoefficient to more realistic values
5669e5c 2020-03-07 leftytechie - Version check (#418)
82657d3 2020-03-07 Lorenz Meier - Fix geotagged images GPS position The GPS position was invalid, leading to incorrectly displayed geotag markers and to incorrect geotags in images.
8794a70 2020-03-02 Julian Oes - cmake: remove warning
7aba744 2020-02-26 TSC21 - gazebo_mavlink_interface: use class enum; use binary notation with the bitmask operations
0dc43a4 2020-02-26 TSC21 - gazebo_mavlink_interface: make sure to always send gyro and accel data in the HIL_SENSOR msgs
0c954a2 2020-02-25 TSC21 - mavlink_interface: split groundtruth stream from sensor stream; only apply rotations where needed
bc92d96 2020-02-25 TSC21 - set baro rate at 50Hz (averaging the PX4 baro drivers ODR)
94d16e6 2020-02-25 TSC21 - update magnetometer rate to 100Hz (fitting the ODR in most of the support PX4 mag drivers)
6cae120 2020-02-25 TSC21 - mavlink_interface: send HIL_SENSOR messages with the bitmask correctly defined IOT set each sensor stream rate separately
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant