mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 05:43:34 +08:00
Merge branch 'master' of git://github.com/PX4/Firmware into fault_detection
This commit is contained in:
@@ -408,9 +408,10 @@ void check_waypoints_reached(uint64_t now, const struct vehicle_global_position_
|
||||
cur_wp->current = 0;
|
||||
|
||||
if (wpm->current_active_wp_id == wpm->size - 1 && wpm->size > 1) {
|
||||
//the last waypoint was reached, if auto continue is
|
||||
//activated restart the waypoint list from the beginning
|
||||
wpm->current_active_wp_id = 1;
|
||||
/* the last waypoint was reached, if auto continue is
|
||||
* activated restart the waypoint list from the beginning
|
||||
*/
|
||||
wpm->current_active_wp_id = 0;
|
||||
|
||||
} else {
|
||||
if ((uint16_t)(wpm->current_active_wp_id + 1) < wpm->size)
|
||||
|
||||
@@ -120,8 +120,8 @@ int test_jig_voltages(int argc, char *argv[])
|
||||
warnx("\t ADC operational.\n");
|
||||
|
||||
/* Expected values */
|
||||
int16_t expected_min[] = {2700, 2700, 2200, 2000};
|
||||
int16_t expected_max[] = {3000, 3000, 2500, 2200};
|
||||
int16_t expected_min[] = {2800, 2800, 1800, 800};
|
||||
int16_t expected_max[] = {3100, 3100, 2100, 1100};
|
||||
char *check_res[channels];
|
||||
|
||||
if (channels < 4) {
|
||||
|
||||
Reference in New Issue
Block a user