Return of the Jedi is kind of ambiguous about the nature of the, um, "relationship" between the Ewoks and the Imperial troops manning the outpost on the moon. Specifically, I'm wondering if the Battle of Endor is the first real conflict between the Ewoks and the Empire or if they have interacted before this.
Clues that suggest that this might be the first time:
• The trooper who is attempting to arrest Leia is surprised and quite distracted when Wicket bonks him on the shin. (not super-confident about this one; feel free to debate)
• Some Ewoks apparently don't understand the power of an AT-ST; they try to take one down by throwing rocks and others attempt to use a hand-held rope to trip one (which turns into a hilariously unfair game of tug-of-war)
• When our heroes are escorted out of the bunker and surrounded by 50 or so Imperial troopers, they are unable to immediately react when the Ewoks begin their attack. It's like everyone was thinking, "Uh, oh—what's going on?!"
• The scout troopers and Stormtroopers seem to have difficulty defending themselves against the Ewoks, almost as if they weren't expecting them or were not familiar with how they fight.
Clues that suggest that this is not the first time:
• They have two massive logs suspended by rope, designed to swing down to just the right height to crush an AT-ST's cockpit. So obviously some Ewoks must have known how tall AT-STs were and how much force it would take to destroy them (which likely couldn't have been discovered outside of battle).
• They have a container full of logs that they release down the slope to trip another AT-ST. That trap is obviously designed specifically against a walker, so again, they knew their enemy.
• They not only know the location of the back door to the shield generator's control bunker, they know that it is a back door. How could they have figured out that it's a back door unless they've observed its use (probably in battle) as it relates to the other entrance?
• Also, see Were the Ewoks already planning an offensive or revolt?
Are the inconsistencies simply due to the inexperience/ignorance of individual Ewoks and troopers, or is there a canon solution to the apparent contradiction?