{"action":"created","issue":{"url":"https://api.github.com/repos/ArduPilot/ardupilot/issues/5164","repository_url":"https://api.github.com/repos/ArduPilot/ardupilot","labels_url":"https://api.github.com/repos/ArduPilot/ardupilot/issues/5164/labels{/name}","comments_url":"https://api.github.com/repos/ArduPilot/ardupilot/issues/5164/comments","events_url":"https://api.github.com/repos/ArduPilot/ardupilot/issues/5164/events","html_url":"https://github.com/ArduPilot/ardupilot/issues/5164","id":187751554,"number":5164,"title":"sim_vehicle.py can't perform a `param set PARAMETER VALUE` on start","user":{"login":"Jesse-Millwood","id":5342237,"avatar_url":"https://avatars.githubusercontent.com/u/5342237?v=3","gravatar_id":"","url":"https://api.github.com/users/Jesse-Millwood","html_url":"https://github.com/Jesse-Millwood","followers_url":"https://api.github.com/users/Jesse-Millwood/followers","following_url":"https://api.github.com/users/Jesse-Millwood/following{/other_user}","gists_url":"https://api.github.com/users/Jesse-Millwood/gists{/gist_id}","starred_url":"https://api.github.com/users/Jesse-Millwood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jesse-Millwood/subscriptions","organizations_url":"https://api.github.com/users/Jesse-Millwood/orgs","repos_url":"https://api.github.com/users/Jesse-Millwood/repos","events_url":"https://api.github.com/users/Jesse-Millwood/events{/privacy}","received_events_url":"https://api.github.com/users/Jesse-Millwood/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-11-07T16:04:41Z","updated_at":"2016-11-07T22:13:50Z","closed_at":"2016-11-07T18:17:21Z","body":"#### Issue details\r\nWhen calling the `sim_vehicle.py` script you can't set a parameter on start. \r\nWhen trying to set a parameter on start with the `--cmd` switch the output on the console will show \r\n`Unable to find parameter PARAMETERNAME`\r\n\r\nWhat I have tried: \r\n```\r\nsim_vehicle.py -d 5 --aircraft Vehicle1 -v ArduCopter --map -m \"--state-basedir $HOME/VehicleSims/2Vehicle/ --cmd=\\\"module load console; param set SYSID_THISMAV 3\\\"\"\r\n```\r\nIt then shows: \r\n```\r\nConnect tcp:127.0.0.1:5770 source_system=255\r\nLoaded module map\r\nno script Vehicle1/mavinit.scr\r\nLoaded module console\r\nUnable to find parameter 'SYSID_THISMAV'\r\nLog Directory: /home/cadet/VehicleSims/2Vehicle/Vehicle1/logs/2016-11-07/flight11\r\nTelemetry log: /home/cadet/VehicleSims/2Vehicle/Vehicle1/logs/2016-11-07/flight11/flight.tlog\r\nMAV> Waiting for heartbeat from tcp:127.0.0.1:5770\r\nSTABILIZE> Received 689 parameters\r\nSaved 689 parameters to /home/cadet/VehicleSims/2Vehicle/Vehicle1/logs/2016-11-07/flight11/mav.parm\r\n```\r\n**This is also after my change to how the string of `--cmd` is parsed**  #5163 \r\nBut you can't pass that to it anyways without my change.\r\n\r\nI have tried delaying the start of MAVProxy as well so this might be an issue with MAVProxy.\r\n\r\n\r\n#### Version\r\ncommit: 0c1f2ba144d257fcab069eeeaeca7b2d701953ed\r\n\r\n#### Platform\r\n[  ] All\r\n[  ] AntennaTracker\r\n[ x] Copter\r\n[  ] Plane\r\n[  ] Rover\r\n\r\n#### Airframe type\r\nSimulated Quadcopter\r\n\r\n#### Hardware type\r\nSimulation\r\n\r\n#### Logs\r\n_Please provide a link to any relevant logs that show the issue_\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ArduPilot/ardupilot/issues/comments/258980241","html_url":"https://github.com/ArduPilot/ardupilot/issues/5164#issuecomment-258980241","issue_url":"https://api.github.com/repos/ArduPilot/ardupilot/issues/5164","id":258980241,"user":{"login":"OXINARF","id":1778527,"avatar_url":"https://avatars.githubusercontent.com/u/1778527?v=3","gravatar_id":"","url":"https://api.github.com/users/OXINARF","html_url":"https://github.com/OXINARF","followers_url":"https://api.github.com/users/OXINARF/followers","following_url":"https://api.github.com/users/OXINARF/following{/other_user}","gists_url":"https://api.github.com/users/OXINARF/gists{/gist_id}","starred_url":"https://api.github.com/users/OXINARF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OXINARF/subscriptions","organizations_url":"https://api.github.com/users/OXINARF/orgs","repos_url":"https://api.github.com/users/OXINARF/repos","events_url":"https://api.github.com/users/OXINARF/events{/privacy}","received_events_url":"https://api.github.com/users/OXINARF/received_events","type":"User","site_admin":false},"created_at":"2016-11-07T22:13:50Z","updated_at":"2016-11-07T22:13:50Z","body":"@khancyr It isn't a SITL issue as SITL is just an ArduPilot binary made to run with simulated hardware. You can launch as many as instances as you like provided you provide the correct options (including providing a default params file) and you can use whatever GCS you want (to change parameters and everything else).\r\n\r\nThe sim_vehicle script is just a simple tool to launch the SITL binary and MAVProxy at the same time. A PR with an enhancement to it is never discarded but having an issue opened looks like a stretch to me - otherwise this list becomes even more unmanageable."}}
{"actor":{"display_login":"OXINARF"}}