Sending commands to pixhawk using ros

i have created a publisher code to send commands to Pixhawk to move the drone, the code is working and commands is getting published but the motor is not moving. Its a trial version now as i have connected pixhawk directly into my laptop and a single motor is connected to check whether it is working. I am sure that it is getting published as when i look into my topic it is showing that the motions commands are getting published. if my command is move left then this is comming in my topic
header:
seq: 5
stamp:
secs: 1693207202
nsecs: 279874086
frame_id: ‘’
coordinate_frame: 1
type_mask: 3527
position:
x: 0.0
y: 0.0
z: 0.0
velocity:
x: 0.0
y: -1.0
z: 0.0
acceleration_or_force:
x: 0.0
y: 0.0
z: 0.0
yaw: 0.0
yaw_rate: 0.0

need help.