File tree Expand file tree Collapse file tree 8 files changed +47
-7
lines changed Expand file tree Collapse file tree 8 files changed +47
-7
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ name = "aft_port"
50
50
type = " T200"
51
51
pos = [-0.271 , -0.201 , -0.0204 ]
52
52
heading_pitch = [0.0 , 90.0 ]
53
- reversed = true
53
+ reversed = false
54
54
55
55
[[thrusters ]]
56
56
name = " sway_aft"
@@ -78,7 +78,7 @@ name = "fore_starboard"
78
78
type = " T200"
79
79
pos = [0.235 , 0.201 , -0.0204 ]
80
80
heading_pitch = [0.0 , 90.0 ]
81
- reversed = true
81
+ reversed = false
82
82
83
83
[[thrusters ]]
84
84
name = " sway_fore"
Original file line number Diff line number Diff line change @@ -830,6 +830,7 @@ connected_devices
830
830
bool thrusters
831
831
bool thrusters2
832
832
bool thrusters_mini
833
+ bool thruster_board_2
833
834
bool led
834
835
835
836
deadman_settings
Original file line number Diff line number Diff line change 1
1
includes = [
2
- " ports_ajax.toml" ,
3
- " ajaxThruster.toml" ,
2
+ " leviathan_ports.toml" ,
3
+ " leviathanThruster1.toml" ,
4
+ " leviathanThruster2.toml" ,
4
5
" him.toml" ,
5
6
" ajaxPdActuator.toml" ,
6
7
" sensor.toml" ,
Original file line number Diff line number Diff line change
1
+ [devices .thrusters .vars ]
2
+ Thruster1PwmVal = " motor_desires.fore_starboard"
3
+ Thruster2PwmVal = " motor_desires.starboard"
4
+ Thruster3PwmVal = " motor_desires.sway_aft"
5
+ Thruster4PwmVal = " motor_desires.aft_starboard"
6
+
7
+ Thruster1PwmReadback = " ramp_status.fore_starboard_ramp"
8
+ Thruster2PwmReadback = " ramp_status.starboard_ramp"
9
+ Thruster3PwmReadback = " ramp_status.sway_aft_ramp"
10
+ Thruster4PwmReadback = " ramp_status.aft_starboard_ramp"
11
+
12
+ RampPeriod = " ramp.ramp_period"
13
+ RampInc = " ramp.ramp_inc"
14
+ RampDec = " ramp.ramp_dec"
15
+
Original file line number Diff line number Diff line change
1
+ [devices .thruster_board_2 .vars ]
2
+ Thruster1PwmVal = " motor_desires.aft_port"
3
+ Thruster2PwmVal = " motor_desires.port"
4
+ Thruster3PwmVal = " motor_desires.sway_fore"
5
+ Thruster4PwmVal = " motor_desires.fore_port"
6
+
7
+ Thruster1PwmReadback = " ramp_status.aft_port_ramp"
8
+ Thruster2PwmReadback = " ramp_status.port_ramp"
9
+ Thruster3PwmReadback = " ramp_status.sway_fore_ramp"
10
+ Thruster4PwmReadback = " ramp_status.fore_port_ramp"
11
+
12
+ RampPeriod = " ramp.ramp_period"
13
+ RampInc = " ramp.ramp_inc"
14
+ RampDec = " ramp.ramp_dec"
15
+
Original file line number Diff line number Diff line change
1
+ ports = [
2
+ " /dev/serial/by-id/usb-CUAUV_Kraken_3_AUV-KRAKEN3-if02-port0" , # merge
3
+ " /dev/serial/by-id/usb-CUAUV_Kraken_2_AUV-KRAKEN2-if02-port0" , # PD
4
+ " /dev/serial/by-id/usb-CUAUV_Kraken_4_AUV-KRAKEN4-if02-port0" , # thruster 2
5
+ " /dev/serial/by-id/usb-CUAUV_Kraken_1_AUV-KRAKEN1-if00-port0" , # thruster 1
6
+ " /dev/serial/by-id/usb-CUAUV_Kraken_4_AUV-KRAKEN4-if00-port0" , # sensor
7
+ " /dev/serial/by-id/usb-CUAUV_Kraken_2_AUV-KRAKEN2-if03-port0" , # actuators
8
+ ]
9
+
Original file line number Diff line number Diff line change @@ -67,7 +67,6 @@ def gpio_connected():
67
67
def merge_connected ():
68
68
return shm .connected_devices .merge .get ()
69
69
70
- @vehicle (MAINSUB )
71
70
def thrusters_connected ():
72
71
return shm .connected_devices .thrusters .get ()
73
72
@@ -77,7 +76,7 @@ def thrusters2_connected():
77
76
78
77
@vehicle (MINISUB )
79
78
def thrusters_mini_connected ():
80
- return shm .connected_devices .thrusters_mini .get ()
79
+ return shm .connected_devices .thruster_board_2 .get ()
81
80
82
81
def power_distribution_connected ():
83
82
return shm .connected_devices .PD .get ()
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ VEHICLE_TYPE=$CUAUV_VEHICLE_TYPE
24
24
if [ " $VEHICLE_TYPE " = " mainsub" ]; then
25
25
GX_PORT=$( readlink -f /dev/serial/by-id/usb-CUAUV_ODAX_3_ODAX3-if01-port0)
26
26
elif [ " $VEHICLE_TYPE " = " minisub" ]; then
27
- GX_PORT=$( readlink -f /dev/serial/by-id/usb-CUAUV_ODAX_3_ODAX3 -if01-port0)
27
+ GX_PORT=$( readlink -f /dev/serial/by-id/usb-CUAUV_Kraken_4_AUV-KRAKEN4 -if01-port0)
28
28
fi
29
29
DVL_PORT=/dev/serial/by-id/usb-CUAUV_ODAX_1_ODAX1-if00-port0
30
30
You can’t perform that action at this time.
0 commit comments