Hi,
I want to inject false GPS data to arducopter with master.mav.gps_input_send
. In order to do that, I also have to set GPS_TYPE to 14.
- I tried,
master.mav.param_set_send(
master.target_system, master.target_component,
b'GPS_TYPE',
14,
mavutil.mavlink.MAV_PARAM_TYPE_REAL32
)
After that, when I request GPS_TYPE
, the value is 14. However, it won’t use the GPS info in master.mav.gps_input_send
, instead, it uses the original GPS value.
- If I change
GPS_TYPE
in/Tools/autotest/default_params/copter.parm
, it will take the GPS into inmaster.mav.gps_input_send
. However, I want to feed the GPS data in runtime. In other words, the GPS data can be switched to fake GPS data in flight and can also switch back to correct data later.
How should I achive that?