top of page

Craft, activity and play ideas

Public·1 member

3dr Radio Config Software 47

The two key message parameters are RADIO.rssi and RADIO.remrssi.The first is the RSSI (signal strength) level that the local radio isreceiving at. The remrssi parameter is the RSSI that the remote radio isreceiving at.

3dr Radio Config Software 47

The reason the RSSI varies so much during this flight is that thesignal is attenuated when the plane is rolled over in a turn as I wasusing a simple wire antenna in the plane. The RSSI values for thisflight were plenty high enough for the link quality to be excellentthroughout the flight using the default radio parameters.

The most common source of range problems is noise. Noise is unwantedradio emissions in the same frequency range that your radio is usingthat interferes with the operation of your radio. The radios havetelemetry logging built in to help you diagnose the source of the noise.

Perhaps the most common source of noise with the 3DR-433 is noise fromthe USB bus on your ground station. That shows up as high values for theRADIO.noise value. If you get this, then you could try using a differentUSB cable, or a different laptop. You can also try using a USB hubbetween your laptop and your radio.

The key parameter that controls the range of your radios is theAIR_SPEED. The default is 64 (which is 64kbps) will give you a rangeof over a kilometre with small omni antennas. The lower you set theAIR_SPEED the longer your range, although lowering the AIR_SPEEDalso lowers how much data you can send over the link.

The radio firmware can only support 13 possible air data rates, whichare 2, 4, 8, 16, 19, 24, 32, 48, 64, 96, 128, 192 and 250. If yourapplication needs a different air rate for some reason then we canpotentially add it to the register tables. If you choose an unsupportedair rate then the next highest rate from the supported list will bechosen.

The ECC parameter makes a big difference to the data rate you cansupport at a given AIR_SPEED. If you have ECC set to zero, then noerror correcting information is sent, and the radio uses a simple 16 bitCRC to detect transmission errors. In that case your radio will be ableto support data transfers in one direction of around 90% of theAIR_SPEED.

If you enable ECC, then the data rate youcan support is halved. The ECC system doubles the size of the data sentby the radios. It is worth it however, as the bit error rate will dropdramatically, and you are likely to get a much more reliable link atlonger ranges.

As mentioned above, the radios support a 12/24 Golay error correctingcode if you set the ECC parameter to 1. This means that for every 12bits of data the radio will send 24 bits, calculating the bits usingGolay code lookup tables. The process is reversed on the receiving end,and allows the radio to correct bit errors of up to 3 bits in every 12bits send (i.e. 25% bit error rate).

If you set MAVLINK to 2, then in addition to doing MAVLink framing theradio will look for RC_OVERRIDE packets (used for joysticks) andensure that those packets get sent as quickly as possible. This optionis useful if you are using a tablet based joystick for control.

The RADIO packets also contain information about error rates, and howfull the serial transmit buffer is (as a percentage). ArduPilot canuse this information to automatically adapt the telemetry stream ratesto the data rate that the radios can sustain.

You need to be very careful to configure your radios to stay within thelegal power limits of the country you are operating in. The defaultpower level of 20dBm is fine for the US and Australia, as up to 30dBm isallowed by the LIPD class licenses there in the 915-928MHz frequencyband for a frequency hopping radio. So as long as your antennas have again of less than 10dBi you should be within the ISM rules.

Change MAX_WINDOW from the default of 131 to 33. This will ensurethat the GCS can send a packet to the vehicle at least once every 33msecs. It is worth noting that this will lower the availablebandwidth, so if you need absolute maximum bandwidth you are best offwith the default of 131. Both radios on a channel must have thesame value for this parameter, or they will not be able to talk toeach other.

To enable LBT in your radio you need to set the LBT_RSSI threshold.This is the signal strength that the radio considers to be an indicationthat the channel is busy. If you set LBT_RSSI to zero then LBT isdisabled.

The minimum non-zero setting is 25 which is a few dB above the receivesensitivity of the radio (-121 dBm). To setup LBT_RSSI you need toknow what signal level your local radio regulations require for LBTfunctionality. Each increment in LBT_RSSI above 25 is roughly equal to0.5dB above the radios receive sensitivity. So if you set LBT_RSSI to40 then the radio will consider the channel to be free if the signalstrength is less than 7.5dB above the receiver sensitivity.

The way firmware upload normally works is the planner connects to theradio and sends a AT&UPDATE command to put the radio into bootloadermode ready to receive a new firmware. That only works if the planner cansend AT commands to the radio.

to prevent the buffer from getting too much data (which increaseslatency and risks overflow) the radios send information on how fullthe buffer is to the connected device. ArduPilot adapts itstelemetry rates by small amounts to keep the amount of buffered datareasonable.

during the initial search for another radio, and any time the link islost, the radios go into a mode where they move the receivingfrequency very slowly but move the transmit frequency at the normalrate. This allows the two radios to find each other for initial clocksync. How long this takes depends on the number of channels, the airdata rate and the packet loss rate.

If the controller cannot be mounted in the recommended/default orientation (e.g. due to space constraints) you will need to configure the autopilot software with the orientation that you actually used: Flight Controller Orientation.

PX4 is protocol-compatible with radios that use SiK.SiK Radios often come with appropriate connectors/cables allowing them to be directly connected to Pixhawk Series controllers(in some cases you may need to obtain an appropriate cable/connector).Typically you will need a pair of devices - one for the vehicle and one for the ground station.

ROS is a framework for incorporating various modules of robotics by configuring modules as a TCP network. The ROS community is currently growing in a very fast pace both in the community and industry. The ROS wiki has great tutorials in understanding the framework. Please get used to using ROS following tutorials 1.9. in the tutorials page.

MAVROS is a ROS package which enables ROS to interact with autopilot software using the MAVLink protocol. MAVlink consists of 17 bytes and includes the message ID, target ID and data. The message ID shows what the data is. Message IDs can be seen in the messageID command set.

MAVROS can be installed using the source in the mavros repository. The default dialect of MAVROS is apm. As we are installing px4 on the pixhawk flight controller, MAVROS should be built from source, by configuring mavros by the command below.

For the companion computer to communicate with the flight controller, a USB2TTL converter is needed to convert the voltage of the communication levels. A brief overview of configuring the companion computer with the pixhawk is shown in this link.

1.Recently, I am finding the transfer function of drone. Its input is roll pitch and yaw rate from topic mavros/imu_raw_data of mavros and its output is PWM signals of roll pitch yaw and throttle from mavros/actuator control that are coded on ROS, mavros, Odroid xu4 and px4 native stack firmware. The control signal of drone is from radio controller and sometimes this signal will be combined with chirping signals on roll pitch and yaw so that it will make my drone move around x y z axis and collect the necessary input and output data.2.To achieve this, I used topic mavros/rc/in which reads the roll pitch yaw and throttle signal from radio controller and scaled them to the range of -1 to 1. After that, I produce directly to the output of actuator using topic mavros/ actuator control (roll pitch yaw throttle channel of group 0). This code is fine! I can change my Pixhawk into Offboard Mode, then arm motor and control drone through radio signal, add chirping noise using switch on radio controller ( topic mavros/rc/in) as well as save the input and output data in text file.3.However, when running this code in my experiment, my drone oscillates a lot in take-off process and flip itself occasionally. I guess that the major reason is that the control signal from radio alone to control drone directly is not good.4.After that, I tried to turn it into Manual mode and used QRoundControl software to adjust PID parameters for roll pitch and yaw rate. Fortunately, my drone operates well with less fluctuation. However, with this flight mode, I cannot run my code as in section1 and 2 proposed because it is clear that my code only runs with Offboard Mode.Therefore, can anybody here that have experience with controlling drone with mavros and px4 native stack give me some ideas to solve my problem. I will run manual mode first and then switch it to offboard mode when my drone is stable? but to do that, what i have to add in my code or a process? or should I convert my code to program PX4 native stack firmware?Thank you too much for any help and discussion.

setting /run_id to a7ad4db0-8199-11ea-a9de-dc85def86db3process[rosout-1]: started with pid [5066]started core service [/rosout]process[mavros-2]: started with pid [5084][ INFO] [1587230754.617274039]: FCU URL: /dev/ttyACM0:57600[ INFO] [1587230754.620913481]: serial0: device: /dev/ttyACM0 @ 57600 bps[ INFO] [1587230754.621778125]: GCS bridge disabled[ INFO] [1587230754.639949832]: Plugin 3dr_radio loaded[ INFO] [1587230754.642840836]: Plugin 3dr_radio initialized[ INFO] [1587230754.642986137]: Plugin actuator_control loaded[ INFO] [1587230754.649998070]: Plugin actuator_control initialized[ INFO] [1587230754.655602204]: Plugin adsb loaded[ INFO] [1587230754.661047930]: Plugin adsb initialized[ INFO] [1587230754.661299325]: Plugin altitude loaded[ INFO] [1587230754.663016734]: Plugin altitude initialized[ INFO] [1587230754.663247038]: Plugin cam_imu_sync loaded[ INFO] [1587230754.664355512]: Plugin cam_imu_sync initialized[ INFO] [1587230754.664598298]: Plugin command loaded[ INFO] [1587230754.674940931]: Plugin command initialized[ INFO] [1587230754.675165442]: Plugin companion_process_status loaded[ INFO] [1587230754.681536613]: Plugin companion_process_status initialized[ INFO] [1587230754.681755392]: Plugin debug_value loaded[ INFO] [1587230754.688794715]: Plugin debug_value initialized[ INFO] [1587230754.688850375]: Plugin distance_sensor blacklisted[ INFO] [1587230754.689094639]: Plugin fake_gps loaded[ INFO] [1587230754.713705324]: Plugin fake_gps initialized[ INFO] [1587230754.714011920]: Plugin ftp loaded[ INFO] [1587230754.725618297]: Plugin ftp initialized[ INFO] [1587230754.725867334]: Plugin global_position loaded[ INFO] [1587230754.751573413]: Plugin global_position initialized[ INFO] [1587230754.751811367]: Plugin gps_rtk loaded[ INFO] [1587230754.755901156]: Plugin gps_rtk initialized[ INFO] [1587230754.756165899]: Plugin hil loaded[ INFO] [1587230754.781823847]: Plugin hil initialized[ INFO] [1587230754.782139713]: Plugin home_position loaded[ INFO] [1587230754.788699376]: Plugin home_position initialized[ INFO] [1587230754.789102071]: Plugin imu loaded[ INFO] [1587230754.804786598]: Plugin imu initialized[ INFO] [1587230754.805066243]: Plugin landing_target loaded[ INFO] [1587230754.833368344]: Plugin landing_target initialized[ INFO] [1587230754.833809332]: Plugin local_position loaded[ INFO] [1587230754.846106327]: Plugin local_position initialized[ INFO] [1587230754.846380567]: Plugin log_transfer loaded[ INFO] [1587230754.852512253]: Plugin log_transfer initialized[ INFO] [1587230754.852879622]: Plugin manual_control loaded[ INFO] [1587230754.859846611]: Plugin manual_control initialized[ INFO] [1587230754.860169211]: Plugin mocap_pose_estimate loaded[ INFO] [1587230754.870832746]: Plugin mocap_pose_estimate initialized[ INFO] [1587230754.871117895]: Plugin mount_control loaded[ INFO] [1587230754.878671776]: Plugin mount_control initialized[ INFO] [1587230754.878941114]: Plugin obstacle_distance loaded[ INFO] [1587230754.884405535]: Plugin obstacle_distance initialized[ INFO] [1587230754.884662026]: Plugin odom loaded[ INFO] [1587230754.894174953]: Plugin odom initialized[ INFO] [1587230754.894449672]: Plugin onboard_computer_status loaded[ INFO] [1587230754.899795615]: Plugin onboard_computer_status initialized[ INFO] [1587230754.900201466]: Plugin param loaded[ INFO] [1587230754.905537254]: Plugin param initialized[ INFO] [1587230754.905762382]: Plugin px4flow loaded[ INFO] [1587230754.917180185]: Plugin px4flow initialized[ INFO] [1587230754.917273473]: Plugin rangefinder blacklisted[ INFO] [1587230754.917722086]: Plugin rc_io loaded[ INFO] [1587230754.925963592]: Plugin rc_io initialized[ INFO] [1587230754.926039131]: Plugin safety_area blacklisted[ INFO] [1587230754.926310443]: Plugin setpoint_accel loaded[ INFO] [1587230754.932290178]: Plugin setpoint_accel initialized[ INFO] [1587230754.932699787]: Plugin setpoint_attitude loaded[ INFO] [1587230754.948817940]: Plugin setpoint_attitude initialized[ INFO] [1587230754.949134188]: Plugin setpoint_position loaded[ INFO] [1587230754.977784831]: Plugin setpoint_position initialized[ INFO] [1587230754.978098074]: Plugin setpoint_raw loaded[ INFO] [1587230754.994887365]: Plugin setpoint_raw initialized[ INFO] [1587230754.995191939]: Plugin setpoint_trajectory loaded[ INFO] [1587230755.003344049]: Plugin setpoint_trajectory initialized[ INFO] [1587230755.003680917]: Plugin setpoint_velocity loaded[ INFO] [1587230755.015955031]: Plugin setpoint_velocity initialized[ INFO] [1587230755.016835415]: Plugin sys_status loaded[ INFO] [1587230755.041671687]: Plugin sys_status initialized[ INFO] [1587230755.042017528]: Plugin sys_time loaded[ INFO] [1587230755.056171261]: TM: Timesync mode: MAVLINK[ INFO] [1587230755.058675763]: Plugin sys_time initialized[ INFO] [1587230755.058958963]: Plugin trajectory loaded[ INFO] [1587230755.069566064]: Plugin trajectory initialized[ INFO] [1587230755.069908752]: Plugin vfr_hud loaded[ INFO] [1587230755.071317821]: Plugin vfr_hud initialized[ INFO] [1587230755.071386214]: Plugin vibration blacklisted[ INFO] [1587230755.071687638]: Plugin vision_pose_estimate loaded[ INFO] [1587230755.088142643]: Plugin vision_pose_estimate initialized[ INFO] [1587230755.088479920]: Plugin vision_speed_estimate loaded[ INFO] [1587230755.095482271]: Plugin vision_speed_estimate initialized[ INFO] [1587230755.095818186]: Plugin waypoint loaded[ INFO] [1587230755.103969036]: Plugin waypoint initialized[ INFO] [1587230755.104022401]: Plugin wheel_odometry blacklisted[ INFO] [1587230755.104417505]: Plugin wind_estimation loaded[ INFO] [1587230755.106645862]: Plugin wind_estimation initialized[ INFO] [1587230755.106772491]: Autostarting mavlink via USB on PX4[ INFO] [1587230755.107091248]: Built-in SIMD instructions: SSE, SSE2[ INFO] [1587230755.107132527]: Built-in MAVLink package version: 2020.4.4[ INFO] [1587230755.107232808]: Known MAVLink dialects: common ardupilotmega ASLUAV autoquad icarous matrixpilot paparazzi slugs standard uAvionix ualberta[ INFO] [1587230755.107307175]: MAVROS started. MY ID 1.240, TARGET ID 1.1[ INFO] [1587230755.223903269]: IMU: High resolution IMU detected![ INFO] [1587230755.225927511]: IMU: Attitude quaternion IMU detected![ INFO] [1587230755.443214204]: RC_CHANNELS message detected![ INFO] [1587230755.859208576]: CON: Got HEARTBEAT, connected. FCU: PX4 Autopilot[ INFO] [1587230755.864818494]: IMU: High resolution IMU detected![ INFO] [1587230755.865256801]: IMU: Attitude quaternion IMU detected![ INFO] [1587230755.943907658]: RC_CHANNELS message detected![ERROR] [1587230756.029910073]: FCU: Onboard controller lost[ INFO] [1587230756.081858866]: FCU: Onboard controller regained[ INFO] [1587230756.865514759]: VER: 1.1: Capabilities 0x000000000000e4ef[ INFO] [1587230756.865611160]: VER: 1.1: Flight software: 010a01ff (e0f016c2b3000000)[ INFO] [1587230756.865694507]: VER: 1.1: Middleware software: 010a01ff (e0f016c2b3000000)[ INFO] [1587230756.865778943]: VER: 1.1: OS software: 071d00ff (427238133be2b0ec)[ INFO] [1587230756.865855775]: VER: 1.1: Board hardware: 00000032[ INFO] [1587230756.865930262]: VER: 1.1: VID/PID: 26ac:0032[ INFO] [1587230756.866003260]: VER: 1.1: UID: 3038510738333933[ WARN] [1587230756.867597214]: CMD: Unexpected command 520, result 0[ INFO] [1587230765.860215512]: HP: requesting home position[ INFO] [1587230770.861342169]: WP: mission received[ INFO] [1587230775.859518018]: HP: requesting home position[ INFO] [1587230785.859820618]: HP: requesting home position 350c69d7ab


Welcome to the group! You can connect with other members, ge...


bottom of page