mirror of https://github.com/ArduPilot/ardupilot
SITL: rename uLanding simulation to USD1
This commit is contained in:
parent
8e689f2e66
commit
55e8725231
|
@ -22,7 +22,7 @@
|
|||
|
||||
namespace SITL {
|
||||
|
||||
class RF_uLanding : public SerialRangeFinder {
|
||||
class RF_USD1 : public SerialRangeFinder {
|
||||
public:
|
||||
};
|
||||
|
||||
|
|
|
@ -13,14 +13,14 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
Simulator for the uLanding v0 rangefinder
|
||||
Simulator for the USD1 v0 rangefinder
|
||||
*/
|
||||
|
||||
#include "SIM_RF_uLanding_v0.h"
|
||||
#include "SIM_RF_USD1_v0.h"
|
||||
|
||||
using namespace SITL;
|
||||
|
||||
uint32_t RF_uLanding_v0::packet_for_alt(uint16_t alt_cm, uint8_t *buffer, uint8_t buflen)
|
||||
uint32_t RF_USD1_v0::packet_for_alt(uint16_t alt_cm, uint8_t *buffer, uint8_t buflen)
|
||||
{
|
||||
const uint16_t reading = alt_cm / 2.5f;
|
||||
buffer[0] = 0x48;
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
Simulator for the uLanding v0 Serial RangeFinder
|
||||
Simulator for the USD1 v0 Serial RangeFinder
|
||||
|
||||
./Tools/autotest/sim_vehicle.py --gdb --debug -v ArduCopter -A --uartF=sim:ulanding_v0 --speedup=1
|
||||
./Tools/autotest/sim_vehicle.py --gdb --debug -v ArduCopter -A --uartF=sim:USD1_v0 --speedup=1
|
||||
|
||||
param set SERIAL5_PROTOCOL 9
|
||||
param set RNGFND1_TYPE 11
|
||||
|
@ -29,11 +29,11 @@ rc 3 1600
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "SIM_RF_uLanding.h"
|
||||
#include "SIM_RF_USD1.h"
|
||||
|
||||
namespace SITL {
|
||||
|
||||
class RF_uLanding_v0 : public RF_uLanding {
|
||||
class RF_USD1_v0 : public RF_USD1 {
|
||||
public:
|
||||
|
||||
uint32_t packet_for_alt(uint16_t alt_cm, uint8_t *buffer, uint8_t buflen) override;
|
||||
|
|
|
@ -13,14 +13,14 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
Simulator for the uLanding v1 rangefinder
|
||||
Simulator for the USD1 v1 rangefinder
|
||||
*/
|
||||
|
||||
#include "SIM_RF_uLanding_v1.h"
|
||||
#include "SIM_RF_USD1_v1.h"
|
||||
|
||||
using namespace SITL;
|
||||
|
||||
uint32_t RF_uLanding_v1::packet_for_alt(uint16_t alt_cm, uint8_t *buffer, uint8_t buflen)
|
||||
uint32_t RF_USD1_v1::packet_for_alt(uint16_t alt_cm, uint8_t *buffer, uint8_t buflen)
|
||||
{
|
||||
buffer[0] = 0xFE;
|
||||
buffer[1] = 0; // unused?
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
/*
|
||||
Simulator for the uLanding v1 Serial RangeFinder
|
||||
Simulator for the USD1 v1 Serial RangeFinder
|
||||
|
||||
./Tools/autotest/sim_vehicle.py --gdb --debug -v ArduCopter -A --uartF=sim:ulanding_v1 --speedup=1
|
||||
./Tools/autotest/sim_vehicle.py --gdb --debug -v ArduCopter -A --uartF=sim:USD1_v1 --speedup=1
|
||||
|
||||
param set SERIAL5_PROTOCOL 9
|
||||
param set RNGFND1_TYPE 11
|
||||
|
@ -29,11 +29,11 @@ rc 3 1600
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "SIM_RF_uLanding.h"
|
||||
#include "SIM_RF_USD1.h"
|
||||
|
||||
namespace SITL {
|
||||
|
||||
class RF_uLanding_v1 : public RF_uLanding {
|
||||
class RF_USD1_v1 : public RF_USD1 {
|
||||
public:
|
||||
|
||||
uint32_t packet_for_alt(uint16_t alt_cm, uint8_t *buffer, uint8_t buflen) override;
|
||||
|
|
Loading…
Reference in New Issue