@@ -58,7 +58,7 @@ float batt_voltage_1_new = 0;
58
58
float batt_voltage_2_new = 0 ;
59
59
int thrusters_new[] = { 0 , 0 , 0 , 0 , 0 , 0 , 0 , 0 };
60
60
int devices_new[] = { 0 , 0 , 0 , 0 , 0 , 0 , 0 };
61
- String status_new = " JP is my father !" ;
61
+ String status_new = " Hello World !" ;
62
62
int tether_new = 0 ;
63
63
64
64
// Define global variables for display functions
@@ -375,18 +375,18 @@ void tether_dual_battery(float tether_status, float batt1_V, float batt2_V) {
375
375
376
376
// function to update thruster statuses
377
377
void thrusterStatus (int Sthrusters[]) {
378
- for (int i = 0 ; i < 8 ; i++) {
379
- if (microseconds[i] == 1500 ) {
380
- Sthrusters[i] = 0 ;
381
- } else {
382
- Sthrusters[i] = 1 ;
383
- }
384
- }
378
+ for (int i = 0 ; i < 8 ; i++) {
379
+ if (microseconds[i] == 1500 ) {
380
+ Sthrusters[i] = 0 ;
381
+ } else {
382
+ Sthrusters[i] = 1 ;
383
+ }
384
+ }
385
385
}
386
386
387
387
// Callback function that updates microseconds array with values from ros
388
388
void commandCb (const auv_msgs::ThrusterMicroseconds& tc){
389
- memcpy (microseconds, tc.microseconds , 8 *sizeof (uint16_t ));
389
+ memcpy (microseconds, tc.microseconds , 8 *sizeof (uint16_t ));
390
390
thrusterStatus (Sthrusters);
391
391
}
392
392
0 commit comments