Hi,
I’m trying to use Python script with SITL and MAVPROXY and I’ve got “AP: ServoRelayEvent:” issue when using this script.
I already tried to find a solution to a “AP: ServoRelayEvent:” issue in the Forum, but to be honest I didn’t understand the answers recieved (and I try for weeks to understand ;-)), so maybe you as Mavproxy experts can give any help
- If I’m sending directly to Mavproxy servos commands like “RC 3 1800” it works fine
- If I’m doing it with the script I’ve got the error message on Mavproxy
servorelayevent channel 3 is already in use
AP: ServoRelayEvent: Channel 2 is already in use
AP: ServoRelayEvent: Channel 1 is already in use
AP: ServoRelayEvent: Channel 3 is already in use
The RC commands in the Python script :
master.mav.command_long_send(
master.target_system,
master.target_component,
mavutil.mavlink.MAV_CMD_DO_SET_SERVO,
0, # confirmation
2, # param1
1500, # param2
0, # param3
0, # param4
0, # param5
0, # param6
0) # param7
master.mav.command_long_send(
master.target_system,
master.target_component,
mavutil.mavlink.MAV_CMD_DO_SET_SERVO,
0, # confirmation
1, # param1
1500, # param2
0, # param3
0, # param4
0, # param5
0, # param6
0) # param7
master.mav.command_long_send(
master.target_system,
master.target_component,
mavutil.mavlink.MAV_CMD_DO_SET_SERVO,
0, # confirmation
3, # param1
1800, # param2
0, # param3
0, # param4
0, # param5
0, # param6
0) # param7
I’ve checked in the SITL parameters but didn’t find anything.
In the MAVPROXY doc there’s something about the module “Relay Management” I don’t know if it can help
https://ardupilot.org/mavproxy/docs/modules/relay.html
If you had this kind of issue before and find a solution or can help, many thanks !
Nico