mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 20:33:34 +08:00
Code formatting and warning fixes
This commit is contained in:
@@ -486,15 +486,15 @@ BlinkM::led()
|
|||||||
|
|
||||||
/* get number of used satellites in navigation */
|
/* get number of used satellites in navigation */
|
||||||
num_of_used_sats = 0;
|
num_of_used_sats = 0;
|
||||||
//for(int satloop=0; satloop<20; satloop++) {
|
|
||||||
for(int satloop=0; satloop<sizeof(vehicle_gps_position_raw.satellite_used); satloop++) {
|
for (unsigned satloop = 0; satloop < (sizeof(vehicle_gps_position_raw.satellite_used) / sizeof(vehicle_gps_position_raw.satellite_used[0])); satloop++) {
|
||||||
if(vehicle_gps_position_raw.satellite_used[satloop] == 1) {
|
if (vehicle_gps_position_raw.satellite_used[satloop] == 1) {
|
||||||
num_of_used_sats++;
|
num_of_used_sats++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(new_data_vehicle_status || no_data_vehicle_status < 3){
|
if (new_data_vehicle_status || no_data_vehicle_status < 3) {
|
||||||
if(num_of_cells == 0) {
|
if (num_of_cells == 0) {
|
||||||
/* looking for lipo cells that are connected */
|
/* looking for lipo cells that are connected */
|
||||||
printf("<blinkm> checking cells\n");
|
printf("<blinkm> checking cells\n");
|
||||||
for(num_of_cells = 2; num_of_cells < 7; num_of_cells++) {
|
for(num_of_cells = 2; num_of_cells < 7; num_of_cells++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user