Inverted X and Y geometry data [SOLVED]
Posted: Mon Dec 14, 2020 6:46 am
The title of this thread has been changed to reflect the actual problem, which was that the lighthouses were mounted upside down. (ie hanigng down from the ceiling)
Hi everyone,
I am trying to troubleshoot the use of motion commander py scripts with the lighthouse system.
Setup.
CF2.1 latest firmware,
latest cfclient on mac os 10.14
latest cflib
version 1 base stations
I have...
- obtained calibration data and hard coded it into lighthouse_core.c
- flashed the firmware using the following line in the config.mk file (which sits in tools/make)
CFLAGS += -DDISABLE_LIGHTHOUSE_DRIVER=0
- obtained the geometry data, checked to see if twas reasonable and written it to ram using get_bs_geometry.py --write
- observed the raw angles x and y from both lighthouses, moving around on the plotter tab (as kimberly did in the recent Spiral Swarm Demo) whilst moving the CF around with my hands.
but when i go to run any of the follwoing...
-- autonomous_sequence.py -> the drone lifts then immediately flips out
-- initial_position.py, sbs_motion_commander or position_commander_demo.py -> the drone lifts but travels aggressively backwards and crashes into the celing
-- autonomous_sequence -> sometimes, straight up into the ceiling, somtimes flips....
i have tried
- flying the drone with he controller, does not feel any different to when the deck is not on the board.
- as soon as i hit the trigger for position or alititude hold, it flips out.
Given that I am a begginer at this, I will be doing these two tutorials in the coming days to see if anything comes up.
https://www.bitcraze.io/documentation/r ... ython_api/
https://www.bitcraze.io/documentation/r ... commander/
But just wanted to make sureI am not missing anything for now..
Should these scripts run as they are?
Hi everyone,
I am trying to troubleshoot the use of motion commander py scripts with the lighthouse system.
Setup.
CF2.1 latest firmware,
latest cfclient on mac os 10.14
latest cflib
version 1 base stations
I have...
- obtained calibration data and hard coded it into lighthouse_core.c
- flashed the firmware using the following line in the config.mk file (which sits in tools/make)
CFLAGS += -DDISABLE_LIGHTHOUSE_DRIVER=0
- obtained the geometry data, checked to see if twas reasonable and written it to ram using get_bs_geometry.py --write
- observed the raw angles x and y from both lighthouses, moving around on the plotter tab (as kimberly did in the recent Spiral Swarm Demo) whilst moving the CF around with my hands.
but when i go to run any of the follwoing...
-- autonomous_sequence.py -> the drone lifts then immediately flips out
-- initial_position.py, sbs_motion_commander or position_commander_demo.py -> the drone lifts but travels aggressively backwards and crashes into the celing
-- autonomous_sequence -> sometimes, straight up into the ceiling, somtimes flips....
i have tried
- flying the drone with he controller, does not feel any different to when the deck is not on the board.
- as soon as i hit the trigger for position or alititude hold, it flips out.
Given that I am a begginer at this, I will be doing these two tutorials in the coming days to see if anything comes up.
https://www.bitcraze.io/documentation/r ... ython_api/
https://www.bitcraze.io/documentation/r ... commander/
But just wanted to make sureI am not missing anything for now..
Should these scripts run as they are?