"For some reason I can't reply to your new comments. You need to include the mavlink library files. They can be downloaded from the authors site. We did use the PID control for vertical control. Ran out time for lateral control. The project is done…"
"The code does technically work. But i had issues with it moving too fast before the APM could register it. After putting sleep() commands in between to give it time to think, it armed. Look at the list of mavlink command structures from pixhawk…"
"Hi robert, were you able to arm and send it commands?
int fd = serial_fd; char buf[300]; mavlink_command_long_t arm_command_msg; mavlink_message_t arm_msg; arm_command_msg.command = 40; arm_command_msg.target_system = 1; …"
"Hi, I am working off of that send_quad_commands.cpp. However I am still bit lost as i just started coding with mavlink. This is what i have. I believe, i need to encode the message/command. Then write it to the port.but apparently the inputs to the…"
"That is great!
Can I get bit more help on this? What is the line to send the message? Should i just have write() or some other mavlink command send function? Your help is highly appreciated!"
"what command are you sending to arm the quad? Whats the exact line? Also, arming the quad will not make the rotors spin. You have to send RC Override command"
"Valentin,
Thanks for the reply. Based on your post, I was able to find out that command and the 400 with parameter 1 to arm and 0 to disarm.
However, I am still unsure what is the line in code to invoke. With the given library files,…"
"Hi Valentin, can i get more information on how you were able to arm the quad using #76? Also i am trying to use SET_ROLL_PITCH_YAW_THRUST ( #56 ). Currently I am able to request for IMU data but I am still trying to send commands to the quad. Any…"
"Hi shyam, I have been trying to utilize this code but it does not seem to be working. I am currently using the c_uart_interface_example code . Specifically the mavlink_serial.cpp. I am just getting the heartbeat messages:
Received message from…"
Hi everybody, I have been trying to utilize this code but it does not seem to be working. I am currently using the c_uart_interface_example code . Specifically the mavlink_serial.cpp. I am just getting the heartbeat messages:Received message from…
"I am working on a similar project and was wondering if you managed to get the code to work? I think the issue was the code was not requesting attitude data stream. Ive tried including a line that should do that, but it still only gets the heartbeat…"
"Jeff, I am having the same problem that you were having. I am currently using the c_uart_interface_example code . Specifically the mavlink_serial.cpp. I am just getting the heartbeat messages:
Received message from serial with ID #0 (sys:1|comp:1):…"